diff --git a/gutenprint.spec b/gutenprint.spec index 9372db4..3bf54dc 100644 --- a/gutenprint.spec +++ b/gutenprint.spec @@ -2,58 +2,51 @@ Name: gutenprint Version: 5.3.4 -Release: 1mamba +Release: 2mamba Summary: A suite of printer drivers that may be used with cups Group: System/Spooling Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco -URL: http://gutenprint.sourceforge.net +URL: https://gimp-print.sourceforge.net/ Source: http://download.sourceforge.net/sourceforge/gimp-print/gutenprint-%{version}.tar.xz 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: libat-spi2-core-devel +BuildRequires: libbabl-devel +BuildRequires: libbrotli-devel +BuildRequires: libbzip2-devel BuildRequires: libcairo-devel BuildRequires: libcups-devel -BuildRequires: libexpat-devel BuildRequires: libfontconfig-devel BuildRequires: libfreetype-devel -BuildRequires: libgcrypt-devel +BuildRequires: libgdk-pixbuf-devel +BuildRequires: libgegl-devel BuildRequires: libgimp-devel BuildRequires: libglib-devel -BuildRequires: libglitz-devel -BuildRequires: libgnutls-devel -BuildRequires: libgpg-error-devel +BuildRequires: libgraphite2-devel BuildRequires: libgtk2-devel -BuildRequires: libgtk-devel -BuildRequires: libjpeg-devel +BuildRequires: libharfbuzz-devel +BuildRequires: libjson-glib-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: libperl +BuildRequires: libudev-devel +BuildRequires: libusb-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: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} Requires: cups-bjnp Requires: libcups >= 1.1.19 Provides: gimp-print -Obsoletes: gimp-print -BuildRoot: %{_tmppath}/%{name}-%{version}-root +Obsoletes: gimp-print < 5.3.4 %description Gutenprint is the new name for the former gimp-print tool. @@ -65,36 +58,43 @@ We are continuing our work in all of these areas to produce ever higher 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 +%package -n lib%{name} +Summary: Libraries provided gutenprint +Group: System/Libraries +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n lib%{name} +Gutenprint is a package of high quality printer drivers for Linux, BSD, Solaris, IRIX, and other UNIX-alike operating systems. +Gutenprint is the new name for the former gimp-print tool. +This is the libraries package. + +%package -n lib%{name}-devel Summary: Devel package for gutenprint Group: Development/Libraries -Requires: %{name} == %{version}-%{release} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} Provides: gimp-print-devel -Obsoletes: gimp-print-devel +Obsoletes: gimp-print-devel < 5.3.4 +Provides: gutenprint-devel +Obsoletes: gutenprint-devel < 5.3.4-2mamba -%description devel -Gutenprint is the new name for the former gimp-print tool. +%description -n lib%{name}-devel 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. +Gutenprint is the new name for the former gimp-print tool. +This is the develment package. %debug_package %prep -[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" - %setup -q +#-D -T #%patch0 -p1 #%patch1 -p1 #%patch2 -p1 +./autogen.sh %build -./autogen.sh +#:<< _EOF #aclocal -I m4 #automake @@ -127,27 +127,22 @@ rm -f %{buildroot}%{_mandir}/man8/cups-calibrate.* [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -/sbin/ldconfig /usr/sbin/cups-genppdupdate 2>&1 >/dev/null -exit 0 +: -%postun -p /sbin/ldconfig +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig %files -f %{name}.lang %defattr(-,root,root) %{_bindir}/testpattern %{_sbindir}/cups-genppd.%{majver} %{_sbindir}/cups-genppdupdate -%{_libdir}/*.so.* %{_prefix}/lib/cups/backend/gutenprint5*+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 -%dir %{_libdir}/gutenprint -%dir %{_libdir}/gutenprint/%{majver} -%{_libdir}/gutenprint/%{majver}/config.summary %{_datadir}/cups/calibrate.ppm %{_datadir}/cups/usb/net.sf.gimp-print.usb-quirks %dir %{_datadir}/gutenprint @@ -162,19 +157,30 @@ exit 0 #%{_mandir}/man1/* %{_mandir}/man8/* -%files devel +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libgutenprint*.so.* +%{_libdir}/gimp/2.0/plug-ins/gutenprint +%dir %{_libdir}/gutenprint +%dir %{_libdir}/gutenprint/%{majver} +%{_libdir}/gutenprint/%{majver}/config.summary +%doc COPYING + +%files -n lib%{name}-devel %defattr(-,root,root) %dir %{_includedir}/gutenprint %{_includedir}/gutenprint/*.h %dir %{_includedir}/gutenprintui2 %{_includedir}/gutenprintui2/*.h -%{_libdir}/*.a -%{_libdir}/*.la -%{_libdir}/*.so +%{_libdir}/libgutenprint*.a +%{_libdir}/libgutenprint*.so %{_libdir}/pkgconfig/gutenprint.pc %{_libdir}/pkgconfig/gutenprintui2.pc %changelog +* Thu Dec 29 2022 Silvan Calarco 5.3.4-2mamba +- move libraries to new libgutenprint subpackage + * Wed Dec 09 2020 Automatic Build System 5.3.4-1mamba - automatic version update by autodist