clean up file list generation a bit

This commit is contained in:
Nils Philippsen 2005-07-26 07:19:41 +00:00
parent c199c6f796
commit bd9c869feb

View File

@ -141,20 +141,17 @@ ln -s ../../../../gimp/%{interfacever}/images/wilber-icon.png $RPM_BUILD_ROOT/%{
# Plugins and modules change often (grab the executeable ones) # Plugins and modules change often (grab the executeable ones)
# #
echo "%defattr (-, root, root)" > gimp-plugin-files echo "%defattr (-, root, root)" > gimp-plugin-files
find $RPM_BUILD_ROOT/%{_libdir}/gimp/%{interfacever} -type f -exec file {} \; | grep -v perl | cut -d':' -f 1 | sed "s@^$RPM_BUILD_ROOT@@g" | grep -v /usr/lib/gimp/%{interfacever}/modules/.*\.a$ >>gimp-plugin-files #find $RPM_BUILD_ROOT/%{_libdir}/gimp/%{interfacever} -type f -exec file {} \; | grep -v perl | cut -d':' -f 1 | sed "s@^$RPM_BUILD_ROOT@@g" | grep -v /usr/lib/gimp/%{interfacever}/modules/.*\.a$ >>gimp-plugin-files
find $RPM_BUILD_ROOT/%{_libdir}/gimp/%{interfacever} -type f | sed "s@^$RPM_BUILD_ROOT@@g" | egrep -v 'modules/.*\.a$|modules/.*\.la$' >>gimp-plugin-files
# #
# Auto detect the lang files. # Auto detect the lang files.
# #
if [ -f /usr/lib/rpm/find-lang.sh ] ; then %find_lang gimp%{gimp_lang_ver}
/usr/lib/rpm/find-lang.sh $RPM_BUILD_ROOT gimp%{gimp_lang_ver} %find_lang gimp%{gimp_lang_ver}-std-plug-ins
/usr/lib/rpm/find-lang.sh $RPM_BUILD_ROOT gimp%{gimp_lang_ver}-std-plug-ins %find_lang gimp%{gimp_lang_ver}-script-fu
/usr/lib/rpm/find-lang.sh $RPM_BUILD_ROOT gimp%{gimp_lang_ver}-script-fu %find_lang gimp%{gimp_lang_ver}-libgimp
/usr/lib/rpm/find-lang.sh $RPM_BUILD_ROOT gimp%{gimp_lang_ver}-libgimp cat gimp%{gimp_lang_ver}.lang gimp%{gimp_lang_ver}-std-plug-ins.lang gimp%{gimp_lang_ver}-script-fu.lang gimp%{gimp_lang_ver}-libgimp.lang > gimp-all.lang
cat gimp%{gimp_lang_ver}.lang gimp%{gimp_lang_ver}-std-plug-ins.lang gimp%{gimp_lang_ver}-script-fu.lang gimp%{gimp_lang_ver}-libgimp.lang > gimp-all.lang
else
echo '%{_datadir}/locale/*/*/*' > gimp-all.lang
fi
# #
# Build the master filelists generated from the above mess. # Build the master filelists generated from the above mess.
@ -287,34 +284,38 @@ fi
%{_bindir}/gimptool %{_bindir}/gimptool
%endif %endif
%defattr (-, root, root)
%{_mandir}/man1/gimp-%{binver}.1* %{_mandir}/man1/gimp-%{binver}.1*
%{_mandir}/man1/gimp-remote-%{binver}.1* %{_mandir}/man1/gimp-remote-%{binver}.1*
%{_mandir}/man1/gimptool-%{interfacever}.1* %{_mandir}/man1/gimptool-%{interfacever}.1*
#%{_mandir}/man1/escputil-%{interfacever}.1.*
%{_mandir}/man5/gimprc-%{binver}.5* %{_mandir}/man5/gimprc-%{binver}.5*
%if %_enable_convenience
%{_mandir}/man1/gimp.1*
%{_mandir}/man1/gimp-remote.1*
%{_mandir}/man1/gimptool.1*
%{_mandir}/man5/gimprc.5*
%endif
%{_datadir}/icons/hicolor/48x48/apps/gimp.png %{_datadir}/icons/hicolor/48x48/apps/gimp.png
%files devel %files devel
%defattr (-, root, root, 0755)
#%{_bindir}/gimp-config-1.4
%{_libdir}/*.so
%{_libdir}/*.la
%{_libdir}/gimp/%{interfacever}/modules/*.la
%defattr (-, root, root, 0755) %defattr (-, root, root, 0755)
%doc HACKING %doc HACKING
%doc %{_datadir}/gtk-doc/* %doc %{_datadir}/gtk-doc/*
%{_datadir}/aclocal/*.m4
%{_libdir}/*.so
%{_libdir}/*.a %{_libdir}/*.a
%{_libdir}/*.la
%{_datadir}/aclocal/*.m4
%{_libdir}/gimp/%{interfacever}/modules/*.a %{_libdir}/gimp/%{interfacever}/modules/*.a
%{_libdir}/gimp/%{interfacever}/modules/*.la
%{_includedir}/gimp-%{interfacever} %{_includedir}/gimp-%{interfacever}
%{_libdir}/pkgconfig/* %{_libdir}/pkgconfig/*
%changelog %changelog
* Mon Jul 25 2005 Nils Philippsen <nphilipp@redhat.com> - 2.2.8 * Mon Jul 25 2005 Nils Philippsen <nphilipp@redhat.com> - 2.2.8
- version 2.2.8 - version 2.2.8
- clean up file list generation a bit
* Fri May 13 2005 Nils Philippsen <nphilipp@redhat.com> * Fri May 13 2005 Nils Philippsen <nphilipp@redhat.com>
- fix inline asm of MMX/SSE optimizations instead of using -mmmx and the like - fix inline asm of MMX/SSE optimizations instead of using -mmmx and the like