source: spec/trunk/SPECS/gutenprint.spec@ 1569

Last change on this file since 1569 was 1068, checked in by Silvan Scherrer, 9 years ago

spec: gutenprint: Release version 5.2.12-1.

File size: 5.3 KB
Line 
1Name: gutenprint
2Summary: Printer Drivers Package
3Version: 5.2.12
4Release: 1%{?dist}
5URL: http://gimp-print.sourceforge.net/
6License: GPLv2+
7
8Vendor: bww bitwise works GmbH
9%scm_source svn http://svn.netlabs.org/repos/ports/gutenprint/trunk 2159
10
11Requires: %{name}-libs = %{version}-%{release}
12BuildRequires: cups-libs, cups-devel, cups
13BuildRequires: gettext-devel,pkgconfig
14BuildRequires: libtiff-devel,libjpeg-devel,libpng-devel
15BuildRequires: libusb1-devel
16
17# Make sure we get postscriptdriver tags.
18#BuildRequires: python3-cups
19
20# autoreconf
21BuildRequires: 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
29Gutenprint is a package of high quality printer drivers for Linux, BSD,
30Solaris, IRIX, and other UNIX-alike operating systems.
31Gutenprint was formerly called Gimp-Print.
32
33%package doc
34Summary: Documentation for gutenprint
35
36%description doc
37Documentation for gutenprint.
38
39%package libs
40Summary: libgutenprint library
41
42%description libs
43This package includes libgutenprint library, necessary to run gutenprint.
44
45%package devel
46Summary: Library development files for gutenprint
47Requires: %{name} = %{version}-%{release}
48
49%description devel
50This package contains headers and libraries required to build applications that
51uses gutenprint package.
52
53%package extras
54Summary: Sample test pattern generator for gutenprint-devel
55Requires: %{name} = %{version}-%{release}
56
57%description extras
58This package contains test pattern generator and the sample test pattern
59that is used by gutenprint-devel package.
60
61%package cups
62Summary: CUPS drivers for Canon, Epson, HP and compatible printers
63Requires: cups
64Requires: %{name} = %{version}-%{release}
65
66%description cups
67This package contains native CUPS support for a wide range of Canon,
68Epson, 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
77touch %{_builddir}/%{buildsubdir}/doc/developer/html-stamp
78
79export NOCONFIGURE=1
80autogen.sh
81
82export LDFLAGS=" -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
83export LIBS="-lcx"
84export 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
95export BEGINLIBPATH=%{_builddir}/%{buildsubdir}/src/main/.libs
96make %{?_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
105make DESTDIR=%{buildroot} install
106
107# Don't ship libtool la files.
108rm -f %{buildroot}%{_libdir}/lib*.la
109
110rm -rf %{buildroot}%{_datadir}/gutenprint/doc
111rm -f %{buildroot}%{_datadir}/foomatic/kitload.log
112rm -rf %{buildroot}%{_libdir}/gutenprint/5.2/modules/*.la
113rm -f %{buildroot}%{_sysconfdir}/cups/command.types
114
115%find_lang %{name}
116sed 's!%{_datadir}/locale/\([^/]*\)/LC_MESSAGES/gutenprint.mo!%{_datadir}/locale/\1/gutenprint_\1.po!g' %{name}.lang >%{name}-po.lang
117rm -f %{name}.lang
118%find_lang %{name} --all-name
119cat %{name}-po.lang >>%{name}.lang
120
121echo .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 || :
130exit 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
Note: See TracBrowser for help on using the repository browser.