2004-09-09 15:02:26 +00:00
|
|
|
|
Name: xsane
|
|
|
|
|
Summary: An X Window System front-end for the SANE scanner interface.
|
2004-09-09 15:09:22 +00:00
|
|
|
|
Version: 0.91
|
|
|
|
|
Release: 1
|
2004-09-09 15:03:16 +00:00
|
|
|
|
Source: http://www.xsane.org/download/%{name}-%{version}.tar.gz
|
2004-09-09 15:09:22 +00:00
|
|
|
|
Patch0: xsane-0.90-htmlview.patch
|
2004-09-09 15:02:26 +00:00
|
|
|
|
License: GPL
|
2004-09-09 15:03:16 +00:00
|
|
|
|
URL: http://www.xsane.org/
|
2004-09-09 15:02:26 +00:00
|
|
|
|
Group: Applications/Multimedia
|
|
|
|
|
Buildroot: %{_tmppath}/%{name}-buildroot
|
2004-09-09 15:05:55 +00:00
|
|
|
|
BuildPrereq: sane-backends-devel gimp-devel libpng-devel libjpeg-devel
|
2004-09-09 15:06:30 +00:00
|
|
|
|
BuildRequires: desktop-file-utils >= 0.2.92
|
2004-09-09 15:03:33 +00:00
|
|
|
|
ExcludeArch: s390 s390x
|
2004-09-09 15:02:26 +00:00
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
XSane is an X based interface for the SANE (Scanner Access Now Easy)
|
|
|
|
|
library, which provides access to scanners, digital cameras, and other
|
2004-09-09 15:05:25 +00:00
|
|
|
|
capture devices. XSane is written in GTK+ and provides control for
|
2004-09-09 15:02:26 +00:00
|
|
|
|
performing the scan and then manipulating the captured image.
|
|
|
|
|
|
|
|
|
|
%package gimp
|
2004-09-09 15:03:16 +00:00
|
|
|
|
Summary: A GIMP plug-in which provides the SANE scanner interface.
|
2004-09-09 15:02:26 +00:00
|
|
|
|
Group: Applications/Multimedia
|
2004-09-09 15:07:04 +00:00
|
|
|
|
Prereq: /usr/bin/awk sh-utils fileutils
|
2004-09-09 15:02:26 +00:00
|
|
|
|
|
|
|
|
|
%description gimp
|
2004-09-09 15:03:16 +00:00
|
|
|
|
This package provides the regular XSane frontend for the SANE scanner
|
2004-09-09 15:05:25 +00:00
|
|
|
|
interface, but it works as a GIMP plug-in. You must have GIMP
|
2004-09-09 15:03:16 +00:00
|
|
|
|
installed to use this package.
|
2004-09-09 15:02:26 +00:00
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
%setup -q
|
2004-09-09 15:09:22 +00:00
|
|
|
|
%patch0 -p1 -b .htmlview
|
2004-09-09 15:02:26 +00:00
|
|
|
|
|
|
|
|
|
%build
|
2004-09-09 15:02:48 +00:00
|
|
|
|
%{expand:%%define optflags %{optflags} -DGIMP_ENABLE_COMPAT_CRUFT=1}
|
2004-09-09 15:02:26 +00:00
|
|
|
|
%configure --with-install-root=%{buildroot}
|
2004-09-09 15:02:48 +00:00
|
|
|
|
make
|
2004-09-09 15:02:26 +00:00
|
|
|
|
|
|
|
|
|
mv src/xsane src/xsane-gimp
|
|
|
|
|
|
|
|
|
|
make clean
|
|
|
|
|
%configure --with-install-root=%{buildroot} --disable-gimp
|
2004-09-09 15:02:48 +00:00
|
|
|
|
make
|
2004-09-09 15:02:26 +00:00
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
%makeinstall
|
|
|
|
|
|
|
|
|
|
install src/xsane-gimp %{buildroot}%{_bindir}
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}/etc/X11/applnk/Graphics
|
|
|
|
|
|
2004-09-09 15:06:30 +00:00
|
|
|
|
cat > xsane.desktop <<EOF
|
2004-09-09 15:02:26 +00:00
|
|
|
|
[Desktop Entry]
|
2004-09-09 15:06:30 +00:00
|
|
|
|
Encoding=UTF-8
|
|
|
|
|
Name=Scanning
|
2004-09-09 15:02:26 +00:00
|
|
|
|
Name[sv]=XSane
|
2004-09-09 15:06:30 +00:00
|
|
|
|
Comment=XSane
|
2004-09-09 15:02:26 +00:00
|
|
|
|
Type=Application
|
|
|
|
|
Description=A GIMP plugin which provides a scanner interface.
|
|
|
|
|
Description[sv]=Ett GIMP-insticksprogram som erbjuder ett bildl<EFBFBD>sargr<EFBFBD>nssnitt.
|
|
|
|
|
Exec=xsane
|
2004-09-09 15:03:33 +00:00
|
|
|
|
Icon=/usr/share/pixmaps/sane.png
|
2004-09-09 15:02:26 +00:00
|
|
|
|
EOF
|
2004-09-09 15:06:30 +00:00
|
|
|
|
mkdir $RPM_BUILD_ROOT%{_datadir}/applications
|
|
|
|
|
desktop-file-install --vendor net --delete-original \
|
|
|
|
|
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
|
|
|
|
|
--add-category X-Red-Hat-Base \
|
|
|
|
|
--add-category Graphics \
|
|
|
|
|
--add-category Application \
|
|
|
|
|
xsane.desktop
|
2004-09-09 15:02:26 +00:00
|
|
|
|
|
2004-09-09 15:07:20 +00:00
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
2004-09-09 15:02:26 +00:00
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
2004-09-09 15:07:20 +00:00
|
|
|
|
%files -f %{name}.lang
|
2004-09-09 15:02:26 +00:00
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc xsane.[A-Z]*
|
2004-09-09 15:06:30 +00:00
|
|
|
|
%{_datadir}/applications/*
|
2004-09-09 15:02:26 +00:00
|
|
|
|
%{_bindir}/xsane
|
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
%{_datadir}/sane
|
|
|
|
|
|
|
|
|
|
%files gimp
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_bindir}/xsane-gimp
|
|
|
|
|
|
|
|
|
|
%post gimp
|
2004-09-09 15:07:04 +00:00
|
|
|
|
if [ -x /usr/bin/gimp-config ]; then
|
|
|
|
|
GIMPPLUGINDIR=`/usr/bin/gimp-config --gimpplugindir`
|
|
|
|
|
fi
|
2004-09-09 15:02:48 +00:00
|
|
|
|
if [ -z "$GIMPPLUGINDIR" ]; then
|
2004-09-09 15:07:20 +00:00
|
|
|
|
GIMPPLUGINDIR=%{_libdir}/gimp/1.2
|
2004-09-09 15:02:48 +00:00
|
|
|
|
fi
|
|
|
|
|
RELPATH=`echo $GIMPPLUGINDIR | awk '
|
|
|
|
|
BEGIN { FS="/"; i = 1} {while (i < NF) { printf("../"); i = i + 1} }'`
|
|
|
|
|
if [ ! -s $GIMPPLUGINDIR/plug-ins/xsane ]; then
|
|
|
|
|
ln -s $RELPATH/bin/xsane-gimp $GIMPPLUGINDIR/plug-ins/xsane
|
2004-09-09 15:02:26 +00:00
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%postun gimp
|
|
|
|
|
if [ $1 = 0 ]; then
|
2004-09-09 15:07:20 +00:00
|
|
|
|
rm -f %{_libdir}/gimp/1.2/plug-ins/xsane
|
|
|
|
|
rm -f %{_libdir}/gimp/1.1/plug-ins/xsane
|
|
|
|
|
rm -f %{_libdir}/gimp/1.0/plug-ins/xsane
|
2004-09-09 15:02:26 +00:00
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
%changelog
|
2004-09-09 15:09:22 +00:00
|
|
|
|
* Thu Jul 24 2003 Tim Waugh <twaugh@redhat.com> 0.91-1
|
|
|
|
|
- 0.91.
|
|
|
|
|
|
|
|
|
|
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
|
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
|
|
* Wed Apr 9 2003 Tim Waugh <twaugh@redhat.com> 0.90-2
|
|
|
|
|
- Set default HTML viewer to htmlview (bug #88318).
|
|
|
|
|
|
|
|
|
|
* Thu Mar 20 2003 Tim Waugh <twaugh@redhat.com> 0.90-1
|
|
|
|
|
- 0.90.
|
|
|
|
|
|
2004-09-09 15:07:20 +00:00
|
|
|
|
* Sat Feb 1 2003 Matt Wilson <msw@redhat.com> 0.89-3
|
|
|
|
|
- use %%{_libdir} for gimp plugin path
|
|
|
|
|
|
|
|
|
|
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
|
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
|
|
* Fri Oct 25 2002 Tim Waugh <twaugh@redhat.com> 0.89-1
|
|
|
|
|
- 0.89.
|
|
|
|
|
- Use %%find_lang.
|
|
|
|
|
|
2004-09-09 15:07:04 +00:00
|
|
|
|
* Fri Aug 30 2002 Tim Waugh <twaugh@redhat.com> 0.84-8
|
|
|
|
|
- Don't require gimp-devel (cf. bug #70754).
|
|
|
|
|
|
2004-09-09 15:06:30 +00:00
|
|
|
|
* Tue Jul 23 2002 Tim Waugh <twaugh@redhat.com> 0.84-7
|
|
|
|
|
- Desktop file fixes (bug #69555).
|
|
|
|
|
|
|
|
|
|
* Mon Jul 15 2002 Tim Waugh <twaugh@redhat.com> 0.84-6
|
|
|
|
|
- Use desktop-file-install.
|
|
|
|
|
|
|
|
|
|
* Fri Jun 21 2002 Tim Powers <timp@redhat.com> 0.84-5
|
2004-09-09 15:06:06 +00:00
|
|
|
|
- automated rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jun 12 2002 Tim Waugh <twaugh@redhat.com> 0.84-4
|
|
|
|
|
- Rebuild to fix bug #66132.
|
|
|
|
|
|
|
|
|
|
* Thu May 23 2002 Tim Powers <timp@redhat.com> 0.84-3
|
|
|
|
|
- automated rebuild
|
|
|
|
|
|
2004-09-09 15:05:55 +00:00
|
|
|
|
* Thu Feb 21 2002 Tim Waugh <twaugh@redhat.com> 0.84-2
|
|
|
|
|
- Rebuild in new environment.
|
|
|
|
|
|
|
|
|
|
* Wed Jan 23 2002 Tim Waugh <twaugh@redhat.com> 0.84-1
|
|
|
|
|
- 0.84.
|
|
|
|
|
- Remove explicit sane-backends dependency, since it is automatically
|
|
|
|
|
found by rpm.
|
|
|
|
|
|
|
|
|
|
* Wed Jan 09 2002 Tim Powers <timp@redhat.com> 0.83-2
|
|
|
|
|
- automated rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jan 8 2002 Tim Waugh <twaugh@redhat.com> 0.83-1
|
|
|
|
|
- 0.83.
|
|
|
|
|
|
2004-09-09 15:05:25 +00:00
|
|
|
|
* Tue Dec 11 2001 Tim Waugh <twaugh@redhat.com> 0.82-3.1
|
|
|
|
|
- 0.82.
|
|
|
|
|
- Some extra patches from Oliver Rauch.
|
|
|
|
|
- Require sane not sane-backends since it's available throughout 7.x.
|
|
|
|
|
- Built for Red Hat Linux 7.1, 7.2.
|
|
|
|
|
|
2004-09-09 15:03:56 +00:00
|
|
|
|
* Tue Jul 24 2001 Tim Waugh <twaugh@redhat.com> 0.77-4
|
|
|
|
|
- Build requires libpng-devel, libjpeg-devel (#bug 49760).
|
|
|
|
|
|
2004-09-09 15:03:33 +00:00
|
|
|
|
* Tue Jul 17 2001 Preston Brown <pbrown@redhat.com> 0.77-3
|
|
|
|
|
- add an icon to the desktop entry
|
|
|
|
|
|
|
|
|
|
* Tue Jun 19 2001 Florian La Roche <Florian.LaRoche@redhat.de>
|
|
|
|
|
- add ExcludeArch: s390 s390x
|
|
|
|
|
|
2004-09-09 15:03:16 +00:00
|
|
|
|
* Mon Jun 11 2001 Tim Waugh <twaugh@redhat.com> 0.77-1
|
|
|
|
|
- 0.77.
|
|
|
|
|
|
|
|
|
|
* Sun Jun 3 2001 Tim Waugh <twaugh@redhat.com> 0.76-2
|
|
|
|
|
- Require sane-backends, not all of sane.
|
|
|
|
|
|
|
|
|
|
* Wed May 23 2001 Tim Waugh <twaugh@redhat.com> 0.76-1
|
|
|
|
|
- 0.76.
|
|
|
|
|
|
|
|
|
|
* Thu May 3 2001 Tim Waugh <twaugh@redhat.com> 0.75-1
|
|
|
|
|
- 0.75
|
|
|
|
|
- Fix summary/description to match specspo.
|
|
|
|
|
|
2004-09-09 15:02:48 +00:00
|
|
|
|
* Mon Jan 8 2001 Matt Wilson <msw@redhat.com>
|
|
|
|
|
- fix post script of gimp subpackage to install into the correct location
|
|
|
|
|
|
|
|
|
|
* Mon Dec 25 2000 Matt Wilson <msw@redhat.com>
|
|
|
|
|
- rebuilt against gimp 1.2.0
|
|
|
|
|
|
|
|
|
|
* Thu Dec 21 2000 Matt Wilson <msw@redhat.com>
|
|
|
|
|
- rebuilt against gimp 1.1.32
|
|
|
|
|
- use -DGIMP_ENABLE_COMPAT_CRUFT=1 to build with compat macros
|
|
|
|
|
|
|
|
|
|
* Thu Oct 12 2000 Than Ngo <than@redhat.com>
|
|
|
|
|
- 0.62
|
|
|
|
|
|
2004-09-09 15:02:26 +00:00
|
|
|
|
* Wed Aug 23 2000 Matt Wilson <msw@redhat.com>
|
|
|
|
|
- rebuilt against gimp-1.1.25
|
|
|
|
|
|
|
|
|
|
* Mon Aug 07 2000 Than Ngo <than@redhat.de>
|
|
|
|
|
- added swedish translation (Bug #15316)
|
|
|
|
|
|
|
|
|
|
* Fri Aug 4 2000 Than Ngo <than@redhat.de>
|
|
|
|
|
- fix, shows error dialogbox if no scanner exists (Bug #15445)
|
|
|
|
|
- update to 0.61
|
|
|
|
|
|
|
|
|
|
* Wed Aug 2 2000 Matt Wilson <msw@redhat.com>
|
|
|
|
|
- rebuilt against new libpng
|
|
|
|
|
|
|
|
|
|
* Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
|
|
|
|
|
- automatic rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jul 3 2000 Matt Wilson <msw@redhat.com>
|
|
|
|
|
- rebuilt against gimp 1.1.24
|
|
|
|
|
- make clean before building non gimp version
|
|
|
|
|
|
|
|
|
|
* Fri Jun 30 2000 Preston Brown <pbrown@redhat.com>
|
|
|
|
|
- made gimp subpkg
|
|
|
|
|
|
|
|
|
|
* Wed Jun 14 2000 Preston Brown <pbrown@redhat.com>
|
|
|
|
|
- desktop entry added
|
|
|
|
|
|
|
|
|
|
* Tue Jun 13 2000 Preston Brown <pbrown@redhat.com>
|
|
|
|
|
- fixed gimp link
|
|
|
|
|
- FHS paths
|
|
|
|
|
|
|
|
|
|
* Tue May 30 2000 Karsten Hopp <karsten@redhat.de>
|
|
|
|
|
- update to 0.59
|
|
|
|
|
|
|
|
|
|
* Sat Jan 29 2000 TIm Powers <timp@redhat.com>
|
|
|
|
|
- fixed bug 8948
|
|
|
|
|
|
|
|
|
|
* Thu Dec 2 1999 Tim Powers <timp@redhat.com>
|
|
|
|
|
- updated to 0.47
|
|
|
|
|
- gzip man pages
|
|
|
|
|
|
|
|
|
|
* Mon Aug 30 1999 Tim Powers <timp@redhat.com>
|
|
|
|
|
- changed group
|
|
|
|
|
|
|
|
|
|
* Mon Jul 26 1999 Tim Powers <timp@redhat.com>
|
|
|
|
|
- update to 0.30
|
|
|
|
|
- added %defattr
|
|
|
|
|
- built for 6.1
|
|
|
|
|
|
|
|
|
|
* Thu Apr 22 1999 Preston Brown <pbrown@redhat.com>
|
|
|
|
|
- initial RPM for PowerTools 6.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|