LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Building Custom RPM Packages

[ILUG] Building Custom RPM Packages

Fintan Ryan fryan at emg.ie
Tue Nov 23 19:41:33 GMT 1999


Evenin,

I have to build an rpm here for some internal tools that were moving onto a 
server, all web based with a database back end.
Anyway I'm doing the following

rpm -ba /usr/src/redhat/SPECS/emg-bugtrack.spec

which runs fine, but only creates a src rpm.
All the install does is just move copy a set of files to a directory (I've 
used /tmp/test for the example) and do a chown on them.
I've read the rpm howto on rpm.org, and I can't figure out what I'm doing 
wrong (but this may have more to do with a hangover than anything else), 
any suggestions?, should I be using install?

The spec file is below, and before someone points out that the install is 
basically a shell script, yes I know, it will end up in a makefile.

#emg-bugtrack.spec
#
Summary: EMG BugTrack
Name: bugtrack
%define version 0.1
Version: %{version}
Release: 1
Copyright: EMG Proprietary
Group: Applications/Internet
Source: ftp://snoopy.emg.ie/pub/bugtrack/bugtrack_%{version}.tar.gz
URL: http://snoopy.emg.ie/bugtrack/docs/
Vendor: EMG Systems Development Group
Packager: Fintan Ryan (fryan at emg.ie)
Distribution: Red Hat Linux 6.0

%description
Web Front End for EMG's BugTracking system.

%prep
rm -rf $RPM_BUILD_DIR/bugtrack_%{version}
zcat $RPM_SOURCE_DIR/bugtrack_%{version}.tar.gz | tar -xvf -
%build
%install
if [ ! -d /tmp/test ]
then
        mkdir -p /tmp/test
fi
cd $RPM_BUILD_DIR/bugtrack_%{version}
cp -r * /tmp/test
cd /tmp/test
chown -R nobody.nobody *

%changelog
*Tue Nov 23 1999 Fintan Ryan	(fryan at emg.ie)
- Initial Creation

l8r,
Fintan

Fintan Ryan	  fryan at emg.ie        http://www.emg.ie
    it's more important to do it right than to do it quickly






More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell