gutenprint/gutenprint.spec

239 lines
8.8 KiB
RPMSpec
Raw Permalink Normal View History

%define majver %(echo %version | cut -d. -f 1-2)
Name: gutenprint
Version: 5.2.13
Release: 1mamba
Summary: A suite of printer drivers that may be used with cups
Group: System/Spooling
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://gutenprint.sourceforge.net
Source: http://download.sourceforge.net/sourceforge/gimp-print/gutenprint-%{version}.tar.bz2
Patch0: %{name}-5.2.3-parallel-build.patch
Patch1: %{name}-5.2.3-LD_PRELOAD_fix.patch
Patch2: %{name}-5.2.6-fix_includes.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: ghostscript-devel
BuildRequires: glibc-devel
BuildRequires: libatk-devel
BuildRequires: libcairo-devel
BuildRequires: libcups-devel
BuildRequires: libexpat-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgcrypt-devel
BuildRequires: libgimp-devel
BuildRequires: libglib-devel
BuildRequires: libglitz-devel
BuildRequires: libgnutls-devel
BuildRequires: libgpg-error-devel
BuildRequires: libgtk2-devel
BuildRequires: libgtk-devel
BuildRequires: libjpeg-devel
BuildRequires: libpango-devel
BuildRequires: libpng-devel
BuildRequires: libtiff-devel
BuildRequires: libX11-devel
BuildRequires: libXau-devel
BuildRequires: libxcb-devel
BuildRequires: libxcb-util-devel
BuildRequires: libXdmcp-devel
BuildRequires: libXext-devel
BuildRequires: libXrender-devel
BuildRequires: libz-devel
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: libltdl-devel >= 1.5.22
BuildRequires: libpthread-stubs-devel >= 0.1
BuildRequires: libkrb5-devel
BuildRequires: libopenssl-devel
Requires: cups-bjnp
Requires: libcups >= 1.1.19
Provides: gimp-print
Obsoletes: gimp-print
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Gutenprint is the new name for the former gimp-print tool.
Gutenprint is a package of high quality printer drivers for Linux, BSD, Solaris, IRIX, and other UNIX-alike operating systems.
In many cases, these drivers rival or exceed the OEM drivers in quality and functionality.
Our goal is to produce the highest possible output quality from all supported printers.
To that end, we have done extensive work on screening algorithms, color generation, and printer feature utilization.
We are continuing our work in all of these areas to produce ever higher quality results, particularly on the ubiquitous, inexpensive inkjet printers that are nonetheless capable of nearly photographic output quality.
Despite the name, printing support for The GIMP is only one small part of what Gutenprin does, and indeed, the Print plugin may eventually be removed from the core gutenprint distribution.
Gutenprint printer drivers can be used with all common UNIX print spooling systems, by means of either CUPS or Ghostscript.
%package devel
Summary: Devel package for gutenprint
Group: Development/Libraries
Requires: %{name} == %{version}-%{release}
Provides: gimp-print-devel
Obsoletes: gimp-print-devel
%description devel
Gutenprint is the new name for the former gimp-print tool.
Gutenprint is a package of high quality printer drivers for Linux, BSD, Solaris, IRIX, and other UNIX-alike operating systems.
In many cases, these drivers rival or exceed the OEM drivers in quality and functionality.
Our goal is to produce the highest possible output quality from all supported printers.
To that end, we have done extensive work on screening algorithms, color generation, and printer feature utilization.
We are continuing our work in all of these areas to produce ever higher quality results, particularly on the ubiquitous, inexpensive inkjet printers that are nonetheless capable of nearly photographic output quality.
Despite the name, printing support for The GIMP is only one small part of what Gutenprin does, and indeed, the Print plugin may eventually be removed from the core gutenprint distribution.
Gutenprint printer drivers can be used with all common UNIX print spooling systems, by means of either CUPS or Ghostscript.
This is the devel package.
%prep
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%setup -q
#%patch0 -p1
#%patch1 -p1
#%patch2 -p1
%build
./autogen.sh
#aclocal -I m4
#automake
%configure \
--with-foomatic3 \
--with-cups \
--enable-cups-level3-ppds \
--enable-cups-ppds \
--disable-translated-cups-ppds
# --disable-static-genppd
%make -j1
%install
%makeinstall
#mv %{buildroot}%{_libdir}/gimp/2.0/plug-ins/print %{buildroot}%{_libdir}/gimp/2.0/plug-ins/gutenprint
%find_lang %{name}
rm -f %{buildroot}%{_datadir}/locale/*/gutenprint*.po
# not packaged files
rm -f %{buildroot}%{_bindir}/cups-calibrate
rm -f %{buildroot}%{_bindir}/escputil
rm -f %{buildroot}%{_datadir}/foomatic/kitload.log
rm -f %{buildroot}%{_sysconfdir}/cups/command.types
rm -f %{buildroot}%{_mandir}/man1/escputil.*
rm -f %{buildroot}%{_mandir}/man8/cups-calibrate.*
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
/sbin/ldconfig
/usr/sbin/cups-genppdupdate 2>&1 >/dev/null
exit 0
%postun -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root)
#%{_bindir}/ijsgutenprint.%{majver}
%{_bindir}/testpattern
%{_sbindir}/cups-genppd.%{majver}
#%{_sbindir}/cups-genppdconfig.%{majver}
%{_sbindir}/cups-genppdupdate
%{_libdir}/*.so.*
%{_prefix}/lib/cups/backend/gutenprint52+usb
%{_prefix}/lib/cups/driver/gutenprint.%{majver}
%{_prefix}/lib/cups/filter/commandtocanon
%{_prefix}/lib/cups/filter/commandtoepson
%{_prefix}/lib/cups/filter/rastertogutenprint.%{majver}
%{_libdir}/gimp/2.0/plug-ins/gutenprint
%{_datadir}/cups/calibrate.ppm
%{_datadir}/cups/usb/net.sf.gimp-print.usb-quirks
%dir %{_datadir}/gutenprint
%{_datadir}/gutenprint/*
%if "%{stage1}" != "1"
#%{_datadir}/foomatic/db/source/driver/gutenprint-ijs-simplified.%{majver}.xml
#%{_datadir}/foomatic/db/source/driver/gutenprint-ijs.%{majver}.xml
#%{_datadir}/foomatic/db/source/opt/gutenprint-ijs-simplified.*
#%{_datadir}/foomatic/db/source/opt/gutenprint-ijs.*
%endif
%{_datadir}/cups/model/gutenprint/%{majver}/C/*.ppd.gz
#%{_mandir}/man1/*
%{_mandir}/man8/*
%files devel
%defattr(-,root,root)
%dir %{_includedir}/gutenprint
%{_includedir}/gutenprint/*.h
%dir %{_includedir}/gutenprintui2
%{_includedir}/gutenprintui2/*.h
%{_libdir}/*.a
%{_libdir}/*.la
%{_libdir}/*.so
%{_libdir}/pkgconfig/gutenprint.pc
%{_libdir}/pkgconfig/gutenprintui2.pc
%changelog
* Sun Aug 06 2017 Automatic Build System <autodist@mambasoft.it> 5.2.13-1mamba
- automatic version update by autodist
* Sat Apr 15 2017 Automatic Build System <autodist@mambasoft.it> 5.2.12-1mamba
- automatic version update by autodist
* Sun Jan 17 2016 Automatic Build System <autodist@mambasoft.it> 5.2.11-1mamba
- automatic version update by autodist
* Sat Jun 07 2014 Automatic Build System <autodist@mambasoft.it> 5.2.10-1mamba
- automatic version update by autodist
* Sat Sep 29 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.9-1mamba
- update to 5.2.9
* Thu Oct 27 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.7-2mamba
- added requirement for cups-bjnp
* Thu Sep 15 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.7-1mamba
- update to 5.2.7
* Thu Sep 15 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.6-3mamba
- gutenprint-devel: replice provide/obsolete for gimp-print with gimp-print-devel
* Thu Dec 23 2010 Davide Madrisan <davide.madrisan@gmail.com> 5.2.6-2mamba
- provide %{_libdir}/cups/filter/commandtocanon and commandtoepson
- run /sbin/ldconfig
- own %{_includedir}/gutenprint and %{_includedir}/gutenprintui2
* Fri Nov 12 2010 Automatic Build System <autodist@mambasoft.it> 5.2.6-1mamba
- automatic update by autodist
* Thu Apr 02 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.3-1mamba
- update to 5.2.3
* Wed Mar 26 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 5.1.7-1mamba
- update to 5.1.7
- generate single language ppds for drivers missing in foomatic (but not only, FIXME)
* Thu Feb 28 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0.2-1mamba
- update to 5.0.2
* Fri Apr 06 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0.0.99.1-1mamba
- update to version 5.0.0.99.1 by autospec
- resolved conflict with gimp
* Wed Feb 21 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0.0-3qilnx
- don't obsolete gimp-print
* Tue Feb 20 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0.0-2qilnx
- added libgutenprintui build
* Tue Feb 20 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0.0-1qilnx
- update to version 5.0.0 by autospec
- renamed to gutenprint and obsoleting gimp-print
* Mon Nov 21 2005 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 4.2.7-2qilnx
- specfile fixes: use %%find_lang, install/uninstall info pages
* Mon Sep 20 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 4.2.7-1qilnx
- update to version 4.2.7 by autospec
* Mon Jul 28 2003 Silvan Calarco <silvan.calarco@qinet.it> 4.2.5-1qilnx
- first build for gimp-print