Index: perl-Glib.spec.in =================================================================== RCS file: /cvsroot/gtk2-perl/gtk2-perl-xs/Glib/perl-Glib.spec.in,v retrieving revision 1.5 diff -u -r1.5 perl-Glib.spec.in --- perl-Glib.spec.in 25 Jan 2004 03:06:44 -0000 1.5 +++ perl-Glib.spec.in 21 Oct 2004 01:16:39 -0000 @@ -34,26 +34,27 @@ %install rm -rf $RPM_BUILD_ROOT -eval `perl '-V:installarchlib'` -mkdir -p $RPM_BUILD_ROOT$installarchlib -%makeinstall -rm -f `find $RPM_BUILD_ROOT -type f -name perllocal.pod -o -name .packlist` - -[ -x %{_libdir}/rpm/brp-compress ] && %{_libdir}/rpm/brp-compress - -find $RPM_BUILD_ROOT%{_prefix} -type f -print | \ - sed "s ^$RPM_BUILD_ROOT@@g" > %{name}-%{version}-%{release}-filelist -if [ "$(cat %{name}-%{version}-%{release}-filelist)X" = "X" ] ; then +make install + +[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress + +find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; + +find $RPM_BUILD_ROOT/usr -type f -print | \ + sed "s ^$RPM_BUILD_ROOT@@g" | \ + grep -v perllocal.pod | \ + grep -v "\.packlist" > %{name}-%{version}-filelist +if [ "$(cat %{name}-%{version}-filelist)X" = "X" ] ; then echo "ERROR: EMPTY FILE LIST" - exit 1 + exit -1 fi +%files -f %{name}-%{version}-filelist +%defattr(-,root,root) + %clean rm -rf $RPM_BUILD_ROOT -%files -f %{name}-%{version}-%{release}-filelist -%defattr(-,root,root,-) - %changelog * @DATE@ gtk-perl-list gnome org - @VERSION@ - Specfile autogenerated.