]> git.pld-linux.org Git - packages/cups-driver-splix.git/blob - cups-driver-splix.spec
- cleanups, strict internal deps
[packages/cups-driver-splix.git] / cups-driver-splix.spec
1 Summary:        A set of CUPS printer drivers for SPL (Samsung Printer Language) printers
2 Name:           cups-driver-splix
3 Version:        1.1.1
4 Release:        0.1
5 License:        GPL
6 Group:          Applications
7 Source0:        http://dl.sourceforge.net/splix/splix-%{version}.tar.bz2
8 # Source0-md5:  13af25dd72aae68b39eaf557d62957a5
9 Patch0:         %{name}-optflags.patch
10 URL:            http://splix.sourceforge.net/
11 BuildRequires:  cups-devel
12 Requires:       cups
13 Requires:       cups-clients
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %define         _datadir        %(cups-config --datadir 2>/dev/null)
17 %define         _libdir         %(cups-config --serverbin 2>/dev/null)
18 %define         _cupsppddir     %{_datadir}/model
19 %define         _cupsfilterdir  %{_libdir}/filter
20 %define         _cupsfontsdir   %{_datadir}/fonts
21
22 %description
23 Splix is a driver for printers that speak SPL (Samsung Printer
24 Language). This includes printers made by Samsung and several Xerox
25 printers.
26
27 %package samsung
28 Summary:        Splix Samsung drivers to CUPS
29 Group:          Applications
30 Requires:       %{name} = %{version}-%{release}
31
32 %description samsung
33 Splix Samsung drivers to CUPS
34
35 %package xerox
36 Summary:        Splix Xerox drivers to CUPS
37 Group:          Applications
38 Requires:       %{name} = %{version}-%{release}
39
40 %description xerox
41 Splix Xerox drivers to CUPS
42
43 %package dell
44 Summary:        Splix Dell drivers to CUPS
45 Group:          Applications
46 Requires:       %{name} = %{version}-%{release}
47
48 %description dell
49 Splix Dell drivers to CUPS
50
51 %prep
52 %setup -q -n splix-%{version}
53 %patch0 -p1
54
55 %build
56 %{__make} \
57         CXX="%{__cxx}" \
58         OPTCXXFLAGS="%{rpmcxxflags}" \
59         OPTLDFLAGS="%{rpmldflags} %{rpmcxxflags}" \
60         DISABLE_JBIG=1
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64 install -d $RPM_BUILD_ROOT%{_cupsfilterdir}
65 install src/rastertospl2 $RPM_BUILD_ROOT%{_cupsfilterdir}
66 ## samsung drivers
67 install -d $RPM_BUILD_ROOT%{_cupsppddir}/samsung
68 cp -a ppd/{cl{p,x}*,ml*} $RPM_BUILD_ROOT%{_cupsppddir}/samsung
69 ## xerox drivers
70 install -d $RPM_BUILD_ROOT%{_cupsppddir}/xerox
71 cp -a ppd/ph* $RPM_BUILD_ROOT%{_cupsppddir}/xerox
72 ## dell drivers
73 install -d $RPM_BUILD_ROOT%{_cupsppddir}/dell
74 cp -a ppd/1100* $RPM_BUILD_ROOT%{_cupsppddir}/dell
75
76 %clean
77 rm -rf $RPM_BUILD_ROOT
78
79 %files
80 %defattr(644,root,root,755)
81 %doc AUTHORS ChangeLog INSTALL README THANKS TODO
82 %attr(755,root,root) %{_cupsfilterdir}/rastertospl2
83
84 %files samsung
85 %defattr(644,root,root,755)
86 %dir %{_cupsppddir}/samsung
87 %{_cupsppddir}/samsung/*
88
89 %files xerox
90 %defattr(644,root,root,755)
91 %dir %{_cupsppddir}/xerox
92 %{_cupsppddir}/xerox/*
93
94 %files dell
95 %defattr(644,root,root,755)
96 %dir %{_cupsppddir}/dell
97 %{_cupsppddir}/dell/*
This page took 0.031404 seconds and 4 git commands to generate.