fix summaries and buildroot, don't remove buildroot on %%prep, mark dirs
and config files, don't reference %%buildroot in %%build, use double-%% in changelog entries (#226658) Resolves: #226658
This commit is contained in:
parent
1379b86264
commit
4a3ade2593
26
xsane.spec
26
xsane.spec
@ -1,9 +1,9 @@
|
|||||||
%define desktop_vendor fedora
|
%define desktop_vendor fedora
|
||||||
|
|
||||||
Name: xsane
|
Name: xsane
|
||||||
Summary: An X Window System front-end for the SANE scanner interface.
|
Summary: X Window System front-end for the SANE scanner interface
|
||||||
Version: 0.993
|
Version: 0.993
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Source0: http://www.xsane.org/download/%{name}-%{version}.tar.gz
|
Source0: http://www.xsane.org/download/%{name}-%{version}.tar.gz
|
||||||
Source1: xsane.desktop
|
Source1: xsane.desktop
|
||||||
Source2: xsane.conf.in
|
Source2: xsane.conf.in
|
||||||
@ -13,7 +13,7 @@ Patch2: xsane-0.92_gimp2.0.patch
|
|||||||
License: GPL
|
License: GPL
|
||||||
URL: http://www.xsane.org/
|
URL: http://www.xsane.org/
|
||||||
Group: Applications/Multimedia
|
Group: Applications/Multimedia
|
||||||
Buildroot: %{_tmppath}/%{name}-buildroot
|
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%__id_u -n)
|
||||||
BuildRequires: sane-backends-devel gimp-devel libpng-devel libjpeg-devel
|
BuildRequires: sane-backends-devel gimp-devel libpng-devel libjpeg-devel
|
||||||
BuildRequires: desktop-file-utils >= 0.2.92
|
BuildRequires: desktop-file-utils >= 0.2.92
|
||||||
BuildRequires: libtiff-devel
|
BuildRequires: libtiff-devel
|
||||||
@ -30,7 +30,7 @@ capture devices. XSane is written in GTK+ and provides control for
|
|||||||
performing the scan and then manipulating the captured image.
|
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: GIMP plug-in providing the SANE scanner interface
|
||||||
Group: Applications/Multimedia
|
Group: Applications/Multimedia
|
||||||
Requires(post): gimp >= 2:2.2.12-4
|
Requires(post): gimp >= 2:2.2.12-4
|
||||||
Requires(preun): gimp >= 2:2.2.12-4
|
Requires(preun): gimp >= 2:2.2.12-4
|
||||||
@ -41,7 +41,6 @@ interface, but it works as a GIMP plug-in. You must have GIMP
|
|||||||
installed to use this package.
|
installed to use this package.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
rm -rf %{buildroot}
|
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1 -b .htmlview
|
%patch0 -p1 -b .htmlview
|
||||||
%patch1 -p1 -b .medium-definitions
|
%patch1 -p1 -b .medium-definitions
|
||||||
@ -51,7 +50,7 @@ rm -rf %{buildroot}
|
|||||||
%{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 --with-install-root=%{buildroot}
|
%configure
|
||||||
make LDFLAGS=
|
make LDFLAGS=
|
||||||
|
|
||||||
mv src/xsane src/xsane-gimp
|
mv src/xsane src/xsane-gimp
|
||||||
@ -59,7 +58,7 @@ mv src/xsane src/xsane-gimp
|
|||||||
sed -e 's|@BINDIR@|%{_bindir}|g' < "%{SOURCE2}" > xsane.conf
|
sed -e 's|@BINDIR@|%{_bindir}|g' < "%{SOURCE2}" > xsane.conf
|
||||||
|
|
||||||
make clean
|
make clean
|
||||||
%configure --with-install-root=%{buildroot} --disable-gimp
|
%configure --disable-gimp
|
||||||
make LDFLAGS=
|
make LDFLAGS=
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -100,9 +99,9 @@ rm -rf %{buildroot}
|
|||||||
%dir %{_datadir}/sane
|
%dir %{_datadir}/sane
|
||||||
%dir %{_datadir}/sane/xsane
|
%dir %{_datadir}/sane/xsane
|
||||||
%{_datadir}/sane/xsane/*eula*
|
%{_datadir}/sane/xsane/*eula*
|
||||||
%{_sysconfdir}/gimp
|
%dir %{_sysconfdir}/gimp
|
||||||
%{_sysconfdir}/gimp/plugins.d
|
%dir %{_sysconfdir}/gimp/plugins.d
|
||||||
%config %{_sysconfdir}/gimp/plugins.d/xsane.conf
|
%config(noreplace) %{_sysconfdir}/gimp/plugins.d/xsane.conf
|
||||||
|
|
||||||
%post gimp
|
%post gimp
|
||||||
if [ -x "%{_sbindir}/gimp-plugin-mgr" ]; then
|
if [ -x "%{_sbindir}/gimp-plugin-mgr" ]; then
|
||||||
@ -117,6 +116,11 @@ if [ $1 = 0 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Mar 30 2007 Nils Philippsen <nphilipp@redhat.com> - 0.993-2
|
||||||
|
- fix summaries and buildroot, don't remove buildroot on %%prep, mark dirs and
|
||||||
|
config files, don't reference %%buildroot in %%build, use double-%% in
|
||||||
|
changelog entries (#226658)
|
||||||
|
|
||||||
* Fri Mar 02 2007 Nils Philippsen <nphilipp@redhat.com> - 0.993-1
|
* Fri Mar 02 2007 Nils Philippsen <nphilipp@redhat.com> - 0.993-1
|
||||||
- version 0.993 (#230706)
|
- version 0.993 (#230706)
|
||||||
|
|
||||||
@ -375,7 +379,7 @@ fi
|
|||||||
|
|
||||||
* Mon Jul 26 1999 Tim Powers <timp@redhat.com>
|
* Mon Jul 26 1999 Tim Powers <timp@redhat.com>
|
||||||
- update to 0.30
|
- update to 0.30
|
||||||
- added %defattr
|
- added %%defattr
|
||||||
- built for 6.1
|
- built for 6.1
|
||||||
|
|
||||||
* Thu Apr 22 1999 Preston Brown <pbrown@redhat.com>
|
* Thu Apr 22 1999 Preston Brown <pbrown@redhat.com>
|
||||||
|
Loading…
Reference in New Issue
Block a user