1 %include /usr/lib/rpm/macros.perl
2 Summary: System for using free software printer drivers
3 Summary(pl.UTF-8): System umożliwiający używanie darmowych sterowników drukarek
4 Name: foomatic-db-engine
9 Group: Applications/System
10 Source0: http://www.openprinting.org/download/foomatic/%{name}-%{version}.tar.gz
11 # Source0-md5: 5b33c1adb21e7b6f3652e9a18d0e6f4e
12 Patch0: %{name}-cups.patch
13 URL: http://www.linuxprinting.org/foomatic.html
14 BuildRequires: autoconf >= 2.52
15 BuildRequires: automake
16 BuildRequires: libxml2-devel >= 2
17 BuildRequires: perl-devel
18 BuildRequires: rpm-perlprov
19 Provides: perl(Foomatic::GrovePath)
21 Suggests: foomatic-filters >= 4.0.7
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 %define _ulibdir %{_prefix}/lib
30 Foomatic is a system for using free software printer drivers with
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.
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.
55 PERL_INSTALLDIRS=vendor
58 rm -rf $RPM_BUILD_ROOT
60 chmod +x mkinstalldirs
62 %{__sed} -i 's,PREFIX =.*,PREFIX = %{_prefix},g' lib/Makefile
64 DESTDIR=$RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT%{_datadir}/foomatic/db/source/{driver,opt,printer}
69 rm -rf $RPM_BUILD_ROOT
72 %defattr(644,root,root,755)
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
96 %attr(755,root,root) %{_ulibdir}/cups/driver/foomatic
97 %{perl_vendorlib}/Foomatic
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*