]> git.pld-linux.org Git - packages/foomatic-filters.git/blob - foomatic-filters.spec
- drop obsolete and outdated manual inclusion of rpm macros
[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 Summary:        System for using free software printer drivers
6 Summary(pl.UTF-8):      System umożliwiający używanie darmowych sterowników drukarek
7 Name:           foomatic-filters
8 Version:        4.0.17
9 Release:        1
10 Epoch:          1
11 License:        GPL v2+
12 Group:          Applications/System
13 Source0:        http://www.openprinting.org/download/foomatic/%{name}-%{version}.tar.gz
14 # Source0-md5:  b05f5dcbfe359f198eef3df5b283d896
15 URL:            http://www.linuxfoundation.org/en/OpenPrinting/Database/Foomatic
16 BuildRequires:  autoconf >= 2.61
17 BuildRequires:  automake
18 BuildRequires:  dbus-devel
19 BuildRequires:  rpm-perlprov
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %define _ulibdir        %{_prefix}/lib
23
24 %description
25 Foomatic is a system for using free software printer drivers with
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.
29
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.
36
37 %package -n cups-filter-foomatic
38 Summary:        cupsomatic - CUPS filter
39 Summary(pl.UTF-8):      cupsomatic - filtr do CUPS
40 Group:          Applications/System
41 Requires:       %{name} = %{epoch}:%{version}
42 Requires:       cups
43 Obsoletes:      cups-foomatic
44 Obsoletes:      foomatic-cups
45
46 %description -n cups-filter-foomatic
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
51 %description -n cups-filter-foomatic -l pl.UTF-8
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
58 Summary(pl.UTF-8):      ppromatic - interfejs do PPR
59 Group:          Applications/System
60 Requires:       %{name} = %{epoch}:%{version}
61 Requires:       ppr
62 Obsoletes:      foomatic-ppr
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
69 %description ppr -l pl.UTF-8
70 ppromatic jest interfejsem do PPR dla drukarek zdefiniowanych w pliku
71 PPD (PPD-O-Matic) uzyskanym z Linux Printing Database.
72
73 %prep
74 %setup -q
75
76 %build
77 %{__aclocal}
78 %{__autoconf}
79 %{__autoheader}
80 %{__automake}
81 %configure \
82         --disable-file-converter-check
83 %{__make}
84
85 %install
86 rm -rf $RPM_BUILD_ROOT
87 %{__make} install \
88         DESTDIR="$RPM_BUILD_ROOT"
89
90 ln -sf %{_bindir}/foomatic-rip $RPM_BUILD_ROOT%{_ulibdir}/cups/filter/cupsomatic
91
92 %if %{without ppr}
93 %{__rm} -r $RPM_BUILD_ROOT%{_ulibdir}/ppr
94 %endif
95
96 %clean
97 rm -rf $RPM_BUILD_ROOT
98
99 %files
100 %defattr(644,root,root,755)
101 %doc ChangeLog TODO README USAGE
102 %dir %{_sysconfdir}/foomatic
103 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/foomatic/direct
104 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/foomatic/filter.conf
105 %attr(755,root,root) %{_bindir}/foomatic-rip
106 %{_mandir}/man1/foomatic-rip.1*
107
108 %files -n cups-filter-foomatic
109 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_ulibdir}/cups/backend/beh
111 %attr(755,root,root) %{_ulibdir}/cups/filter/cupsomatic
112 %attr(755,root,root) %{_ulibdir}/cups/filter/foomatic-rip
113
114 %if %{with ppr}
115 %files ppr
116 %defattr(644,root,root,755)
117 %attr(755,root,root) %{_ulibdir}/ppr/interfaces/foomatic-rip
118 %attr(755,root,root) %{_ulibdir}/ppr/lib/foomatic-rip
119 %endif
This page took 0.103304 seconds and 4 git commands to generate.