]>
Commit | Line | Data |
---|---|---|
1 | ############################################################################### | |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
6 | name = cups | |
7 | version = 1.4.5 | |
8 | release = 7 | |
9 | ||
10 | groups = Applications/Printing | |
11 | url = http://cups.org/software.php | |
12 | license = GPLv2+ | |
13 | summary = The common UNIX printing system. | |
14 | ||
15 | description | |
16 | CUPS is the standards-based, open source printing system developed \ | |
17 | by Apple Inc. for Mac OS(R) X and other UNIX(R)-like operating systems. | |
18 | end | |
19 | ||
20 | source_dl = http://ftp.easysw.com/pub/cups/%{version}/ | |
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 | ||
77 | packages | |
78 | package %{name} | |
79 | requires = ghostscript | |
80 | end | |
81 | ||
82 | package %{name}-devel | |
83 | template DEVEL | |
84 | ||
85 | requires += %{name}-libs=%{thisver} | |
86 | end | |
87 | ||
88 | package %{name}-libs | |
89 | template LIBS | |
90 | end | |
91 | ||
92 | package %{name}-debuginfo | |
93 | template DEBUGINFO | |
94 | end | |
95 | end |