]>
Commit | Line | Data |
---|---|---|
e843efae | 1 | %include /usr/lib/rpm/macros.perl |
2 | Summary: System for using free software printer drivers | |
17c035cf | 3 | Summary(pl.UTF-8): System umożliwiający używanie darmowych sterowników drukarek |
e843efae | 4 | Name: foomatic-db-engine |
9988fc85 | 5 | Version: 4.0.9 |
4a75c0da | 6 | Release: 2 |
9988fc85 JB |
7 | Epoch: 1 |
8 | License: GPL v2+ | |
e843efae | 9 | Group: Applications/System |
9988fc85 JB |
10 | Source0: http://www.openprinting.org/download/foomatic/%{name}-%{version}.tar.gz |
11 | # Source0-md5: 5b33c1adb21e7b6f3652e9a18d0e6f4e | |
2c5d3e97 | 12 | Patch0: %{name}-cups.patch |
77990db2 | 13 | URL: http://www.linuxprinting.org/foomatic.html |
9988fc85 | 14 | BuildRequires: autoconf >= 2.52 |
e843efae | 15 | BuildRequires: automake |
9988fc85 | 16 | BuildRequires: libxml2-devel >= 2 |
63f955fe | 17 | BuildRequires: perl-devel |
7b9a31e3 | 18 | BuildRequires: rpm-perlprov |
e843efae | 19 | Provides: perl(Foomatic::GrovePath) |
9988fc85 JB |
20 | Suggests: a2ps |
21 | Suggests: foomatic-filters >= 4.0.7 | |
22 | Suggests: ghostscript | |
23 | Suggests: wget | |
63f955fe | 24 | Obsoletes: foomatic |
3598c89c | 25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
e843efae | 26 | |
3f3e218c PZ |
27 | %define _ulibdir %{_prefix}/lib |
28 | ||
e843efae | 29 | %description |
30 | Foomatic is a system for using free software printer drivers with | |
59bceab9 ER |
31 | common spoolers on Unix. It supports LPD, PDQ, CUPS, the VA Linux LPD, |
32 | LPRng, PPR, and direct spooler-less printing and any free software | |
33 | driver for which execution data has been entered in the database. | |
e843efae | 34 | |
14e62139 JR |
35 | %description -l pl.UTF-8 |
36 | Foomatic to system pozwalający na używanie wolnodostępnych sterowników | |
37 | drukarek z popularnymi uniksowymi serwerami wydruków. Obsługuje LPD, | |
38 | PDQ, CUPS, VA Linux LPD, LPRng, PPR i bezpośrednie drukowanie bez | |
39 | kolejkowania oraz dowolny wolnodostępny sterownik, dla którego | |
40 | parametry zostały wprowadzone do bazy danych. | |
e843efae | 41 | |
42 | %prep | |
9988fc85 | 43 | %setup -q |
3f3e218c | 44 | %patch0 -p1 |
e843efae | 45 | |
46 | %build | |
d66a52ad | 47 | %{__aclocal} -I . |
e843efae | 48 | %{__autoconf} |
9988fc85 JB |
49 | %configure \ |
50 | A2PS=/usr/bin/a2ps \ | |
51 | GS=/usr/bin/gs \ | |
52 | WGET=/usr/bin/wget \ | |
53 | --disable-gscheck | |
02ae99e4 | 54 | %{__make} \ |
55 | PERL_INSTALLDIRS=vendor | |
e843efae | 56 | |
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
3ae60206 | 59 | |
60 | chmod +x mkinstalldirs | |
61 | ||
ee74a766 | 62 | %{__sed} -i 's,PREFIX =.*,PREFIX = %{_prefix},g' lib/Makefile |
02ae99e4 | 63 | %{__make} install \ |
3598c89c | 64 | DESTDIR=$RPM_BUILD_ROOT |
e843efae | 65 | |
5ed77c9e | 66 | install -d $RPM_BUILD_ROOT%{_datadir}/foomatic/db/source/{driver,opt,printer} |
67 | ||
e843efae | 68 | %clean |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %files | |
72 | %defattr(644,root,root,755) | |
9988fc85 JB |
73 | %doc ChangeLog README TODO USAGE |
74 | # XXX: dir shared with foomatic-filters | |
75 | %dir %{_sysconfdir}/foomatic | |
76 | %attr(755,root,root) %{_bindir}/foomatic-combo-xml | |
77 | %attr(755,root,root) %{_bindir}/foomatic-compiledb | |
78 | %attr(755,root,root) %{_bindir}/foomatic-configure | |
79 | %attr(755,root,root) %{_bindir}/foomatic-datafile | |
80 | %attr(755,root,root) %{_bindir}/foomatic-perl-data | |
81 | %attr(755,root,root) %{_bindir}/foomatic-ppd-options | |
82 | %attr(755,root,root) %{_bindir}/foomatic-ppd-to-xml | |
83 | %attr(755,root,root) %{_bindir}/foomatic-ppdfile | |
84 | %attr(755,root,root) %{_bindir}/foomatic-printjob | |
85 | %attr(755,root,root) %{_bindir}/foomatic-searchprinter | |
86 | %attr(755,root,root) %{_sbindir}/foomatic-addpjloptions | |
87 | %attr(755,root,root) %{_sbindir}/foomatic-cleanupdrivers | |
88 | %attr(755,root,root) %{_sbindir}/foomatic-extract-text | |
89 | %attr(755,root,root) %{_sbindir}/foomatic-fix-xml | |
90 | %attr(755,root,root) %{_sbindir}/foomatic-getpjloptions | |
91 | %attr(755,root,root) %{_sbindir}/foomatic-kitload | |
92 | %attr(755,root,root) %{_sbindir}/foomatic-nonumericalids | |
93 | %attr(755,root,root) %{_sbindir}/foomatic-preferred-driver | |
94 | %attr(755,root,root) %{_sbindir}/foomatic-printermap-to-gutenprint-xml | |
95 | %attr(755,root,root) %{_sbindir}/foomatic-replaceoldprinterids | |
3f3e218c | 96 | %attr(755,root,root) %{_ulibdir}/cups/driver/foomatic |
02ae99e4 | 97 | %{perl_vendorlib}/Foomatic |
e843efae | 98 | %{_datadir}/foomatic |
9988fc85 JB |
99 | %{_mandir}/man1/foomatic-combo-xml.1* |
100 | %{_mandir}/man1/foomatic-compiledb.1* | |
101 | %{_mandir}/man1/foomatic-configure.1* | |
102 | %{_mandir}/man1/foomatic-perl-data.1* | |
103 | %{_mandir}/man1/foomatic-ppd-options.1* | |
104 | %{_mandir}/man1/foomatic-ppdfile.1* | |
105 | %{_mandir}/man1/foomatic-printjob.1* | |
106 | %{_mandir}/man8/foomatic-addpjloptions.8* | |
107 | %{_mandir}/man8/foomatic-getpjloptions.8* | |
108 | %{_mandir}/man8/foomatic-kitload.8* | |
109 | %{_mandir}/man8/foomatic-preferred-driver.8* |