]>
Commit | Line | Data |
---|---|---|
2bf029ba | 1 | # |
ff901ac9 | 2 | %bcond_with ppr # ppr support disabled until we have ppr.spec in working shape |
4cc458b5 | 3 | # |
47f5ea55 | 4 | %include /usr/lib/rpm/macros.perl |
5 | Summary: System for using free software printer drivers | |
81f9d81a | 6 | Summary(pl.UTF-8): System umożliwiający używanie darmowych sterowników drukarek |
47f5ea55 | 7 | Name: foomatic-filters |
06844dfe | 8 | Version: 4.0.17 |
e80a98b2 | 9 | Release: 1 |
98d8d3fc | 10 | Epoch: 1 |
47f5ea55 | 11 | License: GPL |
12 | Group: Applications/System | |
3e5ae3a9 | 13 | Source0: http://www.openprinting.org/download/foomatic/%{name}-%{version}.tar.gz |
06844dfe | 14 | # Source0-md5: b05f5dcbfe359f198eef3df5b283d896 |
a17894c1 | 15 | URL: http://www.linuxfoundation.org/en/OpenPrinting/Database/Foomatic |
06844dfe | 16 | BuildRequires: autoconf >= 2.61 |
47f5ea55 | 17 | BuildRequires: automake |
06844dfe | 18 | BuildRequires: dbus-devel |
000e90bd | 19 | BuildRequires: rpm-perlprov |
47f5ea55 | 20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
1b4876e6 JK |
22 | %define _ulibdir %{_prefix}/lib |
23 | ||
47f5ea55 | 24 | %description |
25 | Foomatic is a system for using free software printer drivers with | |
9baf4844 ER |
26 | common spoolers on Unix. It supports LPD, PDQ, CUPS, the VA Linux LPD, |
27 | LPRng, PPR, and direct spooler-less printing and any free software | |
28 | driver for which execution data has been entered in the database. | |
47f5ea55 | 29 | |
104c8aa5 JR |
30 | %description -l pl.UTF-8 |
31 | Foomatic to system pozwalający na używanie wolnodostępnych sterowników | |
32 | drukarek z popularnymi uniksowymi serwerami wydruków. Obsługuje LPD, | |
33 | PDQ, CUPS, VA Linux LPD, LPRng, PPR i bezpośrednie drukowanie bez | |
34 | kolejkowania oraz dowolny wolnodostępny sterownik, dla którego | |
35 | parametry zostały wprowadzone do bazy danych. | |
47f5ea55 | 36 | |
9c05c4c2 | 37 | %package -n cups-filter-foomatic |
47f5ea55 | 38 | Summary: cupsomatic - CUPS filter |
81f9d81a | 39 | Summary(pl.UTF-8): cupsomatic - filtr do CUPS |
47f5ea55 | 40 | Group: Applications/System |
129350cc | 41 | Requires: %{name} = %{epoch}:%{version} |
9baf4844 | 42 | Requires: cups |
9c05c4c2 | 43 | Obsoletes: cups-foomatic |
9d692844 | 44 | Obsoletes: foomatic-cups |
47f5ea55 | 45 | |
9c05c4c2 | 46 | %description -n cups-filter-foomatic |
47f5ea55 | 47 | Cupsomatic is intended to be used as a CUPS filter for printers |
48 | defined in a PPD file (CUPS-O-Matic or PPD-O-Matic) obtained from the | |
49 | Linux Printing Database. | |
50 | ||
104c8aa5 | 51 | %description -n cups-filter-foomatic -l pl.UTF-8 |
47f5ea55 | 52 | Cupsomatic jest filtrem do CUPS dla drukarek zdefiniowanych w pliku |
53 | PPD (CUPS-O-Matic lub PPD-O-Matic), uzyskanym z Linux Printing | |
54 | Database. | |
55 | ||
56 | %package ppr | |
57 | Summary: ppromatic - PPR interface | |
81f9d81a | 58 | Summary(pl.UTF-8): ppromatic - interfejs do PPR |
47f5ea55 | 59 | Group: Applications/System |
129350cc | 60 | Requires: %{name} = %{epoch}:%{version} |
47f5ea55 | 61 | Requires: ppr |
af8ce0c7 | 62 | Obsoletes: foomatic-ppr |
47f5ea55 | 63 | |
64 | %description ppr | |
65 | ppromatic is intended to be used as a PPR interface for printers | |
66 | defined in a PPD-O-Matic PPD file obtained from the Linux Printing | |
67 | Database. | |
68 | ||
104c8aa5 | 69 | %description ppr -l pl.UTF-8 |
47f5ea55 | 70 | ppromatic jest interfejsem do PPR dla drukarek zdefiniowanych w pliku |
71 | PPD (PPD-O-Matic) uzyskanym z Linux Printing Database. | |
72 | ||
73 | %prep | |
a17894c1 | 74 | %setup -q |
47f5ea55 | 75 | |
76 | %build | |
77 | %{__aclocal} | |
78 | %{__autoconf} | |
06844dfe JB |
79 | %{__autoheader} |
80 | %{__automake} | |
81 | %configure \ | |
82 | --disable-file-converter-check | |
47f5ea55 | 83 | %{__make} |
84 | ||
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
153c5470 PG |
87 | %{__make} install \ |
88 | DESTDIR="$RPM_BUILD_ROOT" | |
47f5ea55 | 89 | |
1b4876e6 | 90 | ln -sf %{_bindir}/foomatic-rip $RPM_BUILD_ROOT%{_ulibdir}/cups/filter/cupsomatic |
1dd95cab | 91 | |
06844dfe JB |
92 | %if %{without ppr} |
93 | %{__rm} -r $RPM_BUILD_ROOT%{_ulibdir}/ppr | |
94 | %endif | |
95 | ||
47f5ea55 | 96 | %clean |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
99 | %files | |
100 | %defattr(644,root,root,755) | |
101 | %doc ChangeLog TODO README USAGE | |
771d06e7 | 102 | %dir %{_sysconfdir}/foomatic |
9baf4844 ER |
103 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/foomatic/direct |
104 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/foomatic/filter.conf | |
47f5ea55 | 105 | %attr(755,root,root) %{_bindir}/foomatic-rip |
06844dfe | 106 | %{_mandir}/man1/foomatic-rip.1* |
47f5ea55 | 107 | |
9c05c4c2 | 108 | %files -n cups-filter-foomatic |
47f5ea55 | 109 | %defattr(644,root,root,755) |
37c1facd | 110 | %attr(755,root,root) %{_ulibdir}/cups/backend/beh |
06844dfe JB |
111 | %attr(755,root,root) %{_ulibdir}/cups/filter/cupsomatic |
112 | %attr(755,root,root) %{_ulibdir}/cups/filter/foomatic-rip | |
47f5ea55 | 113 | |
ff901ac9 | 114 | %if %{with ppr} |
47f5ea55 | 115 | %files ppr |
116 | %defattr(644,root,root,755) | |
1b4876e6 JK |
117 | %attr(755,root,root) %{_ulibdir}/ppr/interfaces/foomatic-rip |
118 | %attr(755,root,root) %{_ulibdir}/ppr/lib/foomatic-rip | |
ff901ac9 | 119 | %endif |