Rpmbuild Does Not Appear To Be A Spec File

Rpmbuild Does Not Appear To Be A Spec File

I just want to create an RPM file to distribute my Linux binary 'foobar', with only a couple of dependencies. It has a config file, /etc/foobar.conf and should be installed in /usr/bin/foobar.

Unfortunately the is 27 chapters long and I really don't have a day to sit down and read this, because I am also busy making.deb and EXE installers for other platforms. What is the absolute minimum I have to do to create an RPM? Assume the foobar binary and foobar.conf are in the current working directory. For quick RPM building, check out Togo: The project has a Quick-Start guide and I was able to create a basic RPM in less than 3 minutes. Easy way to build rpm package from binary (these steps were tested with Fedora 18): 1) First you have to install rpmdevtools, so run these commands (attention: run as normal user) $ sudo yum install rpmdevtools rpmlint $ rpmdev-setuptree 2) In the ~/rpmbuild/SPECS folder create new file: package_name.spec 3) Open it with an editor (like gedit) and write this: Name: package_name Version: 1.0 Release: 1 Summary: Short description (first char has to be uppercase) License: GPL URL: www. Process of generating RPM from source file: • download source file with.gz extention.

• install rpm-build and rpmdevtools from yum install. (rpmbuild folder will be generated.SPECS,SOURCES,RPMS. Folders will should be generated inside the rpmbuild folder). • copy the source code.gz to SOURCES folder.(rpmbuild/SOURCES) • Untar the tar ball by using the following command. Go to SOURCES folder:rpmbuild/SOURCES where tar file is present. Command: e.g tar -xvzf httpd-2.22.tar.gz httpd-2.22 folder will be generated in the same path. • go to extracted folder and then type below command:./configure --prefix=/usr/local/apache2 --with-included-apr --enable-proxy --enable-proxy-balancer --with-mpm=worker --enable-mods-static=all (.configure may vary according to source for which RPM has to built-- i have done for apache HTTPD which needs apr and apr-util dependency package).

Victory Cigarettes Bulgaria. Creating the Spec File. The order of the lines is not important, as long as they appear in the. (Like the $RPM_BUILD_DIR variable.

Rpmbuild Does Not Appear To Be A Spec File

• run below command once the configure is successful: make • after successfull execution od make command run: checkinstall in tha same folder. (if you dont have checkinstall software please download latest version from site) Also checkinstall software has bug which can be solved by following way::::: locate checkinstallrc and then replace TRANSLATE = 1 to TRANSLATE=0 using vim command. Also check for exclude package: EXCLUDE='/selinux' • checkinstall will ask for option (type R if you want tp build rpm for source file) • Done.rpm file will be built in RPMS folder inside rpmbuild/RPMS file. ALL the BEST.