Re: SPEC file for pkgconfig
- From: Chris Chabot <chabotc reviewboard com>
- To: Sebastian Voecking <voeck web de>
- Cc: gnome-packaging-list <gnome-packaging-list gnome org>
- Subject: Re: SPEC file for pkgconfig
- Date: Fri, 18 Jan 2002 13:44:38 +0100
Since the configure and make install lines are very much default (no extra
/ different flags), you don't have to spell them out in the .spec file.
Simply do:
%prep
%setup -q
%build
%configure
make
%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/pkgconfig
strip $RPM_BUILD_ROOT%{_prefix}/bin/*
%clean
rm -rf $RPM_BUILD_ROOT
Ps, often rawhide (
ftp://rawhide.redhat.com/pub/redhat/linux/rawhide/SRPMS)
srpm's have good .spec files for a lot of gnome2 packages that you can use
as a base to work from..
-- Chris
Sebastian Voecking wrote:
I'm back again!
Here is my first spec file. pkgconfig isn't really a GNOME2 package but
it's often the first package to install when you try to build GNOME2.
And it had no spec file. So I used it for my first example. It works
pretty well on my system but I believe there are many points to improve.
It also should be a kind of template for more complicated specs. So
style if I forgot something (%post, %postun... are not forgotton but not
needes I believe).
Waiting for feedback...
Sebastian
Name: pkgconfig
Summary: pkg-config
Version: 0.8.0
Release: 1
License: GPL
Group: Development/Tools
Source: %{name}-%{version}.tar.gz
BuildRoot: /var/tmp/%{name}-%{version}-root
Packager: Sebastian Voecking <voeck web de>
%description
pkg-config is a script to make putting together all the build
flags when compiling/linking a lot easier.
%prep
%setup
%build
./configure --prefix=%{_prefix} --exec-prefix=%{_exec_prefix} --bindir=%{_bindir} --sbindir=%{_sbindir} --sysconfdir=%{_sysconfdir} --datadir=%{_datadir} --includedir=%{_includedir} --libdir=%{_libdir} --mandir=%{_mandir} --infodir=%{_infodir}
make
%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT%{_prefix} bindir=$RPM_BUILD_ROOT%{_bindir} sbindir=$RPM_BUILD_ROOT%{_sbindir} sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} data
dir=$RPM_BUILD_ROOT%{_datadir} includedir=$RPM_BUILD_ROOT%{_includedir} libdir=$RPM_BUILD_ROOT%{_libdir} mandir=$RPM_BUILD_ROOT%{_mandir} infodir=$RPM_BUILD_ROOT%{_infodir} install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%{_bindir}/*
%{_datadir}/aclocal/*
%{_mandir}/man1/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]