Code sync
[external/epson-inkjet-printer-escpr.git] / packaging / epson-inkjet-printer-escpr.spec.in
1 # epson-inkjet-printer-escpr.spec.in -- an rpm spec file templete
2 # Epson Inkjet Printer Driver (ESC/P-R) for Linux
3 # Copyright (C) 2000-2006 AVASYS CORPORATION.
4 # Copyright (C) Seiko Epson Corporation 2006-2012.
5 #  This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA.
18
19 %define pkg     @PACKAGE_TARNAME@
20 %define ver     @PACKAGE_VERSION@
21 %define rel     @PACKAGE_RELEASE@
22
23 %define cupsfilterdir   @CUPS_FILTER_DIR@
24 %define cupsppddir      @CUPS_PPD_DIR@
25
26 Name: @PACKAGE_TARNAME@
27 Version: @PACKAGE_VERSION@
28 Release: @PACKAGE_RELEASE@
29 Source0: %{name}-%{version}.tar.gz
30 License: GPL
31 Vendor: @VENDOR_NAME@
32 URL: http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX
33 Packager: @PACKAGE_BUGREPORT@
34 BuildRoot: %{_tmppath}/%{name}-%{version}
35 BuildRequires: cups-devel
36 Group: Applications/System
37 Summary: @PACKAGE_NAME@
38
39 %description
40 This software is a filter program used with Common UNIX Printing
41 System (CUPS) from the Linux. This can supply the high quality print
42 with Seiko Epson Color Ink Jet Printers.
43
44 This product supports only EPSON ESC/P-R printers. This package can be
45 used for all EPSON ESC/P-R printers.
46
47 For detail list of supported printer, please refer to below site:
48 http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX
49
50 %prep
51 %setup -q
52
53 %build
54 %configure \
55         --with-cupsfilterdir=%{cupsfilterdir} \
56         --with-cupsppddir=%{cupsppddir} \
57         --disable-static
58 make
59
60 %install
61 rm -rf ${RPM_BUILD_ROOT}
62 make install-strip DESTDIR=${RPM_BUILD_ROOT}
63
64 %post
65 /sbin/ldconfig
66
67 %postun
68 /sbin/ldconfig
69
70 %clean
71 make clean
72 rm -rf ${RPM_BUILD_ROOT}
73
74 %files
75 %manifest epson-inkjet-printer-escpr.manifest
76 %defattr(-,root,root)
77 %doc AUTHORS COPYING NEWS README README.ja
78 %{cupsfilterdir}/epson-escpr
79 %{cupsfilterdir}/epson-escpr-wrapper
80 %{_libdir}/libescpr.*
81 %dir %{_datadir}/%{name}
82 %{_datadir}/%{name}/paper_list.csv
83 %{cupsppddir}/*.ppd