I'm trying to use rpmbuild to build x86-64 packages and libs-32bit package.
The same src rpm is uesd to build both output packages.
What is the arguments to rpmbuild to make package-lib-32bit-X.x.x68_64.rpm ?
I currently do this to get a 32-bit package:
CC='gcc -m32' CXX='g++ -m32' linux32 rpmbuild -bb -target=i586 package.spec
That gi...
I needed some help debugging my rpm build.
Any time it encounters a %files or %build or %install directive it gives me an error and I am not able to figure out what "[rpm] + $'\r'" means
[rpm] Building the RPM based on the LBR.spec file
[rpm] Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.2932
[rpm] + umask 022
[rpm] + cd /home...
Is there an easy procedure to build an RPM.If so Please explain or provide the link.........
My requirement is very simple ..
I have two other RPMs which should be combined into one single RPM....
Please explain the process....
Thanks in advance..........
...
Hi,
I am building an rpm please let me know where i am going wrong,
My spec file is rpms.spec and the contents are:
Summary: GNU indent
Name: rpms
Version: 1
Release: 1
Source0: %{name}-%{version}.tar.gz
License: GPL
Group: Development/Tools
%description
The GNU indent program reformats C code to any of a variety of
formatting standar...
All,
How to recreate an rpm which is already installed on a system on linux.
Thanks....
...
Is it possible to tell an rpmbuild spec file to ignore a file in the files list if it doesn't exist?
Something like:
%files
%{existingfile}
if [ -f %{dtdfile} ]; then
%{dtdfile}
fi
...
I'm trying to build freetds but want it to include the static libraries in freetds-devel. It looks like it takes an option _with_static but it's unclear to specify it. Here's a section of the RPM file:
%build
%configure \
--disable-dependency-tracking \
--disable-rpath \
%{!?_with_static: --disable-static} \
...
Hi,
I've never had to do this and I'm not really sure you can do it or not. But can I use RPM to distribute an already created *.bin file (a Linux self extracting binary files). My scenario is this, we use RPM to distribute all of our software. I have a piece of vendor software thats already a bin file. Say myapp.bin. I would like to us...
Hi
I've been trying to find out what's the easiest way to set a fixed filename during rpm creation. Can it be set somewhere in .spec file or as rpmbuild parameter? The default name depends on version and release number. Name of my rpm has to be always the same.
thanks
sync
...
rpmbuild generates RPM under which directory?
I checked the RPMS directory:-
[root@tom adil]# ls /usr/src/redhat/
BUILD RPMS SOURCES SPECS SRPMS
[root@tom adil]# ls /usr/src/redhat/RPMS/
athlon i386 i486 i586 i686 noarch
[root@tom adil]#
How to decide rpmbuild outputs in which of the above sub-directories?
Is it controlled ...
I noticed rpmbuild (-bb and --buildroot options) creates the .rpm in different locations depending of what OS are you using:
GNU/Linux Ubuntu <= 9.04: /usr/src/rpm/...
GNU/Linux Ubuntu >= 9.10: /home/rpmbuild/...
GNU/Linux Fedora: /usr/src/redhat/...
So how can I set manually the destination folder for all OS?
...
It seems that the RPM logic is quite different from what I know already and I am having some issues understanding the "RPM logic". For my work, I have to create a documentation on "How-to create a RPM package on Red Hat 5".
I'm used to Debian and it's derivatives (Ubuntu, and so on) and thus to Debian packages (aka. .deb files).
From ...
Hi,
I have a library from which I'd like to create two RPM packages.
While I found several links on how to create a basic RPM package, I can't find how to create a devel package (see this question if you wonder what a devel package is).
What do I have to do to generate both devel and non-devel versions of my RPM package ?
Thanks.
...
I have a target directory that is checked into svn. I use the target as the --buildroot when I run rpmbuild. This causes rpmbuild to loose it mind because of the .svn directories in each directory. Is there a way to tell rpmbuild to relax?
I looked at svn export target target-build, but it only knows about files tracked by rpm. Perh...
I'm modifying an automated build, and want to tell rpmbuild to use a specific build area when invoking it.
This is similar to an existing question, but more specific.
I don't want to run any of the build commands as the root user; the aim is only to have an RPM, not to install anything into the system.
I don't want to require the user...
So when I create a debian package, I am able to write a post-installation shell script that runs just fine. Currently mine is configured to do
echo "Please enter your MySQL Database user (default root)"
read MYSQL_USER
echo "Please enter the MySQL Database user password (default root)"
read -s MYSQL_PASS
DBEXIST=0
CMD="cre...
I added the following "Pre" section to my rpm installer's build.spec. When I install the rpm no new group or user is created?
If I paste this into a script and run, then it works as expected. What am I missing?
Thanks in advance,
-Ed
RHEL 5.2
#######################
# pre
#######################
%pre
# This works when run as a sc...
for an rpm based system, I need to change a package with another package while installing the new one. fg, installation of package2.rpm shall uninstall package1.rpm and continue its installation slightly.
for this, I'm planning to erase package1 while installing package2 and call rpm -e at %pre section of package2.rpm.
But I can not be...
Hi,
given this simple install target for my Makefile:
install: zrm $(CONF)
install -D -m 0755 -o mysql -g mysql conf/lvm0.conf $(DESTDIR)/$(CONFDIR)/lvm0/mysql-zrm.conf
install -D -m 0755 -o mysql -g mysql conf/inc1.conf $(DESTDIR)/$(CONFDIR)/inc1/mysql-zrm.conf
install -D -m 0755 -o mysql -g mysql conf/dump0.co...
Hi,
I'm a newbie and I'm trying to write a python script to build rpm packages as part of an automated build system (Hudson).
I'm looking at the rpm-python API but I can't seem to see anything that relates to rpmbuild.
Am I missing something or is there no way to build an rpm package through the rpm api's? I was hoping I wouldn't hav...