]>
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 |
d9157db9 | 7 | version = 2.1.4 |
78c413ce | 8 | release = 2 |
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 | ||
d9157db9 AM |
20 | source_dl = https://github.com/apple/cups/releases/download/release-%{version}/ |
21 | sources = %{thisapp}-source.tar.gz | |
802ea3af MT |
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 | |
78c413ce | 40 | openssl-devel |
802ea3af MT |
41 | pam-devel |
42 | perl | |
43 | python | |
44 | zlib-devel | |
45 | end | |
46 | ||
47 | configure_options += \ | |
48 | --sysconfdir=/etc \ | |
49 | --localstatedir=/var \ | |
50 | --with-log-file-perm=0600 \ | |
51 | --enable-pie \ | |
52 | --enable-relro \ | |
53 | --enable-avahi \ | |
54 | --enable-lspp \ | |
55 | --enable-threads \ | |
56 | --enable-gnutls | |
57 | ||
58 | prepare_cmds | |
59 | aclocal -I config-scripts | |
60 | autoconf -I config-scripts | |
61 | end | |
62 | ||
63 | install | |
64 | make install BUILDROOT=%{BUILDROOT} | |
65 | ||
66 | # Remove sysvinit scripts | |
67 | rm -vfr %{BUILDROOT}/etc/init.d/cups %{BUILDROOT}/etc/rc*.d | |
68 | ||
69 | mkdir -pv %{BUILDROOT}/etc/cups | |
70 | cp -vf %{DIR_APP}/conf/cupsd.conf %{BUILDROOT}/etc/cups/ | |
71 | ||
72 | # Logrotate | |
73 | mkdir -pv %{BUILDROOT}/etc/logrotate.d/ | |
74 | cp -vf %{DIR_SOURCE}/cups.logrotate %{BUILDROOT}/etc/logrotate.d/cups | |
75 | end | |
76 | end | |
77 | ||
802ea3af MT |
78 | packages |
79 | package %{name} | |
80 | requires = ghostscript | |
81 | end | |
1f9bc2f0 | 82 | |
802ea3af MT |
83 | package %{name}-devel |
84 | template DEVEL | |
98cf9989 MT |
85 | |
86 | requires += %{name}-libs=%{thisver} | |
802ea3af | 87 | end |
1f9bc2f0 | 88 | |
802ea3af MT |
89 | package %{name}-libs |
90 | template LIBS | |
91 | end | |
1f9bc2f0 MT |
92 | |
93 | package %{name}-debuginfo | |
94 | template DEBUGINFO | |
95 | end | |
802ea3af | 96 | end |