explicitely enable building the gimp plugin in configure call reorder spec

file sections
This commit is contained in:
Nils Philippsen 2007-11-15 15:44:49 +00:00
parent 6f790e9498
commit 04db065b8e

View File

@ -52,7 +52,7 @@ installed to use this package.
%{expand:%%define optflags %{optflags} -DGIMP_ENABLE_COMPAT_CRUFT=1} %{expand:%%define optflags %{optflags} -DGIMP_ENABLE_COMPAT_CRUFT=1}
aclocal -I m4 aclocal -I m4
autoconf autoconf
%configure %configure --enable-gimp
make LDFLAGS= make LDFLAGS=
mv src/xsane src/xsane-gimp mv src/xsane src/xsane-gimp
@ -82,6 +82,18 @@ install -m 0644 xsane.conf %{buildroot}%{_sysconfdir}/gimp/plugins.d/xsane.conf
%clean %clean
rm -rf %{buildroot} rm -rf %{buildroot}
%post gimp
if [ -x "%{_sbindir}/gimp-plugin-mgr" ]; then
%{_sbindir}/gimp-plugin-mgr --install xsane
fi
%preun gimp
if [ $1 = 0 ]; then
if [ -x "%{_sbindir}/gimp-plugin-mgr" ]; then
%{_sbindir}/gimp-plugin-mgr --uninstall xsane
fi
fi
%files -f XSANE.lang %files -f XSANE.lang
%defattr(-,root,root) %defattr(-,root,root)
%doc xsane.[A-Z]* %doc xsane.[A-Z]*
@ -101,19 +113,11 @@ rm -rf %{buildroot}
%dir %{_sysconfdir}/gimp/plugins.d %dir %{_sysconfdir}/gimp/plugins.d
%config(noreplace) %{_sysconfdir}/gimp/plugins.d/xsane.conf %config(noreplace) %{_sysconfdir}/gimp/plugins.d/xsane.conf
%post gimp
if [ -x "%{_sbindir}/gimp-plugin-mgr" ]; then
%{_sbindir}/gimp-plugin-mgr --install xsane
fi
%preun gimp
if [ $1 = 0 ]; then
if [ -x "%{_sbindir}/gimp-plugin-mgr" ]; then
%{_sbindir}/gimp-plugin-mgr --uninstall xsane
fi
fi
%changelog %changelog
* Thu Oct 15 2007 Nils Philippsen <nphilipp@redhat.com>
- explicitely enable building the gimp plugin in configure call
- reorder spec file sections
* Wed Sep 05 2007 Nils Philippsen <nphilipp@redhat.com> - 0.994-4 * Wed Sep 05 2007 Nils Philippsen <nphilipp@redhat.com> - 0.994-4
- fix "Category" entries in desktop file - fix "Category" entries in desktop file