Questions tagged [rpmbuild]

rpmbuild command used to build rpms from rpm SPEC files

rpmbuild is the command used to build rpms from a rpm SPEC file.

854 questions
10
votes
1 answer

rpmbuild error: command $`\r` not found

I'm running an rpm spec file, and encountering the following error: $ rpmbuild -ba gregorio.spec Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.dDWqRV + umask 022 + cd /home/cantanima/rpmbuild/BUILD + cd /home/cantanima/rpmbuild/BUILD + rm -rf…
John Perry
  • 2,497
  • 2
  • 19
  • 28
10
votes
2 answers

Building both devel and normal version of a RPM package

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…
ereOn
  • 53,676
  • 39
  • 161
  • 238
10
votes
1 answer

rpmbuild issues on CentOS - Bad exit status from /home/me/rpmbuild/tmp/rpm-tmp.58942

I'm trying to create a package that only updates files on the system, but I keep getting errors when rpmbuild is run. The error indicates a file is missing. I've tried this on CentOS 5 and 6 with the same results. I used rpmdev-setuptree to setup…
Coder1
  • 13,139
  • 15
  • 59
  • 89
9
votes
3 answers

rpmbuild error: Installed (but unpackaged) file(s) found

I am building a custom rpm to install apache, among other things. When i try and build i get the above error, and then it lists /httpd-2.2.17/ and all of its subfiles. As far as i know, this is the build directory so it shouldn't be packaged. To…
Chris
  • 4,425
  • 5
  • 34
  • 49
9
votes
2 answers

rpm installing an icon to the desktop

In Fedora Gnome... Using a .desktop file in my rpm, I have successfully put my gui software into the gnome application menu. I am wondering if there is a way to also put the icon onto the gnome desktop when installing the rpm? update: Now I can get…
jedierikb
  • 12,752
  • 22
  • 95
  • 166
9
votes
3 answers

"Missing" lib for rpm install when it is present in rpm file

I'm generating an rpm file for centos but when I try to install it on a clean machine it fails with: --> Running transaction check ---> Package grass.x86_64 0:6.4.4-1.el6 will be installed --> Processing Dependency: libgrass_rli.so()(64bit) for…
Ian Turton
  • 10,018
  • 1
  • 28
  • 47
8
votes
3 answers

MacOsX rpmbuild --target noarch doesn't work

I have java project with building rpm by maven. Required create noarch packets, but i see concrete arch. I install rpm(4.4.9 or 5.2.0) via macports at MacOsX, and run command from maven rpm plugin: sudo rpmbuild -bb -v --buildroot…
mitallast
  • 183
  • 2
  • 8
8
votes
2 answers

Can I use Bash features in an RPM spec file?

Searching open source projects, shows me that spec files in the wild do use bash constructs, for instance cat info|while read. But is it really safe? Does the rpm documentation tells me I can count on the %build section being run by Bash?
Elazar Leibovich
  • 32,750
  • 33
  • 122
  • 169
8
votes
1 answer

How to install rpmdev tools on ubuntu?

I am creating my first package using RPM on ubuntu machine.But I am getting so many difficulties.I tried so many commands to install rpmdevtools using "yum" but it is giving error as There are not repos enabled. When I try to install it using…
Shah Ritesh
  • 111
  • 1
  • 2
  • 6
8
votes
4 answers

Several groups in RPM package

Is it possible for single rpm package to belong to several groups? In spec file you can set package group: Group: System Environment/Base What I need is to be able to set several groups for this package (like System|Util|MyCompanyName) - they…
Dmitry Yudakov
  • 15,364
  • 4
  • 49
  • 53
8
votes
1 answer

How to include post install script in python setuptools

import os from setuptools import setup from distutils.command.install import install as _install def _post_install(dir): from subprocess import call call([sys.executable, 'post_script.py'], cwd=os.path.join(dir, 'script_folder')) class…
Minion-kunfu
  • 133
  • 1
  • 3
  • 10
8
votes
2 answers

RPM build No such file or directory

I want to create simple RPM file with many small files. [root@laptop rpm]# tree . ├── BUILD ├── BUILDROOT ├── RPMS ├── SOURCES │   └── some_agent-1.0.tar.gz ├── SPECS │   ├── kernel.spec │   └── kernel.spec~ └── SRPMS 6 directories, 3…
user1285928
  • 1,328
  • 29
  • 98
  • 147
8
votes
1 answer

rpm & rpmbuild - using global environment variable in the %files section

I have been struggling for a while with this one. So I wrote a .specs file for my project and everything went fine. The rpm is built, the installation is smooth... but then I got some trouble because now, I have to use a custom global environment…
Rinita
  • 147
  • 1
  • 1
  • 9
8
votes
4 answers

Using Jenkins BUILD NUMBER in RPM spec file

Name: My Software Version: 1.0.5 Release: 1 Summary: This is my software Not sure if anyone has tried this before or if it is easy, but: A spec file has two unique indicators for its…
Sagar
  • 9,456
  • 6
  • 54
  • 96
8
votes
2 answers

Passing user defined argument to RPM is possible while installing?

Passing User defined argument to RPM is possible while installing?. for example: ~>rpm -i sample.rpm -license_path=/path/ or ~>rpm -i -license_path=/path/ sample.rpm or ~>rpm -i -somearg sample.rpm -Sakthi
1 2
3
56 57