]>
Commit | Line | Data |
---|---|---|
c1243c0f | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
c1243c0f SS |
4 | ############################################################################### |
5 | ||
802ea3af | 6 | name = cups |
1f9b7ef8 KB |
7 | version = 1.6.1 |
8 | release = 1 | |
c1243c0f | 9 | |
802ea3af MT |
10 | groups = Applications/Printing |
11 | url = http://cups.org/software.php | |
12 | license = GPLv2+ | |
13 | summary = The common UNIX printing system. | |
c1243c0f | 14 | |
802ea3af | 15 | description |
c1243c0f | 16 | CUPS is the standards-based, open source printing system developed \ |
b38b08f1 | 17 | by Apple Inc. for Mac OS(R) X and other UNIX(R)-like operating systems. |
802ea3af MT |
18 | end |
19 | ||
98cf9989 | 20 | source_dl = http://ftp.easysw.com/pub/cups/%{version}/ |
802ea3af MT |
21 | sources = %{thisapp}-source.tar.bz2 |
22 | ||
23 | build | |
24 | requires | |
25 | audit-devel | |
26 | autoconf | |
27 | automake | |
28 | avahi-devel | |
29 | cyrus-sasl-devel | |
30 | gcc-c++ | |
31 | ghostscript | |
32 | gnutls-devel | |
33 | libgcrypt-devel | |
34 | libjpeg-devel | |
35 | libpng-devel | |
36 | libselinux-devel | |
37 | libtasn1-devel | |
38 | libtiff-devel | |
39 | openldap-devel | |
40 | pam-devel | |
41 | perl | |
42 | python | |
43 | zlib-devel | |
44 | end | |
45 | ||
46 | configure_options += \ | |
47 | --sysconfdir=/etc \ | |
48 | --localstatedir=/var \ | |
49 | --with-log-file-perm=0600 \ | |
50 | --enable-pie \ | |
51 | --enable-relro \ | |
52 | --enable-avahi \ | |
53 | --enable-lspp \ | |
54 | --enable-threads \ | |
55 | --enable-gnutls | |
56 | ||
57 | prepare_cmds | |
58 | aclocal -I config-scripts | |
59 | autoconf -I config-scripts | |
60 | end | |
61 | ||
62 | install | |
63 | make install BUILDROOT=%{BUILDROOT} | |
64 | ||
65 | # Remove sysvinit scripts | |
66 | rm -vfr %{BUILDROOT}/etc/init.d/cups %{BUILDROOT}/etc/rc*.d | |
67 | ||
68 | mkdir -pv %{BUILDROOT}/etc/cups | |
69 | cp -vf %{DIR_APP}/conf/cupsd.conf %{BUILDROOT}/etc/cups/ | |
70 | ||
71 | # Logrotate | |
72 | mkdir -pv %{BUILDROOT}/etc/logrotate.d/ | |
73 | cp -vf %{DIR_SOURCE}/cups.logrotate %{BUILDROOT}/etc/logrotate.d/cups | |
74 | end | |
75 | end | |
76 | ||
802ea3af MT |
77 | packages |
78 | package %{name} | |
79 | requires = ghostscript | |
80 | end | |
1f9bc2f0 | 81 | |
802ea3af MT |
82 | package %{name}-devel |
83 | template DEVEL | |
98cf9989 MT |
84 | |
85 | requires += %{name}-libs=%{thisver} | |
802ea3af | 86 | end |
1f9bc2f0 | 87 | |
802ea3af MT |
88 | package %{name}-libs |
89 | template LIBS | |
90 | end | |
1f9bc2f0 MT |
91 | |
92 | package %{name}-debuginfo | |
93 | template DEBUGINFO | |
94 | end | |
802ea3af | 95 | end |