|
Lines 1-10
Link Here
|
|
|
1 |
%def_with php |
| 1 |
%define php5_extension cups |
2 |
%define php5_extension cups |
| 2 |
%define _cups_serverbin %_libexecdir/cups |
3 |
%define _cups_serverbin %_libexecdir/cups |
| 3 |
Summary: OpenPrinting CUPS filters and backends |
4 |
|
| 4 |
Name: cups-filters |
5 |
Name: cups-filters |
| 5 |
Version: 1.16.0 |
6 |
Version: 1.16.0 |
| 6 |
Release: alt1%ubt |
7 |
Release: alt2%ubt |
| 7 |
|
8 |
|
|
|
9 |
Summary: OpenPrinting CUPS filters and backends |
| 8 |
# For a breakdown of the licensing, see COPYING file |
10 |
# For a breakdown of the licensing, see COPYING file |
| 9 |
# GPLv2: filters: commandto*, imagetoraster, pdftops, rasterto*, |
11 |
# GPLv2: filters: commandto*, imagetoraster, pdftops, rasterto*, |
| 10 |
# imagetopdf, pstopdf, texttopdf |
12 |
# imagetopdf, pstopdf, texttopdf |
|
Lines 13-28
Release: alt1%ubt
Link Here
|
| 13 |
# GPLv3: filters: bannertopdf |
15 |
# GPLv3: filters: bannertopdf |
| 14 |
# MIT: filters: pdftoijs, pdftoopvp, pdftopdf, pdftoraster |
16 |
# MIT: filters: pdftoijs, pdftoopvp, pdftopdf, pdftoraster |
| 15 |
License: GPLv2 and GPLv2+ and GPLv3 and MIT |
17 |
License: GPLv2 and GPLv2+ and GPLv3 and MIT |
| 16 |
|
|
|
| 17 |
Group: System/Servers |
18 |
Group: System/Servers |
| 18 |
|
19 |
|
|
|
20 |
Url: http://www.linuxfoundation.org/collaborate/workgroups/openprinting/pdf_as_standard_print_job_format |
| 19 |
Source0: http://www.openprinting.org/download/cups-filters/cups-filters-%version.tar |
21 |
Source0: http://www.openprinting.org/download/cups-filters/cups-filters-%version.tar |
| 20 |
Source1: %name.watch |
22 |
Source1: %name.watch |
| 21 |
Source2: cups-browsed.init |
23 |
Source2: cups-browsed.init |
| 22 |
Patch0: %name-alt.patch |
24 |
Patch0: %name-alt.patch |
| 23 |
Patch1: %name-alt-php-5.4.14-fix.patch |
25 |
Patch1: %name-alt-php-5.4.14-fix.patch |
| 24 |
Patch2: %name-braille-indexv4-path.patch |
26 |
Patch2: %name-braille-indexv4-path.patch |
| 25 |
Url: http://www.linuxfoundation.org/collaborate/workgroups/openprinting/pdf_as_standard_print_job_format |
27 |
|
| 26 |
Conflicts: cups < 1.6.1-alt1 |
28 |
Conflicts: cups < 1.6.1-alt1 |
| 27 |
Conflicts: ghostscript-cups |
29 |
Conflicts: ghostscript-cups |
| 28 |
Obsoletes: ghostscript-cups |
30 |
Obsoletes: ghostscript-cups |
|
Lines 51-57
BuildRequires: libfreetype-devel
Link Here
|
| 51 |
BuildRequires: mupdf |
53 |
BuildRequires: mupdf |
| 52 |
BuildRequires: fontconfig-devel |
54 |
BuildRequires: fontconfig-devel |
| 53 |
BuildRequires: liblcms2-devel |
55 |
BuildRequires: liblcms2-devel |
| 54 |
BuildRequires: php5-devel |
56 |
%{?_with_php:BuildRequires: php5-devel} |
| 55 |
BuildRequires: libgio-devel |
57 |
BuildRequires: libgio-devel |
| 56 |
BuildRequires: libavahi-devel libavahi-glib-devel |
58 |
BuildRequires: libavahi-devel libavahi-glib-devel |
| 57 |
BuildRequires(pre): rpm-build-ubt |
59 |
BuildRequires(pre): rpm-build-ubt |
|
Lines 88-93
This package provides cupsfilters and fontembed libraries.
Link Here
|
| 88 |
%description devel |
90 |
%description devel |
| 89 |
This is the development package for OpenPrinting CUPS filters and backends. |
91 |
This is the development package for OpenPrinting CUPS filters and backends. |
| 90 |
|
92 |
|
|
|
93 |
%if_with php |
| 91 |
%package -n php5-cups |
94 |
%package -n php5-cups |
| 92 |
Epoch: 1 |
95 |
Epoch: 1 |
| 93 |
Summary: PHP5 module for the Common Unix Printing System |
96 |
Summary: PHP5 module for the Common Unix Printing System |
|
Lines 98-103
BuildRequires(pre): rpm-build-php5
Link Here
|
| 98 |
|
101 |
|
| 99 |
%description -n php5-cups |
102 |
%description -n php5-cups |
| 100 |
PHP5 module for the Common Unix Printing System |
103 |
PHP5 module for the Common Unix Printing System |
|
|
104 |
%endif |
| 101 |
|
105 |
|
| 102 |
%package -n cups-backend-serial |
106 |
%package -n cups-backend-serial |
| 103 |
Epoch: 1 |
107 |
Epoch: 1 |
|
Lines 126-133
serial backend for cups
Link Here
|
| 126 |
--with-pdftops=pdftops |
130 |
--with-pdftops=pdftops |
| 127 |
|
131 |
|
| 128 |
%make |
132 |
%make |
| 129 |
pushd scripting/php |
|
|
| 130 |
|
133 |
|
|
|
134 |
%if_with php |
| 135 |
pushd scripting/php |
| 131 |
phpize |
136 |
phpize |
| 132 |
|
137 |
|
| 133 |
BUILD_HAVE=`echo %php5_extension | tr '[:lower:]-' '[:upper:]_'` |
138 |
BUILD_HAVE=`echo %php5_extension | tr '[:lower:]-' '[:upper:]_'` |
|
Lines 137-159
export LDFLAGS=-lphp-%_php5_version
Link Here
|
| 137 |
--with-%php5_extension=%_usr |
142 |
--with-%php5_extension=%_usr |
| 138 |
%php5_make |
143 |
%php5_make |
| 139 |
popd |
144 |
popd |
| 140 |
|
145 |
%endif |
| 141 |
|
146 |
|
| 142 |
%install |
147 |
%install |
| 143 |
%make install DESTDIR=%buildroot |
148 |
%make install DESTDIR=%buildroot |
|
|
149 |
%if_with php |
| 144 |
install -D -m 755 scripting/php/.libs/cups.so %buildroot/%php5_extdir/cups.so |
150 |
install -D -m 755 scripting/php/.libs/cups.so %buildroot/%php5_extdir/cups.so |
| 145 |
install -D -m 644 scripting/php/php-cups.ini %buildroot/%php5_extconf/%php5_extension/config |
151 |
install -D -m 644 scripting/php/php-cups.ini %buildroot/%php5_extconf/%php5_extension/config |
| 146 |
install -D -m 644 scripting/php/php-cups-params.sh %buildroot/%php5_extconf/%php5_extension/params |
152 |
install -D -m 644 scripting/php/php-cups-params.sh %buildroot/%php5_extconf/%php5_extension/params |
|
|
153 |
%endif |
| 147 |
install -D -m 755 %SOURCE2 %buildroot/%_initdir/cups-browsed |
154 |
install -D -m 755 %SOURCE2 %buildroot/%_initdir/cups-browsed |
| 148 |
mkdir -p %buildroot/%_unitdir/ |
155 |
mkdir -p %buildroot/%_unitdir/ |
| 149 |
install -m 644 utils/cups-browsed.service %buildroot/%_unitdir/ |
156 |
install -m 644 utils/cups-browsed.service %buildroot/%_unitdir/ |
| 150 |
ln -sf ../lib/cups/filter/foomatic-rip %buildroot/%_bindir/foomatic-rip |
157 |
ln -sf ../lib/cups/filter/foomatic-rip %buildroot/%_bindir/foomatic-rip |
| 151 |
|
158 |
|
|
|
159 |
%if_with php |
| 152 |
%post -n php5-cups |
160 |
%post -n php5-cups |
| 153 |
%php5_extension_postin |
161 |
%php5_extension_postin |
| 154 |
|
162 |
|
| 155 |
%preun -n php5-cups |
163 |
%preun -n php5-cups |
| 156 |
%php5_extension_preun |
164 |
%php5_extension_preun |
|
|
165 |
%endif |
| 157 |
|
166 |
|
| 158 |
%files |
167 |
%files |
| 159 |
%doc README AUTHORS NEWS |
168 |
%doc README AUTHORS NEWS |
|
Lines 193-202
ln -sf ../lib/cups/filter/foomatic-rip %buildroot/%_bindir/foomatic-rip
Link Here
|
| 193 |
%files -n cups-backend-serial |
202 |
%files -n cups-backend-serial |
| 194 |
%attr(0700,root,root) %_prefix/lib/cups/backend/serial |
203 |
%attr(0700,root,root) %_prefix/lib/cups/backend/serial |
| 195 |
|
204 |
|
| 196 |
|
205 |
%if_with php |
| 197 |
%files -n php5-cups |
206 |
%files -n php5-cups |
| 198 |
%php5_extdir/cups.so |
207 |
%php5_extdir/cups.so |
| 199 |
%php5_extconf/%php5_extension |
208 |
%php5_extconf/%php5_extension |
|
|
209 |
%endif |
| 200 |
|
210 |
|
| 201 |
%files libs |
211 |
%files libs |
| 202 |
%doc COPYING fontembed/README |
212 |
%doc COPYING fontembed/README |
|
Lines 212-217
ln -sf ../lib/cups/filter/foomatic-rip %buildroot/%_bindir/foomatic-rip
Link Here
|
| 212 |
%_libdir/libfontembed.so |
222 |
%_libdir/libfontembed.so |
| 213 |
|
223 |
|
| 214 |
%changelog |
224 |
%changelog |
|
|
225 |
* Thu Aug 10 2017 Michael Shigorin <mike@altlinux.org> 1.16.0-alt2%ubt |
| 226 |
- BOOTSTRAP: introduced php knob (on by default) |
| 227 |
|
| 215 |
* Fri Aug 04 2017 Anton Farygin <rider@altlinux.ru> 1.16.0-alt1%ubt |
228 |
* Fri Aug 04 2017 Anton Farygin <rider@altlinux.ru> 1.16.0-alt1%ubt |
| 216 |
- new version 1.16.0 |
229 |
- new version 1.16.0 |
| 217 |
|
230 |
|
| 218 |
- |
|
|