Changeset 1226 for spec/trunk/SPECS
- Timestamp:
- Aug 22, 2017, 4:23:41 PM (8 years ago)
- File:
-
- 1 edited
-
spec/trunk/SPECS/cups.spec (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/cups.spec
r760 r1226 2 2 # cups.spec as included in cups 3 3 4 #define svn_url e:/trees/cups/trunk5 %define svn_url http://svn.netlabs.org/repos/ports/cups/trunk6 %define svn_rev 15647 4 %define _strip_opts --compress -i "*.cgi" --debuginfo -i "*.cgi" 8 5 9 % define_without_dbus 110 % define_without_dnssd 111 % define_without_systemd 16 %global _without_dbus 1 7 %global _without_dnssd 1 8 %global _without_systemd 1 12 9 13 10 # … … 36 33 # systemd - Enable/disable systemd support (default = enable) 37 34 38 %{!?_with_dbus: %{!?_without_dbus: %define _with_dbus --with-dbus}} 39 %{?_with_dbus: %define _dbus --enable-dbus} 40 %{!?_with_dbus: %define _dbus --disable-dbus} 41 42 %{!?_with_dnssd: %{!?_without_dnssd: %define _with_dnssd --with-dnssd}} 43 %{?_with_dnssd: %define _dnssd --enable-dnssd} 44 %{!?_with_dnssd: %define _dnssd --disable-dnssd} 45 46 %{!?_with_libusb1: %{!?_without_libusb1: %define _with_libusb1 --with-libusb1}} 47 %{?_with_libusb1: %define _libusb1 --enable-libusb} 48 %{!?_with_libusb1: %define _libusb1 --disable-libusb} 49 50 %{!?_with_static: %{!?_without_static: %define _without_static --without-static}} 51 %{?_with_static: %define _static --enable-static} 52 %{!?_with_static: %define _static --disable-static} 53 54 %{!?_with_systemd: %{!?_without_systemd: %define _with_systemd --with-systemd}} 55 %{?_with_systemd: %define _systemd --enable-systemd} 56 %{!?_with_systemd: %define _systemd --disable-systemd} 35 %{!?_with_dbus: %{!?_without_dbus: %global _with_dbus --with-dbus}} 36 %{?_with_dbus: %global _dbus --enable-dbus} 37 %{!?_with_dbus: %global _dbus --disable-dbus} 38 39 %{!?_with_dnssd: %{!?_without_dnssd: %global _with_dnssd --with-dnssd}} 40 %{?_with_dnssd: %global _dnssd --enable-dnssd} 41 %{!?_with_dnssd: %global _dnssd --disable-dnssd} 42 43 %{!?_with_libusb1: %{!?_without_libusb1: %global _with_libusb1 --with-libusb1}} 44 %{?_with_libusb1: %global _libusb1 --enable-libusb} 45 %{!?_with_libusb1: %global _libusb1 --disable-libusb} 46 47 %{!?_with_static: %{!?_without_static: %global _without_static --without-static}} 48 %{?_with_static: %global _static --enable-static} 49 %{!?_with_static: %global _static --disable-static} 50 51 %{!?_with_systemd: %{!?_without_systemd: %global _with_systemd --with-systemd}} 52 %{?_with_systemd: %global _systemd --enable-systemd} 53 %{!?_with_systemd: %global _systemd --disable-systemd} 54 57 55 58 56 Summary: CUPS 59 57 Name: cups 60 58 Version: 2.1.3 61 Release: 7%{?dist}59 Release: 8%{?dist} 62 60 Epoch: 1 63 61 … … 65 63 Group: System Environment/Daemons 66 64 67 Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip68 69 65 Url: http://www.cups.org 70 66 Vendor: bww bitwise works GmbH 67 %scm_source svn http://svn.netlabs.org/repos/ports/cups/trunk 2239 71 68 72 69 # Dependencies... … … 175 172 176 173 %prep 177 %if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0} 178 %setup -q 179 %else 180 %setup -n "%{name}-%{version}" -Tc 181 svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force 182 rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" 183 (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}") 184 %endif 174 %scm_setup 185 175 186 176 autoconf --force … … 188 178 %build 189 179 export LDFLAGS=" -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" 190 export LIBS="-lurpo -lpoll" 180 export LIBS="-lcx0" 181 export VENDOR="%{vendor}" 191 182 # --with-rcdir=no - don't install SysV init script 192 183 # --with-system_groups=admin - add a value to SystemGroups parameter … … 195 186 --with-rcdir=no \ 196 187 --with-system_groups=admin \ 197 --with-cupsd_file_perm=755 188 --with-cupsd_file_perm=755 \ 189 --with-domainsocket=/socket/cups.sock 198 190 199 191 # If we got this far, all prerequisite libraries must be here. … … 207 199 208 200 # rename some files 209 mv %{buildroot}%{_mandir}/man1/cancel.1 %{buildroot}%{_mandir}/man1/cancel-cups.1210 mv %{buildroot}%{_mandir}/man1/lp.1 %{buildroot}%{_mandir}/man1/lp-cups.1211 mv %{buildroot}%{_mandir}/man1/lpq.1 %{buildroot}%{_mandir}/man1/lpq-cups.1212 mv %{buildroot}%{_mandir}/man1/lprm.1 %{buildroot}%{_mandir}/man1/lprm-cups.1213 mv %{buildroot}%{_mandir}/man1/lpstat.1 %{buildroot}%{_mandir}/man1/lpstat-cups.1214 mv %{buildroot}%{_mandir}/man8/lpc.8 %{buildroot}%{_mandir}/man8/lpc-cups.8201 mv %{buildroot}%{_mandir}/man1/cancel.1.gz %{buildroot}%{_mandir}/man1/cancel-cups.1.gz 202 mv %{buildroot}%{_mandir}/man1/lp.1.gz %{buildroot}%{_mandir}/man1/lp-cups.1.gz 203 mv %{buildroot}%{_mandir}/man1/lpq.1.gz %{buildroot}%{_mandir}/man1/lpq-cups.1.gz 204 mv %{buildroot}%{_mandir}/man1/lprm.1.gz %{buildroot}%{_mandir}/man1/lprm-cups.1.gz 205 mv %{buildroot}%{_mandir}/man1/lpstat.1.gz %{buildroot}%{_mandir}/man1/lpstat-cups.1.gz 206 mv %{buildroot}%{_mandir}/man8/lpc.8.gz %{buildroot}%{_mandir}/man8/lpc-cups.8.gz 215 207 216 208 # Ship an rpm macro for where to put driver executables … … 263 255 %dir %{_libdir}/cups/driver 264 256 %dir %{_libdir}/cups/filter 265 %{_libdir}/cups/filter/*.exe 257 %{_libdir}/cups/filter/* 258 %exclude %{_libdir}/cups/filter/*.dbg 266 259 %dir %{_libdir}/cups/monitor 267 260 %{_libdir}/cups/monitor/*.exe … … 269 262 %{_libdir}/cups/notifier/*.exe 270 263 271 %{_sbindir}/cups*.exe 264 %{_sbindir}/cups* 265 %exclude %{_sbindir}/cups*.dbg 272 266 %{_sbindir}/lpadmin.exe 273 267 %{_sbindir}/lpinfo.exe 274 268 %{_sbindir}/lpmove.exe 275 %{_sbindir}/accept .exe276 %{_sbindir}/reject .exe269 %{_sbindir}/accept 270 %{_sbindir}/reject 277 271 %{_datadir}/cups/drv/* 278 272 %{_datadir}/cups/mime/* … … 319 313 %dir %{_datadir}/man 320 314 %dir %{_datadir}/man/man1 321 %{_datadir}/man/man1/*.1 322 %exclude %{_datadir}/man/man1/ppd*.1 323 %exclude %{_datadir}/man/man1/cups-config.1 324 %exclude %{_datadir}/man/man1/ipptool*.1 325 %exclude %{_datadir}/man/man1/cancel-cups*.1 326 %exclude %{_datadir}/man/man1/lp*.1 315 %{_datadir}/man/man1/*.1.gz 316 %exclude %{_datadir}/man/man1/ppd*.1.gz 317 %exclude %{_datadir}/man/man1/cups-config.1.gz 318 %exclude %{_datadir}/man/man1/ipptool*.1.gz 319 %exclude %{_datadir}/man/man1/cancel-cups*.1.gz 320 %exclude %{_datadir}/man/man1/lp*.1.gz 327 321 %dir %{_datadir}/man/man5 328 %{_datadir}/man/man5/*.5 329 %exclude %{_datadir}/man/man5/ppdcfile.5 330 %exclude %{_datadir}/man/man5/ipptool*.5 322 %{_datadir}/man/man5/*.5.gz 323 %exclude %{_datadir}/man/man5/ppdcfile.5.gz 324 %exclude %{_datadir}/man/man5/ipptool*.5.gz 331 325 %dir %{_datadir}/man/man8 332 %{_datadir}/man/man8/*.8 333 %exclude %{_datadir}/man/man8/cups-lpd.8 334 %exclude %{_datadir}/man/man8/lpc-cups.8 326 %{_datadir}/man/man8/*.8.gz 327 %exclude %{_datadir}/man/man8/cups-lpd.8.gz 328 %exclude %{_datadir}/man/man8/lpc-cups.8.gz 335 329 336 330 %dir %{_var}/cache/cups … … 347 341 %{_bindir}/lp*.exe 348 342 %dir %{_datadir}/man/man1 349 %{_datadir}/man/man1/lp*.1 350 %{_datadir}/man/man1/cancel-cups*.1 343 %{_datadir}/man/man1/lp*.1.gz 344 %{_datadir}/man/man1/cancel-cups*.1.gz 351 345 %dir %{_datadir}/man/man8 352 %{_datadir}/man/man8/lpc-cups.8 346 %{_datadir}/man/man8/lpc-cups.8.gz 353 347 354 348 %files libs … … 383 377 %dir %{_datadir}/man 384 378 %dir %{_datadir}/man/man1 385 %{_datadir}/man/man1/cups-config.1 386 %{_datadir}/man/man1/ppd*.1 379 %{_datadir}/man/man1/cups-config.1.gz 380 %{_datadir}/man/man1/ppd*.1.gz 387 381 %dir %{_datadir}/man/man5 388 %{_datadir}/man/man5/ppdcfile.5 382 %{_datadir}/man/man5/ppdcfile.5.gz 389 383 %dir %{_datadir}/man/man7 390 %{_datadir}/man/man7/backend.7 391 %{_datadir}/man/man7/filter.7 392 %{_datadir}/man/man7/notifier.7 384 %{_datadir}/man/man7/backend.7.gz 385 %{_datadir}/man/man7/filter.7.gz 386 %{_datadir}/man/man7/notifier.7.gz 393 387 394 388 %if %{?_with_static:1}%{!?_with_static:0} … … 417 411 %{_libdir}/cups/daemon/cups-lpd.exe 418 412 %dir %{_datadir}/man/man8 419 %{_datadir}/man/man8/cups-lpd.8 413 %{_datadir}/man/man8/cups-lpd.8.gz 420 414 421 415 %files ipptool … … 428 422 %{_datadir}/cups/ipptool/* 429 423 %dir %{_datadir}/man/man1 430 %{_datadir}/man/man1/ipptool*.1 424 %{_datadir}/man/man1/ipptool*.1.gz 431 425 %dir %{_datadir}/man/man5 432 %{_datadir}/man/man5/ipptool*.5 426 %{_datadir}/man/man5/ipptool*.5.gz 433 427 434 428 %changelog 429 * Tue Aug 22 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 2.1.3-8 430 - add bldlevel to the dll 431 - fix search for ppd in cups-driver 432 - change LIBS 433 - change /@unixroot/var/run/cups/cups.sock to /socket/cups.sock 434 - adjust spec to scm_ macros usage 435 435 436 * Thu May 12 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 2.1.3-7 436 437 - fix timestamps absence in the jobs part of the webinterface
Note:
See TracChangeset
for help on using the changeset viewer.
