]> git.pld-linux.org Git - packages/cups-backend-pdf.git/blame - cups-backend-pdf.spec
- release 2
[packages/cups-backend-pdf.git] / cups-backend-pdf.spec
CommitLineData
c9d8fe67
ER
1# TODO
2# - add contrib dir
6dd96d21
JB
3Summary: CUPS-PDF driver
4Summary(pl.UTF-8): Sterownik CUPS-PDF
2a021498 5Name: cups-pdf
f8ed97e5 6Version: 2.5.0
dda41ee5 7Release: 2
2a021498
MWP
8License: GPL v2
9Group: Applications
10Source0: http://www.cups-pdf.de/src/%{name}_%{version}.tar.gz
f8ed97e5 11# Source0-md5: 9194af099a8c0e9aa213505b29ec6818
2a021498 12URL: http://www.cups-pdf.de/
0a581cd3
KK
13BuildRequires: cups-devel
14Requires: cups
2a021498 15Requires: ghostscript
c9d8fe67 16Conflicts: ghostscript-esp < 8.15.2
2a021498
MWP
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
c9d8fe67 19%define _libdir %(cups-config --serverbin 2>/dev/null)
b2e347bb 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}}
c9d8fe67
ER
39cp -a src/cups-pdf $RPM_BUILD_ROOT%{_libdir}/backend
40cp -a extra/cups-pdf.conf $RPM_BUILD_ROOT%{_sysconfdir}/cups
41cp -a extra/CUPS-PDF.ppd $RPM_BUILD_ROOT%{_datadir}/cups/model
2a021498
MWP
42
43%clean
44rm -rf $RPM_BUILD_ROOT
45
46%post
c9d8fe67 47%service -q cups restart
2a021498
MWP
48
49%postun
c9d8fe67
ER
50if [ "$1" = 0 ]; then
51 %service -q cups restart
52fi
2a021498
MWP
53
54%files
55%defattr(644,root,root,755)
56%doc ChangeLog README
2a021498 57%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cups/%{name}.conf
0a581cd3
KK
58%attr(700,root,root) %{_libdir}/backend/%{name}
59%{_datadir}/cups/model/CUPS-PDF.ppd
d607cd2c 60%dir %{_var}/spool/%{name}
This page took 0.085745 seconds and 4 git commands to generate.