1 %include /usr/lib/rpm/macros.perl
3 Summary: System for using free software printer drivers
4 Summary(pl.UTF-8): System umożliwiający używanie darmowych sterowników drukarek
5 Name: foomatic-db-engine
9 Group: Applications/System
10 Source0: http://www.linuxprinting.org/download/foomatic/%{name}-3.0-%{snap}.tar.gz
11 # Source0-md5: d6ac64aeaa1f6ecdf386df6b6ad380a7
12 Patch0: %{name}-destdir.patch
13 Patch1: %{name}-cups.patch
14 URL: http://www.linuxprinting.org/foomatic.html
15 BuildRequires: autoconf
16 BuildRequires: automake
17 BuildRequires: foomatic-filters >= 3.0.20080317
18 BuildRequires: libxml2-devel
19 BuildRequires: perl-devel
20 BuildRequires: rpm-perlprov
21 Provides: perl(Foomatic::GrovePath)
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 %define _ulibdir %{_prefix}/lib
28 Foomatic is a system for using free software printer drivers with
29 common spoolers on Unix. It supports LPD, PDQ, CUPS, the VA Linux LPD,
30 LPRng, PPR, and direct spooler-less printing and any free software
31 driver for which execution data has been entered in the database.
33 %description -l pl.UTF-8
34 Foomatic to system pozwalający na używanie wolnodostępnych sterowników
35 drukarek z popularnymi uniksowymi serwerami wydruków. Obsługuje LPD,
36 PDQ, CUPS, VA Linux LPD, LPRng, PPR i bezpośrednie drukowanie bez
37 kolejkowania oraz dowolny wolnodostępny sterownik, dla którego
38 parametry zostały wprowadzone do bazy danych.
41 %setup -q -n %{name}-3.0-%{snap}
50 PERL_INSTALLDIRS=vendor
53 rm -rf $RPM_BUILD_ROOT
55 chmod +x mkinstalldirs
57 %{__sed} -i 's,PREFIX =.*,PREFIX = %{_prefix},g' lib/Makefile
59 DESTDIR=$RPM_BUILD_ROOT
61 install -d $RPM_BUILD_ROOT%{_datadir}/foomatic/db/source/{driver,opt,printer}
64 rm -rf $RPM_BUILD_ROOT
67 %defattr(644,root,root,755)
68 %doc ChangeLog TODO README USAGE
69 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/foomatic
70 %attr(755,root,root) %{_bindir}/foomatic-*
71 %attr(755,root,root) %{_sbindir}/foomatic-*
72 %attr(755,root,root) %{_ulibdir}/cups/driver/foomatic
73 %{perl_vendorlib}/Foomatic