rpmbuild

How do we rename a rpm build?

冷暖自知 提交于 2019-12-11 12:57:02
问题 I wanted to change the name of my rpm file from oldname-7.x86_64.rpm to newname-8.x86_64.rpm. I created the new rpm with the new name but when I try to execute rpm -Uvh newname-8.x86_64.rpm it throws the following error: file XXXXX from install of oldname-7.x86_64 conflicts with file from package newname-8.x86_64. rpm upgrade removes the package and install the new package. But in my case package name is different so it is not removing the package. Should I remove the oldname project using

Creating RPM spec file from compiled binary files

限于喜欢 提交于 2019-12-11 05:09:31
问题 Environment is AIX 7.0 RPM Version 3.0.5 . I am very new to Unix world, Please be patient with my ignorance. We have 3 different types of files to be packaged as RPM. • Source/binary/*.bainaryfiles (around 160 of them) • Source/ui/*.mm (No of files 2) • Source/scripts/*.sh (10 to 20) These files are compiled for the target server and these are in binary form and we don’t want to compress these files to tar. When the install happens on the Generated RPM using rpmbuild the .binaryfiles ,.ui and

RPM-Build -How to print error message at rpm install at client

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 03:28:06
问题 my requirement is that i want to print some message on screen if rpm install fails in any case at client machine.or display message on screen like rpm install fail due to any of the generated reasons.like other standard rpm gives. and i am not making any c file or make command in my .spec file . Everything i was doing in spec file itself.plz suggest how to print such type of things in client console using spec file. yes that is not my concern --test i have give just example.my excet

httpd-2.4.9 rpm build error File not found mod_session_crypto.so,mod_mpm_event.so

徘徊边缘 提交于 2019-12-11 02:59:15
问题 I am trying to build an RPM for httpd-2.4.9 in CentOS 6 final 64 bit using command -tb httpd-2.4.x.tar.bz2 . But I am getting following file not found error: RPM build errors: File not found: /root/rpmbuild/BUILDROOT/httpd-2.4.9-1.x86_64/usr/lib64/httpd/modules/mod_mpm_event.so File not found: /root/rpmbuild/BUILDROOT/httpd-2.4.9-1.x86_64/usr/lib64/httpd/modules/mod_session_crypto.so Can any one help me sort out this issue? 回答1: I resolved this by installing the latest APR and APR Utility

Building with rpmbuild under Ubuntu

夙愿已清 提交于 2019-12-11 01:26:49
问题 I need to build yum with a patch under Ubuntu 10.4 (reason being that i need a yum with chroot support for my vserver instance) Since yum src for ubuntu where not avaliable (3rd party repos) i downloaded the source off the official repos and the patch off the linux-vserver. However, when i try to build it with rpmbuild -ba yum.spec It fails with error: Failed build dependencies: python is needed by yum-3.2.22-0.src gettext is needed by yum-3.2.22-0.src intltool is needed by yum-3.2.22-0.src

build rpm without compiling the source file

痞子三分冷 提交于 2019-12-11 00:04:29
问题 I am trying a sample rpm package with single file. In my source folder I have python_test_rpm.tar.gz which contains only one python script file. But, the file is not a valid python script. All I want to do is package this and deploy it in a specific folder. While executing the rpm build command it is showing the compilation/syntax error in the python script. How to skip this validation and make the build. rpmbuild command rpmbuild -v -bb Spec File: Name: python_test_rpm Version: 1 Release: 1

Create log file when installing rpm

∥☆過路亽.° 提交于 2019-12-10 23:04:39
问题 What the best way to create a log file in an rpm spec file? The service I'm creating runs under an unprivileged user so cannot create files in /var/log/. 回答1: You could create /var/log/myservice/ directory and make it owned by your user. Inside %install or make install: (ignoring buildroot & such) install -d /var/log/myservice -o serviceuser -m 750 This assumes you are running your service similarly to apache which often runs as user apache and still puts logs in var/log/apache Then add the

Unexpected RPM conflict on %config(noreplace) files

那年仲夏 提交于 2019-12-10 21:51:51
问题 I'm creating my own RPM using rpmbuild . My RPM contains config files which should never get overridden , even if the RPM contains a new version of these config files. To archive this, I tagged these with %config(noreplace) /opt/mypackage/etc/* in the spec file. According to the documentation and this site, a locally modified file will never get overridden in this case which is exactly what I want. However, when doing the following operations: Install version 1 of the RPM Change configuration

Bad exit status from /var/tmp/rpm-tmp.b1DgAt (%build)

主宰稳场 提交于 2019-12-10 21:07:34
问题 I am trying to compile Tizen source code. The compilation tools uses the rpm build environment. While compiling specific package I'm getting an rpm build issue "Bad exit status from /var/tmp/rpm-tmp.b1DgAt (%build)" Here is my build log Building CXX object CMakeFiles/osp-messaging.dir/src/FMsg_PushUrlRequestListener.cpp.o [ 8s] [ 69%] Building CXX object CMakeFiles/osp-messaging.dir src/FMsg_WapPushManagerImpl.cpp.o [ 8s] [ 71%] Building CXX object CMakeFiles/osp-messaging.dir/src/FMsg

RPM spec %post doesn't execute in rpmbuild

邮差的信 提交于 2019-12-10 19:35:47
问题 Given the minimal RPM spec file, that should only execute a %post stanza: $ cat ~/RPMBUILD/SPECS/test.spec Name: None Version: 1.0 Release: 1 Summary: Bla License: Proprietary %description Bla %prep %build %install %clean %post echo ">>> Inside post <<<" %files However, the echo from the %post is not executed: $ rpmbuild -v -bb ~/RPMBUILD/SPECS/test.spec Executing(%prep): /bin/sh -e /home/ronbarak/RPMBUILD/tmp/rpm-tmp.IvhCZs + umask 022 + cd /home/ronbarak/RPMBUILD/BUILD + LANG=C + export