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} datadir=$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/*
Attachment:
signature.asc
Description: This is a digitally signed message part