rebase to 5.2.12 - removed foomatic and ghostscript/ijs support
This commit is contained in:
parent
d7b0df01c6
commit
259211fb03
@ -1,19 +1,15 @@
|
|||||||
%global prever pre4
|
#%global prever pre4
|
||||||
%global build_with_ijs_support 1
|
%global VERSION %%{version}
|
||||||
#%%global VERSION %%{version}
|
#%global VERSION %{version}-%{prever}
|
||||||
%global VERSION %{version}-%{prever}
|
|
||||||
|
|
||||||
Name: gutenprint
|
Name: gutenprint
|
||||||
Summary: Printer Drivers Package
|
Summary: Printer Drivers Package
|
||||||
Version: 5.2.12
|
Version: 5.2.12
|
||||||
Release: 0.5%{prever}%{?dist}
|
Release: 1%{?dist}
|
||||||
URL: http://gimp-print.sourceforge.net/
|
URL: http://gimp-print.sourceforge.net/
|
||||||
Source0: http://downloads.sourceforge.net/gimp-print/%{name}-%{VERSION}.tar.bz2
|
Source0: http://downloads.sourceforge.net/gimp-print/%{name}-%{VERSION}.tar.bz2
|
||||||
# Post-install script to update foomatic PPDs.
|
|
||||||
Source1: gutenprint-foomaticppdupdate
|
|
||||||
Source2: gutenprint-foomaticppdupdate.8
|
|
||||||
# Post-install script to update CUPS native PPDs.
|
# Post-install script to update CUPS native PPDs.
|
||||||
Source3: cups-genppdupdate.py.in
|
Source1: cups-genppdupdate.py.in
|
||||||
Patch0: gutenprint-menu.patch
|
Patch0: gutenprint-menu.patch
|
||||||
Patch1: gutenprint-O6.patch
|
Patch1: gutenprint-O6.patch
|
||||||
Patch2: gutenprint-selinux.patch
|
Patch2: gutenprint-selinux.patch
|
||||||
@ -29,10 +25,6 @@ BuildRequires: libtiff-devel,libjpeg-devel,libpng-devel
|
|||||||
BuildRequires: pkgconfig(libusb-1.0)
|
BuildRequires: pkgconfig(libusb-1.0)
|
||||||
BuildRequires: pkgconfig(gtk+-2.0)
|
BuildRequires: pkgconfig(gtk+-2.0)
|
||||||
BuildRequires: pkgconfig(gimpui-2.0)
|
BuildRequires: pkgconfig(gimpui-2.0)
|
||||||
BuildRequires: foomatic
|
|
||||||
%if %{build_with_ijs_support}
|
|
||||||
BuildRequires: ghostscript-devel
|
|
||||||
%endif
|
|
||||||
BuildRequires: gimp
|
BuildRequires: gimp
|
||||||
BuildRequires: chrpath
|
BuildRequires: chrpath
|
||||||
|
|
||||||
@ -89,18 +81,6 @@ Requires: gimp
|
|||||||
%description plugin
|
%description plugin
|
||||||
This package contains the gutenprint GIMP plug-in.
|
This package contains the gutenprint GIMP plug-in.
|
||||||
|
|
||||||
%package foomatic
|
|
||||||
Summary: Foomatic printer database information for gutenprint
|
|
||||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
||||||
Requires(post): foomatic
|
|
||||||
# python3-cups is required for the update script (bug #1226871)
|
|
||||||
Requires(post): python3-cups
|
|
||||||
Requires: foomatic-db
|
|
||||||
|
|
||||||
%description foomatic
|
|
||||||
This package contains a database of printers,printer drivers,
|
|
||||||
and driver descriptions.
|
|
||||||
|
|
||||||
%package extras
|
%package extras
|
||||||
Summary: Sample test pattern generator for gutenprint-devel
|
Summary: Sample test pattern generator for gutenprint-devel
|
||||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
@ -136,7 +116,7 @@ Epson, HP and compatible printers.
|
|||||||
# Added some escputil options to the manpage (bug #979064).
|
# Added some escputil options to the manpage (bug #979064).
|
||||||
%patch5 -p1 -b .manpage
|
%patch5 -p1 -b .manpage
|
||||||
|
|
||||||
cp %{SOURCE3} src/cups/cups-genppdupdate.in
|
cp %{SOURCE1} src/cups/cups-genppdupdate.in
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# autoreconf has been added due to bug #925535,
|
# autoreconf has been added due to bug #925535,
|
||||||
@ -148,13 +128,15 @@ autoreconf --verbose --force --install
|
|||||||
# Don't run the weave test as it takes a very long time.
|
# Don't run the weave test as it takes a very long time.
|
||||||
sed -i -e 's,^\(TESTS *=.*\) run-weavetest,\1,' test/Makefile.in
|
sed -i -e 's,^\(TESTS *=.*\) run-weavetest,\1,' test/Makefile.in
|
||||||
|
|
||||||
%configure --disable-static --disable-dependency-tracking \
|
%configure --disable-dependency-tracking \
|
||||||
--with-foomatic --with-ghostscript \
|
--disable-static \
|
||||||
--enable-samples --enable-escputil \
|
--enable-samples \
|
||||||
--enable-test --disable-rpath \
|
--enable-escputil \
|
||||||
--enable-cups-1_2-enhancements \
|
--enable-test \
|
||||||
--disable-cups-ppds \
|
--disable-rpath \
|
||||||
--enable-simplified-cups-ppds
|
--enable-cups-1_2-enhancements \
|
||||||
|
--disable-cups-ppds \
|
||||||
|
--enable-simplified-cups-ppds
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
@ -166,8 +148,6 @@ make %{?_smp_mflags}
|
|||||||
make DESTDIR=%{buildroot} install
|
make DESTDIR=%{buildroot} install
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_sbindir}
|
mkdir -p %{buildroot}%{_sbindir}
|
||||||
install -m755 %{SOURCE1} %{buildroot}%{_sbindir}
|
|
||||||
install -m644 %{SOURCE2} %{buildroot}%{_mandir}/man8
|
|
||||||
|
|
||||||
rm -rf %{buildroot}%{_datadir}/gutenprint/doc
|
rm -rf %{buildroot}%{_datadir}/gutenprint/doc
|
||||||
rm -f %{buildroot}%{_datadir}/foomatic/kitload.log
|
rm -f %{buildroot}%{_datadir}/foomatic/kitload.log
|
||||||
@ -180,12 +160,6 @@ rm -f %{name}.lang
|
|||||||
%find_lang %{name} --all-name
|
%find_lang %{name} --all-name
|
||||||
cat %{name}-po.lang >>%{name}.lang
|
cat %{name}-po.lang >>%{name}.lang
|
||||||
|
|
||||||
%if %{build_with_ijs_support}
|
|
||||||
echo .so man1/ijsgutenprint.1 > %{buildroot}%{_mandir}/man1/ijsgutenprint.5.2.1
|
|
||||||
%else
|
|
||||||
rm -f %{buildroot}%{_mandir}/man1/ijsgutenprint.1*
|
|
||||||
%endif
|
|
||||||
|
|
||||||
echo .so man8/cups-genppd.8 > %{buildroot}%{_mandir}/man8/cups-genppd.5.2.8
|
echo .so man8/cups-genppd.8 > %{buildroot}%{_mandir}/man8/cups-genppd.5.2.8
|
||||||
|
|
||||||
# Fix up rpath. If you can find a way to do this without resorting
|
# Fix up rpath. If you can find a way to do this without resorting
|
||||||
@ -218,9 +192,6 @@ exit 0
|
|||||||
%doc COPYING
|
%doc COPYING
|
||||||
%{_bindir}/escputil
|
%{_bindir}/escputil
|
||||||
%{_mandir}/man1/escputil.1*
|
%{_mandir}/man1/escputil.1*
|
||||||
%if %{build_with_ijs_support}
|
|
||||||
%{_mandir}/man1/ijsgutenprint.5.2.1*
|
|
||||||
%endif
|
|
||||||
%{_datadir}/gutenprint
|
%{_datadir}/gutenprint
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
@ -246,11 +217,6 @@ exit 0
|
|||||||
%files plugin
|
%files plugin
|
||||||
%{_libdir}/gimp/*/plug-ins/gutenprint
|
%{_libdir}/gimp/*/plug-ins/gutenprint
|
||||||
|
|
||||||
%files foomatic
|
|
||||||
%doc
|
|
||||||
%{_sbindir}/gutenprint-foomaticppdupdate
|
|
||||||
%{_mandir}/man8/gutenprint-foomaticppdupdate.8*
|
|
||||||
|
|
||||||
%files extras
|
%files extras
|
||||||
%doc
|
%doc
|
||||||
%{_bindir}/testpattern
|
%{_bindir}/testpattern
|
||||||
@ -268,16 +234,10 @@ exit 0
|
|||||||
%{_mandir}/man8/cups-calibrate.8*
|
%{_mandir}/man8/cups-calibrate.8*
|
||||||
%{_mandir}/man8/cups-genppd*.8*
|
%{_mandir}/man8/cups-genppd*.8*
|
||||||
|
|
||||||
%post foomatic
|
|
||||||
/bin/rm -f /var/cache/foomatic/*
|
|
||||||
if [ $1 -eq 2 ]; then
|
|
||||||
%{_sbindir}/gutenprint-foomaticppdupdate %{version} >/dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
|
|
||||||
%postun foomatic
|
|
||||||
/bin/rm -f /var/cache/foomatic/*
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jan 13 2017 Zdenek Dohnal <zdohnal@redhat.com> - 5.2.12-1
|
||||||
|
- rebase to 5.2.12 - removed foomatic and ghostscript/ijs support
|
||||||
|
|
||||||
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 5.2.12-0.5pre4
|
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 5.2.12-0.5pre4
|
||||||
- Rebuild for Python 3.6
|
- Rebuild for Python 3.6
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user