The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
0answers
21 views

How to debug %post with rpmbuild [migrated]

I'm building an RPM that needs to run a number of scripts to configure it after it's been installed to complete the installation. I have to run the scripts in the %post section because the ...
1
vote
0answers
21 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
51 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
3answers
60 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 ...
0
votes
1answer
101 views

How do I fix the require for python(abi) when building python module RPMs for SCL?

I'm currently trying to set up an environment for one of our apps on CentOS 6 using the SCL python33 repository. The app also requires a number of additional python modules, such as numpy, so I'm ...
0
votes
3answers
48 views

Ways to deliver server solution set to customers

I'm looking for ways to deliver our server solution set to customer. So that customer can easily install and experience our solution. Our server solution set includes tomcat+webapp, memcached, db ...
0
votes
0answers
67 views

Building 64 bit rpm on 32 bit rpmbuild system

Are there any way for building x86_64 arch target rpm on a 32 bit rpmbuild build system? $ rpmbuild -ba --target=x86_64 kernel64.spec Building target platforms: x86_64 Building for target x86_64 ...
0
votes
0answers
404 views

Yum does not install specific RPM version with custom repo

We use RPMS for our packaging and yum to update our environments. We have an rpm package-5.1.1-3 installed in our production server and in our yum repository we have 2 newer versions such as ...
4
votes
1answer
129 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 ...
0
votes
0answers
20 views

How can I specify multiple result files created by one source file in Apache Ant

I'm attempting to build some RPMs via the rpmbuild system command using Apache Ant's exec tag. The SRPM creates multiple RPM results. I've previously used the uptodate tag to set a property when I've ...
0
votes
0answers
93 views

How to build the rpm package with SHA-256 checksum for files?

In standard alone RHEL 6.4 rpm build environment, the rpm packages is generated with SHA-256 check sum, which is gotten by command rpm -qp --dump xxx.rpm [user@redhat64 abc]$ rpm -qp --dump ...
0
votes
1answer
51 views

rpmbuild not taking $LD_LIBRARY_CONFIG

I'm trying to build Agent++ into an RPM that installs into an alternative location. It's complaining that it can't find libsnmp++. I have libsnmp++ installed, also in an alternative location. ...
1
vote
1answer
113 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 ...
0
votes
1answer
345 views

Centos 6.4. building rpm for cups 1.7

I try to build rpm from source by running rpmbuild -ta cups-1.7.0-source.tar.gz --without dbus but get Processing files: cups-1.7.0-1.x86_64 error: File not found: ...
0
votes
1answer
209 views

Some files from RPM have bogus permissions

I'm building RPMs with fpm. One of the goals is to set the user and group of the installed files, so I'm using the --rpmuser and --rpmgroup flags. It's working for the most part, however one of the ...
0
votes
1answer
223 views

Failed to build rpm from source

I want to build a package from source, basically all I did was downloading Percona-Server-56-5.6.12-rc60.4.393.rhel6.src.rpm and adding -DWITH_INNODB_MEMCACHED=ON to spec file. ...
0
votes
3answers
114 views

MySQL-devel installed but cannot be detected by rpmbuild?

I've been trying to build apr-util-1.5.2 on CentOS 6 64bit. I've ran into this problem: # rpmbuild -tb apr-util-1.5.2.tar.bz2 error: Failed build dependencies: mysql-devel is needed by ...
0
votes
2answers
457 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 ...
-1
votes
1answer
191 views

Building debuginfo RPM at alternate prefix

I have an RPM that I'm building to install at an alternate root via %define _prefix /home/other/root This works fine for the binary package. The -debuginfo package, however, still lists all of its ...
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
1answer
103 views

Building apache 2.4 RPM

I'm trying to build up-to-date packages for httpd... I would like to build Apache 2.4.4 (latest) as an RPM. so that i can install on multiple servers and not compile each time... When i try to do ...
-1
votes
1answer
156 views

Rebuild rpm under centos [closed]

i need to install MySQL 4.1 under a Centos web server(My centos release is 6.4, x86_64), can anyone please help me with rebuilding so many dependencies? I use rpmrebuild command and gcc, gcc-c++ are ...
4
votes
1answer
264 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 \ ...
0
votes
2answers
287 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
2answers
368 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

How to build from source on CentOS 5.9?

I'm building iptraf-ng on CentOS 5.9 and running into the following errors: src/packet.c: In function ‘packet_process’: src/packet.c:322: error: ‘ETH_P_QINQ1’ undeclared (first use in this function) ...
1
vote
1answer
187 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) ...
0
votes
1answer
143 views

Why doesn't build of net-snmp-5.7.2 provide /etc/rc.d/init.d/snmptrapd?

I am packaging an RPM for RHEL6, built from net-snmp-5.7.2.tar.gz. I see that the file /etc/rc.d/init.d/snmpd gets created and packaged but I do not see the init file for /etc/rc.d/init.d/snmptrapd. ...
0
votes
1answer
135 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
259 views

RPM ignoring Requires version

I've packaged up clamav into some rpms for distribution inside our rhn, however I'm having some issues with dependency resolution when doing upgrades. the spec file builds 4 packages: clamav ...
10
votes
3answers
729 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 ...
2
votes
3answers
2k 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
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 ...
3
votes
3answers
5k 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 ...
1
vote
1answer
64 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?
2
votes
1answer
67 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 ...
4
votes
3answers
681 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
465 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 ...
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 ...
0
votes
1answer
147 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
189 views

Getting Segmentation fault when installing my RPM trough another RPM requirement

I have a RPM to install SWFtools as written here. I have a another RPM that I created containing basic applications, shared to all of our servers. the first RPM (SWFtools) should be installed after ...
3
votes
2answers
86 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 ...
0
votes
1answer
144 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 ...
3
votes
1answer
3k 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 ...
1
vote
0answers
281 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 ...
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 ...
0
votes
1answer
296 views

Can't find gnutls ibrary when executing rpmbuild under non-root

I am trying to build ntgs from the latest source, using the .spec from rpmforge - as non-root via rpmbuild. During the compile, it fails at this step: checking for GNUTLS... no configure: error: ...
1
vote
2answers
227 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 ...
0
votes
1answer
587 views

rpmbuild failed on dependency gnutls-devel even when pkg-config identifies the installed library

I'm trying to install the latest version of csync2, file synchronization tool, from LINBIT on CENT OS 5.4. Some recent changes made to this software have mandated that gnutls>=2.6 is installed on the ...