]> git.pld-linux.org Git - packages/cups-backend-pdf.git/blame - cups-backend-pdf.spec
- up to 2.5.0
[packages/cups-backend-pdf.git] / cups-backend-pdf.spec
CommitLineData
2a021498
MWP
1#
2#TODO - add contrib dir
3
6dd96d21
JB
4Summary: CUPS-PDF driver
5Summary(pl.UTF-8): Sterownik CUPS-PDF
2a021498 6Name: cups-pdf
f8ed97e5 7Version: 2.5.0
0a581cd3 8Release: 1
2a021498
MWP
9License: GPL v2
10Group: Applications
11Source0: http://www.cups-pdf.de/src/%{name}_%{version}.tar.gz
f8ed97e5 12# Source0-md5: 9194af099a8c0e9aa213505b29ec6818
2a021498 13URL: http://www.cups-pdf.de/
0a581cd3
KK
14BuildRequires: cups-devel
15Requires: cups
2a021498
MWP
16Requires: ghostscript
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
b2e347bb 19%define _libdir %(cups-config --serverbin 2>/dev/null)
20
2a021498
MWP
21%description
22CUPS-PDF is designed to produce PDF files in a heterogeneous network
23by providing a PDF printer on the central fileserver.
24
6dd96d21
JB
25%description -l pl.UTF-8
26CUPS-PDF służy do tworzenia plików PDF w środowisku heterogenicznym
27poprzez udostępnienie drukarki PDF na centralnym serwerze plików.
28
2a021498
MWP
29%prep
30%setup -q
31
32%build
33cd src
6dd96d21 34%{__cc} %{rpmldflags} %{rpmcflags} -o cups-pdf cups-pdf.c
2a021498
MWP
35
36%install
37rm -rf $RPM_BUILD_ROOT
b2e347bb 38install -d $RPM_BUILD_ROOT{%{_libdir}/backend,%{_sysconfdir}/cups,%{_datadir}/cups/model,%{_var}/spool/%{name}}
2a021498 39
b2e347bb 40install src/cups-pdf $RPM_BUILD_ROOT%{_libdir}/backend
2a021498 41install extra/cups-pdf.conf $RPM_BUILD_ROOT%{_sysconfdir}/cups
0a581cd3 42install extra/CUPS-PDF.ppd $RPM_BUILD_ROOT%{_datadir}/cups/model
2a021498
MWP
43
44%clean
45rm -rf $RPM_BUILD_ROOT
46
47%post
48%service cups restart "cups daemon"
49
50%postun
51%service cups restart "cups daemon"
52
53%files
54%defattr(644,root,root,755)
55%doc ChangeLog README
2a021498 56%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cups/%{name}.conf
0a581cd3
KK
57%attr(700,root,root) %{_libdir}/backend/%{name}
58%{_datadir}/cups/model/CUPS-PDF.ppd
d607cd2c 59%dir %{_var}/spool/%{name}
This page took 0.09122 seconds and 4 git commands to generate.