rpm-spec

Python distutils - Change Path RPM Installs To

南楼画角 提交于 2019-12-13 04:59:20
问题 I have Python 2.7.5 and am using distutils ( python setup.py bdist_rpm ) to create the following RPM... me@hostname:/tmp/dist$ rpm -qpil myApp-2.0.146-1.noarch.rpm Name : myApp Version : 2.0.146 Release : 1 Architecture: noarch Install Date: (not installed) Group : Development/Libraries Size : 290576 License : GPL Signature : (none) Source RPM : myApp-2.0.146-1.src.rpm Build Date : Wed 15 Oct 2014 02:57:08 PM EDT Build Host : hostname.example.lan Relocations : /usr Vendor : Me <me@example.lan

Installing RPM doesn't run all the %install actions listed in .spec

三世轮回 提交于 2019-12-13 03:55:43
问题 TL;DR: I made a .spec file that successfully builds a .rpm , but rpm -i <file>.rpm doesn't do all the actions I think it should. Why? Excerpt from <file>.spec : %install sudo python2.7 -m pip install 'tornado<5' ...#other pip commands... cp -r $RPM_BUILD_DIR/%{name}-%{version}/* %{buildroot} (I know this isn't the ideal way to do it, but I'm forced to use CentOS 6 and can't upgrade the system version of python because corporate/shared environment so this was the best way I could figure out.)

%attr in rpm.spec does not take env variable's value

巧了我就是萌 提交于 2019-12-13 02:56:13
问题 I have a rpm.spec file in which i have to give file permissions for a file. I want %attr to take $user and $group values during the rpm installation.(where i will be doing "export user=" and "export group=") but it does not take these values,instead gives a syntax error while installing the rpm. I have something like this in my specfile %pre %files %defattr(-,root,root,-) <some_path> %config /etc/akshatha %doc /usr/share/doc/akshatha %attr(0700,$user,$group) %dir directory_path %attr(0700,

RPM spec made relocatable by adding prefix but while installing i do not see the files installed

前提是你 提交于 2019-12-12 23:38:03
问题 Summary: A small lighttpd Name: lighttpd Version: 1.4.28 Release: 1000 License: LGPL Group: Applications/Webserver URL: http://www.lighttpd.com/ Source: http://www.lighttpd.com/lighttpd-%{version}.tar.gz BuildRoot: %{name}-%{version} Prefix: /opt/src/Opensource/lighttpd-1.4.28/install #Do not terminate if there are files in the buildroot that are not packed into the rpm. %define _unpackaged_files_terminate_build 0 #Do not terminate if there are any documents missing in the buildroot dir and

How to make an existing rpm obsolete a new rpm without modify the existing rpm's spec file

一笑奈何 提交于 2019-12-11 17:23:51
问题 My team is going to add a new RPM, Y, to the user land. There has been an RPM, X, which has to be mutually exclusive with Y. In other words, X and Y must not coexist. Thus, in the spec file of Y, there is a line saying "Obsolete: X." The thing is that we cannot modify the spec file of X. When it was written, there was no such package named Y. Thus, it neither "Obsoletes" nor "Conflicts" Y. We may add more fake/virtual/meta packages to the user land. Is there anyway that the existing package X

How to create many sub packages automatically in rpm spec

不打扰是莪最后的温柔 提交于 2019-12-11 15:51:24
问题 The number of sub-packages I want to create are so many (about 300 over). I think.. to make the sub-package, the files should be installed (%install) early. So I installed whole files to some specific directories. Now I want to pack the file for each directory name. in summaries, Is it possible to repeat rpm macros? (ex, %package %description %files) If it's possible, what should I use to repeat? (ex for ??) As I know, to use %files macro, the real files should be installed previously. then

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

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

Maven RPM Plugin does not generate the scriptlets specified

主宰稳场 提交于 2019-12-10 23:33:55
问题 I am trying to create an rpm package with the help of the rpm-maven-plugin. All goes well until I try to have it generate the %pre scriptlet (or any scriptlet for that matter) The pom.xml excerpt is: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>rpm-maven-plugin</artifactId> <version>2.0-beta-2</version> <executions> <execution> <goals> <goal>attached-rpm</goal> </goals> </execution> </executions> <configuration> <copyright>Copyright 2010 XXX, Inc. All rights reserved</copyright>