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