revamp scheme for integrating external GIMP plugins (#202545) use disttag
This commit is contained in:
parent
64b9fb12c4
commit
b3a102b218
1
xsane.conf.in
Normal file
1
xsane.conf.in
Normal file
@ -0,0 +1 @@
|
|||||||
|
PLUGINFILE=@BINDIR@/xsane-gimp
|
33
xsane.spec
33
xsane.spec
@ -3,10 +3,10 @@
|
|||||||
Name: xsane
|
Name: xsane
|
||||||
Summary: An X Window System front-end for the SANE scanner interface.
|
Summary: An X Window System front-end for the SANE scanner interface.
|
||||||
Version: 0.99
|
Version: 0.99
|
||||||
Release: 5.1
|
Release: 6%{?dist}
|
||||||
Source0: http://www.xsane.org/download/%{name}-%{version}.tar.gz
|
Source0: http://www.xsane.org/download/%{name}-%{version}.tar.gz
|
||||||
Source1: xsane-install-gimp-plugin
|
Source1: xsane.desktop
|
||||||
Source2: xsane.desktop
|
Source2: xsane.conf.in
|
||||||
Patch0: xsane-0.90-htmlview.patch
|
Patch0: xsane-0.90-htmlview.patch
|
||||||
Patch1: xsane-0.99-medium-definitions.patch
|
Patch1: xsane-0.99-medium-definitions.patch
|
||||||
Patch2: xsane-0.92_gimp2.0.patch
|
Patch2: xsane-0.92_gimp2.0.patch
|
||||||
@ -21,6 +21,7 @@ BuildRequires: libtiff-devel
|
|||||||
BuildRequires: gettext-devel
|
BuildRequires: gettext-devel
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
|
BuildRequires: sed
|
||||||
ExcludeArch: s390 s390x
|
ExcludeArch: s390 s390x
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -32,7 +33,8 @@ performing the scan and then manipulating the captured image.
|
|||||||
%package gimp
|
%package gimp
|
||||||
Summary: A GIMP plug-in which provides the SANE scanner interface.
|
Summary: A GIMP plug-in which provides the SANE scanner interface.
|
||||||
Group: Applications/Multimedia
|
Group: Applications/Multimedia
|
||||||
Prereq: /usr/bin/awk sh-utils fileutils
|
Requires(post): gimp >= 2:2.2.12-4
|
||||||
|
Requires(preun): gimp >= 2:2.2.12-4
|
||||||
|
|
||||||
%description gimp
|
%description gimp
|
||||||
This package provides the regular XSane frontend for the SANE scanner
|
This package provides the regular XSane frontend for the SANE scanner
|
||||||
@ -56,6 +58,8 @@ make LDFLAGS=
|
|||||||
|
|
||||||
mv src/xsane src/xsane-gimp
|
mv src/xsane src/xsane-gimp
|
||||||
|
|
||||||
|
sed -e 's|@BINDIR@|%{_bindir}|g' < "%{SOURCE2} > xsane.conf
|
||||||
|
|
||||||
make clean
|
make clean
|
||||||
%configure --with-install-root=%{buildroot} --disable-gimp
|
%configure --with-install-root=%{buildroot} --disable-gimp
|
||||||
make LDFLAGS=
|
make LDFLAGS=
|
||||||
@ -66,9 +70,6 @@ rm -rf %{buildroot}
|
|||||||
|
|
||||||
install src/xsane-gimp %{buildroot}%{_bindir}
|
install src/xsane-gimp %{buildroot}%{_bindir}
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_sbindir}
|
|
||||||
install -m 0755 %SOURCE1 %{buildroot}%{_sbindir}/xsane-install-gimp-plugin
|
|
||||||
|
|
||||||
mkdir %{buildroot}%{_datadir}/applications
|
mkdir %{buildroot}%{_datadir}/applications
|
||||||
desktop-file-install --vendor %{desktop_vendor} \
|
desktop-file-install --vendor %{desktop_vendor} \
|
||||||
--dir %{buildroot}%{_datadir}/applications \
|
--dir %{buildroot}%{_datadir}/applications \
|
||||||
@ -76,10 +77,12 @@ desktop-file-install --vendor %{desktop_vendor} \
|
|||||||
--add-category X-Fedora \
|
--add-category X-Fedora \
|
||||||
--add-category Graphics \
|
--add-category Graphics \
|
||||||
--add-category Application \
|
--add-category Application \
|
||||||
%{SOURCE2}
|
%{SOURCE1}
|
||||||
|
|
||||||
%find_lang %{name} XSANE.lang
|
%find_lang %{name} XSANE.lang
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}%{_sysconfdir}/gimp/plugins.d
|
||||||
|
install -m 0644 xsane.conf %{buildroot}%{_sysconfdir}/gimp/plugins.d/xsane.conf
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
@ -96,22 +99,26 @@ rm -rf %{buildroot}
|
|||||||
%files gimp
|
%files gimp
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_bindir}/xsane-gimp
|
%{_bindir}/xsane-gimp
|
||||||
%{_sbindir}/xsane-install-gimp-plugin
|
|
||||||
%dir %{_datadir}/sane
|
%dir %{_datadir}/sane
|
||||||
%dir %{_datadir}/sane/xsane
|
%dir %{_datadir}/sane/xsane
|
||||||
%{_datadir}/sane/xsane/*eula*
|
%{_datadir}/sane/xsane/*eula*
|
||||||
|
%{_sysconfdir}/gimp
|
||||||
|
%{_sysconfdir}/gimp/plugins.d
|
||||||
|
%config %{_sysconfdir}/gimp/plugins.d/xsane.conf
|
||||||
|
|
||||||
%post gimp
|
%post gimp
|
||||||
%{_sbindir}/xsane-install-gimp-plugin --install
|
%{_sbindir}/gimp-plugin-mgr --install xsane
|
||||||
exit 0
|
|
||||||
|
|
||||||
%preun gimp
|
%preun gimp
|
||||||
if [ $1 = 0 ]; then
|
if [ $1 = 0 ]; then
|
||||||
%{_sbindir}/xsane-install-gimp-plugin --uninstall
|
%{_sbindir}/gimp-plugin-mgr --uninstall xsane
|
||||||
fi
|
fi
|
||||||
exit 0
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Aug 16 2006 Nils Philippsen <nphilipp@redhat.com> - 0.99-6
|
||||||
|
- revamp scheme for integrating external GIMP plugins (#202545)
|
||||||
|
- use disttag
|
||||||
|
|
||||||
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.99-5.1
|
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.99-5.1
|
||||||
- rebuild
|
- rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user