diff --git a/gutenprint.spec b/gutenprint.spec index 47f3d9d..c1ae222 100644 --- a/gutenprint.spec +++ b/gutenprint.spec @@ -1,19 +1,15 @@ -%global prever pre4 -%global build_with_ijs_support 1 -#%%global VERSION %%{version} -%global VERSION %{version}-%{prever} +#%global prever pre4 +%global VERSION %%{version} +#%global VERSION %{version}-%{prever} Name: gutenprint Summary: Printer Drivers Package Version: 5.2.12 -Release: 0.5%{prever}%{?dist} +Release: 1%{?dist} URL: http://gimp-print.sourceforge.net/ 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. -Source3: cups-genppdupdate.py.in +Source1: cups-genppdupdate.py.in Patch0: gutenprint-menu.patch Patch1: gutenprint-O6.patch Patch2: gutenprint-selinux.patch @@ -29,10 +25,6 @@ BuildRequires: libtiff-devel,libjpeg-devel,libpng-devel BuildRequires: pkgconfig(libusb-1.0) BuildRequires: pkgconfig(gtk+-2.0) BuildRequires: pkgconfig(gimpui-2.0) -BuildRequires: foomatic -%if %{build_with_ijs_support} -BuildRequires: ghostscript-devel -%endif BuildRequires: gimp BuildRequires: chrpath @@ -89,18 +81,6 @@ Requires: gimp %description plugin 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 Summary: Sample test pattern generator for gutenprint-devel Requires: %{name}%{?_isa} = %{version}-%{release} @@ -136,7 +116,7 @@ Epson, HP and compatible printers. # Added some escputil options to the manpage (bug #979064). %patch5 -p1 -b .manpage -cp %{SOURCE3} src/cups/cups-genppdupdate.in +cp %{SOURCE1} src/cups/cups-genppdupdate.in %build # 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. sed -i -e 's,^\(TESTS *=.*\) run-weavetest,\1,' test/Makefile.in -%configure --disable-static --disable-dependency-tracking \ - --with-foomatic --with-ghostscript \ - --enable-samples --enable-escputil \ - --enable-test --disable-rpath \ - --enable-cups-1_2-enhancements \ - --disable-cups-ppds \ - --enable-simplified-cups-ppds +%configure --disable-dependency-tracking \ + --disable-static \ + --enable-samples \ + --enable-escputil \ + --enable-test \ + --disable-rpath \ + --enable-cups-1_2-enhancements \ + --disable-cups-ppds \ + --enable-simplified-cups-ppds make %{?_smp_mflags} @@ -166,8 +148,6 @@ make %{?_smp_mflags} make DESTDIR=%{buildroot} install mkdir -p %{buildroot}%{_sbindir} -install -m755 %{SOURCE1} %{buildroot}%{_sbindir} -install -m644 %{SOURCE2} %{buildroot}%{_mandir}/man8 rm -rf %{buildroot}%{_datadir}/gutenprint/doc rm -f %{buildroot}%{_datadir}/foomatic/kitload.log @@ -180,12 +160,6 @@ rm -f %{name}.lang %find_lang %{name} --all-name 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 # Fix up rpath. If you can find a way to do this without resorting @@ -218,9 +192,6 @@ exit 0 %doc COPYING %{_bindir}/escputil %{_mandir}/man1/escputil.1* -%if %{build_with_ijs_support} -%{_mandir}/man1/ijsgutenprint.5.2.1* -%endif %{_datadir}/gutenprint %files doc @@ -246,11 +217,6 @@ exit 0 %files plugin %{_libdir}/gimp/*/plug-ins/gutenprint -%files foomatic -%doc -%{_sbindir}/gutenprint-foomaticppdupdate -%{_mandir}/man8/gutenprint-foomaticppdupdate.8* - %files extras %doc %{_bindir}/testpattern @@ -268,16 +234,10 @@ exit 0 %{_mandir}/man8/cups-calibrate.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 +* Fri Jan 13 2017 Zdenek Dohnal - 5.2.12-1 +- rebase to 5.2.12 - removed foomatic and ghostscript/ijs support + * Mon Dec 19 2016 Miro HronĨok - 5.2.12-0.5pre4 - Rebuild for Python 3.6