The tag has no wiki summary.

learn more… | top users | synonyms

14
votes
3answers
3k views

Can one require “this OR that” package in an RPM spec file?

Does anyone know how to (or whether one can) specify an alternate requirement or set of requirements in a spec file, as opposed to a single requirement? For example, say there are two packages ...
10
votes
3answers
681 views

RedHat: is it possible to install packages in a kind of mock environment to build RPMs

Is there a tool that allows to install the dependecies of an RPM .spec into an isolated environment? I won't install such dependencies globally on the system and I am not able to do so since I have ...
7
votes
1answer
7k views

Creating symlink in /usr/bin when creating an RPM

I'm creating an RPM for an application that doesn't already have one. I've got it building and installing fine in the /opt directory using $RPM_BUILD_ROOT, but I would also like to create a couple ...
5
votes
2answers
378 views

Building an rpm file with a unique qualifier appended

I'm building RPMs in a continuous integration environment, and I need to distinguish between successive builds, but obviously the spec file does not get modified on each checkin. The spec file header ...
5
votes
2answers
786 views

RPM packaging multiple versions for simultaneous install

Are there some guidelines, or does anyone have suggestions on how I should package something that I need to be able to have multiple versions of installed at the same time?
4
votes
1answer
224 views

How to escape spaces in an rpm spec “source” item?

I'm trying to build an RPM, but the source file from the vendor has a space in the filename, and there doesn't seem to be any good way to escape the filename so that it builds. I've tried putting a \ ...
4
votes
3answers
606 views

%post section of rpmbuild not working

Situation: I'm trying to build a custom rpm to place a config file in a particular location. The installation completes fine by placing config files in proper directories but the %post section is not ...
3
votes
2answers
451 views

setting up rhel 5.x RPM build server for mortal users

My task is to setup a RHEL 5.x build host, that can build RPMs for mortal users. On RHEL 6.x with rpm version 4.8, I have in /usr/lib/macros: # Path to top of build area. %_topdir ...
3
votes
2answers
300 views

Linux - Is there a way to fake the highest directory?

/ is the highest directory in Linux. Is there a way to fake that to something else say /opt/rpmbuild/BUILDROOT? Here's my problem space. I am trying to re-package a COTS into RPM format. The COTS ...
3
votes
2answers
83 views

RPM package naming for alternative configurations

I currently install PHP from source in several different configurations around my environment, each providing the minimum feature set required for its particular deployment: one deployment requires ...
3
votes
1answer
2k views

RPM Build Issue

I build my rpms as such: rpmbuild -bb SPECS/python.spec With the following spec file: %define _topdir /home/rpmbuild/python %define name Python %define release 1 %define version 2.6.4 %define ...
3
votes
1answer
2k views

RPM Spec How to specify in package so that previous RPM is removed

Question: What do I put in the foo.spec file so that the rpm's will remove the previous rpm before installing? Description: I have created a spec file that creates rpm's for a few packages that use ...
3
votes
0answers
94 views

Is it legal to create an RPM which only runs %post scripts to modify a file owned by another RPM?

I'm writing some RPMs which install YUM repo configuration files for various internal YUM repos, same structure and concept as the EPEL repo RPMs. We will have multiple environments with equivalent ...
2
votes
2answers
1k views

Incremental RPM package version “numbers” for x.y.z > x.y.z-beta (or alpha, rc, etc)

In order to publish RPM packages of several different versions of some software, I'm looking for a way to specify version "numbers" that are considered "upgrades", and include the differentiation of ...
2
votes
4answers
5k views

Install msttcorefonts on CentOS 6.3

I have installed Mantis Bug Tracker on a CentOS 6.3 server and enabled the JP Graph plug in. However, to get this plug in to display the required TTF fonts I have to install something called ...
2
votes
3answers
7k views

How to create RPM for 32-bit arch from a 64-bit arch server?

Our production server is running CentOS5 64-bit arch. Because there are no RPM available currently for SQLite latest version (v3.7.3), I created RPM using rpmbuild the very first time by following ...
2
votes
2answers
1k views

How do you change topdir as a user in SSH?

I have read several places NEVER to build RPM's as the root user. As such, I defined a new user and have tried building out RPM structures there, however, using the rpmbuild --rebuild src.name.rpm ...
2
votes
3answers
4k views

Reference for RPM spec macros (%setup, %buildroot, etc)

Which man page describes the usage of the top-level RPM spec file macros that are defined in RPM source files directly? I mean, %setup, %buildroot and the like, which are not in /usr/lib/rpm. Looking ...
2
votes
3answers
1k views

YUM dependency issue even though library is installed

We build our own php and mysql packages from source, this one is for the php-5.4.10 release, and host these at our own repository. Let's call this package custom-php and custom-mysql(-libs & ...
2
votes
2answers
1k views

rpmbuild on CentOS 6.3 64-bit - broken dependencies

I'm trying to build a package using rpmbuild on 64-bit CentOS 6.3 server. Here is the spec file: Name: test-fms Version: 1.0 Release: 1%{?dist} Summary: my FMS Package ...
2
votes
1answer
395 views

How do I include a customized configuration file in a rebuilt RPM?

We've rebuilt a bunch of RPMs because we wanted to remove modules and change config options for items specific to our production environment. We're hosting them in a private repo, and have them signed ...
2
votes
4answers
1k views

Install Fedora Source package on RHEL / CentOS

I'm attempting to upgrade curl on RHEL / CentOS machines. I've found what seems to be the appropriate source packages in a number of repos. (ie, ...
2
votes
1answer
276 views

Build RPM using source directory, not tarball

In my organization, we deploy all our software to our production machines using RPM. Our build process (which is automated) involves checking out the source from version control, tarring that source ...
2
votes
1answer
65 views

Creating Fedora RPMs with a defined Vendor

I would like all of my organizations RPMs to have a vendor defined so we can easily see which of our RPMs are installed. Does anyone know why Fedora says: Do not use these tags: Packager ...
1
vote
3answers
47 views

build .rpm package with all its dependencies

I'm not sure if its the recommended approach or not, in case the user doesn't have web access, and my software requires, lets say: libgcc-4.3.0.0.rpm (for e.g), I would like to bundle this for the ...
1
vote
2answers
217 views

Find actual Centos6 path for %{_includedir} in spec file?

I am trying to find out which path actually resolves to %{_includedir} in a Centos6 installation. I understand that this is normally "/usr/include" but where can I find where it is actually set or ...
1
vote
1answer
875 views

Making your own RPM's based on existing source - Updating the RPM?

I am trying to compile my own RPM packages of some various existing software. Most of this software is normally installed by doing ./configure make install I followed a tutorial here and attempted ...
1
vote
2answers
2k views

How to Install Python 2.6 on Fedora 8?

I don't want to use Fedora 8. I would be very happy to use the newest version, but there is no choice. My problem is that 8 comes with python 2.5. I am trying to upgrade it to 2.6, but with no luck. ...
1
vote
3answers
2k views

rpmbuild on Cent OS 6: “cpio: bad magic”

When I try to run this command : rpmbuild -bb SPECS/software.spec I get an error when the WAR file (as in tomcat java web archive file) is being added to the rpm: error: create archive failed on ...
1
vote
1answer
62 views

Delete rpm from rpm

I want to create one rpm with rpmbuild which can remove some others rpm in system forcefully. How can i integrate rpm -e --nodeps packagename.rpm command in specfile?
1
vote
1answer
32 views

RPM change package name, without changing extracted directory

I've started creating RPMs of software that I use, to allow me to be able to deploy it configured exactly how I want. However I can't figure out how to rename the package without also renaming the ...
1
vote
1answer
82 views

How to compile sources into rpmbuild BUILDROOT?

All the information I can find about building RPMs seems to pre-date CentOS 6, and as a complete package-building novice running CentOS 6.5, I'm rather stuck. All the tutorials I've read mention one ...
1
vote
2answers
2k views

Building official SRPMs in CentOS. All the steps

I am new to Centos and yum in general. How do I retreive the SRPM using yumdownloader --source? When I run the command it says the SRPMs are not found. How do I add the repository? I am talking ...
1
vote
4answers
2k views

How to create an rpm without a build step

I'm trying to create an rpm of some code which doesn't need to be built. It will just need to run a script when it's installed on the destination system (i.e. I just need the %install portion of the ...
1
vote
0answers
18 views

rpmbuild fails with parenthesis in name

I am building RPMs with maven, triggered by Jenkins. Someone decided it was a good idea to have ( and ) in jenkins job names. This breaks my rpm generation, and it's immediately evident what's wrong ...
1
vote
1answer
181 views

RPM packages with dependencies based on a major version of software (i.e php 5.3 with it's addons and then php 5.4)

Scenario: PHP5.3 php-5.3.21-1_x86_64.rpm (base) php-pecl-memcache-3.0.6-1_x86_64.rpm (dependant on above because of the internal PHP ABI version change) PHP5.4 php-5.4.13-1_x86_64.rpm (base) ...
1
vote
0answers
268 views

Mock build system error: sh: ruby: command not found

I am trying to build a RPM using the mock build system. However, the shell in the mock environment cannot seem to find the ruby command. I run in to a build error: sh: ruby: command not found I can ...
0
votes
2answers
239 views

rpmbuild missing from rhel 6.3

I have a fresh new RHEL 6.3. I cannot access internet and because of this I cannot use yum. I would like to use the RPMs I get from the Red Hat package (2 discs full or RPMS). These are all files ...
0
votes
1answer
119 views

Building Tripwire RPM on CentOS6

I have been unable to locate a pre-built RPM for Tripwire on CentOS6. I have tried installing the one from CentOS5, as well as a couple of later Fedora RPMs, but all fail on a dependency on ...
0
votes
1answer
520 views

how to override rpm macro

I have spent around 3 hrs now. How to override a macro during rpm build ? I want to override _sbindir (/usr/sbin) to /opt/sbin I have edited rpm macro files both system and local user files nothing ...
0
votes
2answers
396 views

I'm unable to use rpmbuild to build nagios-3.5.0 RPM @RHEL6

I'm unable to build RPM w/ nagios 3.5.0 (last one that worked for me was 3.2.3): # md5sum nagios-3.5.0.tar.gz aeef195d2033cc362bf6cb972bcc8f07 nagios-3.5.0.tar.gz # rpmbuild -tb nagios-3.5.0.tar.gz ...
0
votes
2answers
83 views

Use RPM to add rsyslog rule

I'm using an RPM to install a binary and some config files to CentOS. My issue is that I need to find a way to set up the rsyslog rules during the RPM install. Up until now I've just been adding the ...
0
votes
2answers
297 views

How to stop services in spec file

I have this spec file that will install numerous rpm packages such as apache, mysql, etc. I'm new to building rpms and I did looked at the Fedora documentation but I did not find the answer to my ...
0
votes
1answer
137 views

Building RPM containing passwords

I need to be able to send an RPM to customers that will install the complete server, including Apache and MySQL. The customers will install it on a clean machine. After installation, the server ...
0
votes
1answer
139 views

rpmbuild gives seg fault

I am trying to build an rpm using the rpmbuild tool. I have source code which build binaries around 30 GB. This software for which I am making the rpm has dozens of executables. When I copy only the ...
0
votes
1answer
695 views

Building php-devel package from source (php 5.3)

I am building PHP 5.3 rpm packages for our custom CentOS 5 yum repo. I am fairly new to building rpms to be honest, but I have had moderate success downloading the SRPMS for a given package and ...
0
votes
1answer
925 views

Rpmbuild changes current directory

Having failures to build RPM using some spec file which works great for other users, I found out that it for some reason changes the current directory to rpmbuild/BUILD: + umask 022 + cd ...
0
votes
1answer
673 views

Does BuildRoot influence the RPM installation?

I'm trying to figure out how $RPM_BUILD_ROOT relates to BuildRoot. It's clear that BuildRoot is the temporary path used during RPM construction. But here for example, they say buildroot is used during ...
0
votes
2answers
137 views

RPM Generation X86_64

I am generating RPM for the fisrt time. I have created folder structure mkdir -p tmp/rpm/{BUILD,BUILDROOT,RPMS/x86_64,SOURCES,SRPMS,SPECS} . But when I generated my RPM, it generates my RPM with ...
0
votes
1answer
667 views

rpm build from src file

I'm trying to build from a *.src.rpm file on FC 12 in such a way that the files are distributed a across my system as they would with a normal binary build (in this case, *.h files end up in ...