| 1 | Name: gutenprint
|
|---|
| 2 | Summary: Printer Drivers Package
|
|---|
| 3 | Version: 5.2.12
|
|---|
| 4 | Release: 1%{?dist}
|
|---|
| 5 | URL: http://gimp-print.sourceforge.net/
|
|---|
| 6 | License: GPLv2+
|
|---|
| 7 |
|
|---|
| 8 | Vendor: bww bitwise works GmbH
|
|---|
| 9 | %scm_source svn http://svn.netlabs.org/repos/ports/gutenprint/trunk 2159
|
|---|
| 10 |
|
|---|
| 11 | Requires: %{name}-libs = %{version}-%{release}
|
|---|
| 12 | BuildRequires: cups-libs, cups-devel, cups
|
|---|
| 13 | BuildRequires: gettext-devel,pkgconfig
|
|---|
| 14 | BuildRequires: libtiff-devel,libjpeg-devel,libpng-devel
|
|---|
| 15 | BuildRequires: libusb1-devel
|
|---|
| 16 |
|
|---|
| 17 | # Make sure we get postscriptdriver tags.
|
|---|
| 18 | #BuildRequires: python3-cups
|
|---|
| 19 |
|
|---|
| 20 | # autoreconf
|
|---|
| 21 | BuildRequires: autoconf automake libtool
|
|---|
| 22 |
|
|---|
| 23 | ## NOTE ##
|
|---|
| 24 | # The README file in this package contains suggestions from upstream
|
|---|
| 25 | # on how to package this software. I'd be inclined to follow those
|
|---|
| 26 | # suggestions unless there's a good reason not to do so.
|
|---|
| 27 |
|
|---|
| 28 | %description
|
|---|
| 29 | Gutenprint is a package of high quality printer drivers for Linux, BSD,
|
|---|
| 30 | Solaris, IRIX, and other UNIX-alike operating systems.
|
|---|
| 31 | Gutenprint was formerly called Gimp-Print.
|
|---|
| 32 |
|
|---|
| 33 | %package doc
|
|---|
| 34 | Summary: Documentation for gutenprint
|
|---|
| 35 |
|
|---|
| 36 | %description doc
|
|---|
| 37 | Documentation for gutenprint.
|
|---|
| 38 |
|
|---|
| 39 | %package libs
|
|---|
| 40 | Summary: libgutenprint library
|
|---|
| 41 |
|
|---|
| 42 | %description libs
|
|---|
| 43 | This package includes libgutenprint library, necessary to run gutenprint.
|
|---|
| 44 |
|
|---|
| 45 | %package devel
|
|---|
| 46 | Summary: Library development files for gutenprint
|
|---|
| 47 | Requires: %{name} = %{version}-%{release}
|
|---|
| 48 |
|
|---|
| 49 | %description devel
|
|---|
| 50 | This package contains headers and libraries required to build applications that
|
|---|
| 51 | uses gutenprint package.
|
|---|
| 52 |
|
|---|
| 53 | %package extras
|
|---|
| 54 | Summary: Sample test pattern generator for gutenprint-devel
|
|---|
| 55 | Requires: %{name} = %{version}-%{release}
|
|---|
| 56 |
|
|---|
| 57 | %description extras
|
|---|
| 58 | This package contains test pattern generator and the sample test pattern
|
|---|
| 59 | that is used by gutenprint-devel package.
|
|---|
| 60 |
|
|---|
| 61 | %package cups
|
|---|
| 62 | Summary: CUPS drivers for Canon, Epson, HP and compatible printers
|
|---|
| 63 | Requires: cups
|
|---|
| 64 | Requires: %{name} = %{version}-%{release}
|
|---|
| 65 |
|
|---|
| 66 | %description cups
|
|---|
| 67 | This package contains native CUPS support for a wide range of Canon,
|
|---|
| 68 | Epson, HP and compatible printers.
|
|---|
| 69 |
|
|---|
| 70 | %debug_package
|
|---|
| 71 |
|
|---|
| 72 | %prep
|
|---|
| 73 | %scm_setup
|
|---|
| 74 |
|
|---|
| 75 | %build
|
|---|
| 76 | # rebuild all configure and the like files
|
|---|
| 77 | touch %{_builddir}/%{buildsubdir}/doc/developer/html-stamp
|
|---|
| 78 |
|
|---|
| 79 | export NOCONFIGURE=1
|
|---|
| 80 | autogen.sh
|
|---|
| 81 |
|
|---|
| 82 | export LDFLAGS=" -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 83 | export LIBS="-lcx"
|
|---|
| 84 | export VENDOR="%{vendor}"
|
|---|
| 85 |
|
|---|
| 86 | %configure --disable-static --enable-shared \
|
|---|
| 87 | --with-modules=no \
|
|---|
| 88 | --enable-samples --enable-escputil \
|
|---|
| 89 | --enable-test --disable-rpath \
|
|---|
| 90 | --enable-cups-1_2-enhancements \
|
|---|
| 91 | --disable-cups-ppds \
|
|---|
| 92 | --enable-simplified-cups-ppds
|
|---|
| 93 |
|
|---|
| 94 | # this export is needed, as else the dll for the tests are not found
|
|---|
| 95 | export BEGINLIBPATH=%{_builddir}/%{buildsubdir}/src/main/.libs
|
|---|
| 96 | make %{?_smp_mflags}
|
|---|
| 97 |
|
|---|
| 98 | %check
|
|---|
| 99 | # Test suite disabled due to too long runtime
|
|---|
| 100 | # this export is needed, as else the dll for the tests are not found
|
|---|
| 101 | #export BEGINLIBPATH=%{_builddir}/%{buildsubdir}/src/main/.libs
|
|---|
| 102 | #make check
|
|---|
| 103 |
|
|---|
| 104 | %install
|
|---|
| 105 | make DESTDIR=%{buildroot} install
|
|---|
| 106 |
|
|---|
| 107 | # Don't ship libtool la files.
|
|---|
| 108 | rm -f %{buildroot}%{_libdir}/lib*.la
|
|---|
| 109 |
|
|---|
| 110 | rm -rf %{buildroot}%{_datadir}/gutenprint/doc
|
|---|
| 111 | rm -f %{buildroot}%{_datadir}/foomatic/kitload.log
|
|---|
| 112 | rm -rf %{buildroot}%{_libdir}/gutenprint/5.2/modules/*.la
|
|---|
| 113 | rm -f %{buildroot}%{_sysconfdir}/cups/command.types
|
|---|
| 114 |
|
|---|
| 115 | %find_lang %{name}
|
|---|
| 116 | sed 's!%{_datadir}/locale/\([^/]*\)/LC_MESSAGES/gutenprint.mo!%{_datadir}/locale/\1/gutenprint_\1.po!g' %{name}.lang >%{name}-po.lang
|
|---|
| 117 | rm -f %{name}.lang
|
|---|
| 118 | %find_lang %{name} --all-name
|
|---|
| 119 | cat %{name}-po.lang >>%{name}.lang
|
|---|
| 120 |
|
|---|
| 121 | echo .so man8/cups-genppd.8 > %{buildroot}%{_mandir}/man8/cups-genppd.5.2.8
|
|---|
| 122 |
|
|---|
| 123 | #post libs -p /sbin/ldconfig
|
|---|
| 124 |
|
|---|
| 125 | #postun libs -p /sbin/ldconfig
|
|---|
| 126 |
|
|---|
| 127 | %post cups
|
|---|
| 128 | %{_sbindir}/cups-genppdupdate >/dev/null 2>&1 || :
|
|---|
| 129 | #/sbin/service cups reload >/dev/null 2>&1 || :
|
|---|
| 130 | exit 0
|
|---|
| 131 |
|
|---|
| 132 |
|
|---|
| 133 | %files -f %{name}.lang
|
|---|
| 134 | %doc COPYING
|
|---|
| 135 | %{_bindir}/escputil.exe
|
|---|
| 136 | %{_mandir}/man1/escputil.1*
|
|---|
| 137 | %{_datadir}/%{name}/5.2
|
|---|
| 138 |
|
|---|
| 139 | %files doc
|
|---|
| 140 | %doc COPYING AUTHORS NEWS README doc/FAQ.html doc/gutenprint-users-manual.odt doc/gutenprint-users-manual.pdf
|
|---|
| 141 |
|
|---|
| 142 | %files libs
|
|---|
| 143 | %{_libdir}/gutenpr*.dll
|
|---|
| 144 |
|
|---|
| 145 | %files devel
|
|---|
| 146 | %doc ChangeLog doc/developer/reference-html doc/developer/gutenprint.pdf
|
|---|
| 147 | %doc doc/gutenprint
|
|---|
| 148 | %{_includedir}/gutenprint/
|
|---|
| 149 | %{_libdir}/*.a
|
|---|
| 150 | %{_libdir}/pkgconfig/gutenprint.pc
|
|---|
| 151 |
|
|---|
| 152 | %files extras
|
|---|
| 153 | %doc
|
|---|
| 154 | %{_bindir}/testpattern.exe
|
|---|
| 155 | %{_datadir}/gutenprint/samples/*
|
|---|
| 156 |
|
|---|
| 157 | %files cups
|
|---|
| 158 | %doc
|
|---|
| 159 | %{_datadir}/cups/calibrate.ppm
|
|---|
| 160 | %{_datadir}/cups/usb/net.sf.gimp-print.usb-quirks
|
|---|
| 161 | %{_cups_serverbin}/filter/*.exe
|
|---|
| 162 | %{_cups_serverbin}/driver/*.exe
|
|---|
| 163 | %{_cups_serverbin}/backend/*.exe
|
|---|
| 164 | %{_bindir}/cups-calibrate.exe
|
|---|
| 165 | %{_sbindir}/cups-genppd*.exe
|
|---|
| 166 | %{_sbindir}/cups-genppdupdate
|
|---|
| 167 | %{_mandir}/man8/cups-calibrate.8*
|
|---|
| 168 | %{_mandir}/man8/cups-genppd*.8*
|
|---|
| 169 |
|
|---|
| 170 |
|
|---|
| 171 | %changelog
|
|---|
| 172 | * Tue Mar 21 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> - 5.2.12-1
|
|---|
| 173 | - use scm_ macros
|
|---|
| 174 | - update gutenprint to version 5.2.12
|
|---|
| 175 |
|
|---|
| 176 | * Fri May 13 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> - 5.2.11-3
|
|---|
| 177 | - escape /@unixroot right and add binmode to cups-genppdupdate script
|
|---|
| 178 | - fix cups-genppdupdate to find the driver_bin
|
|---|
| 179 |
|
|---|
| 180 | * Thu Apr 21 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> - 5.2.11-2
|
|---|
| 181 | - remove Zbin-files
|
|---|
| 182 |
|
|---|
| 183 | * Tue Mar 22 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> - 5.2.11-1
|
|---|
| 184 | - first version
|
|---|