Changeset 1226 for spec/trunk/SPECS


Ignore:
Timestamp:
Aug 22, 2017, 4:23:41 PM (8 years ago)
Author:
Silvan Scherrer
Message:

spec: cups: Release version 2.1.3-8.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • spec/trunk/SPECS/cups.spec

    r760 r1226  
    22# cups.spec as included in cups
    33
    4 #define svn_url     e:/trees/cups/trunk
    5 %define svn_url     http://svn.netlabs.org/repos/ports/cups/trunk
    6 %define svn_rev     1564
    74%define _strip_opts --compress -i "*.cgi" --debuginfo -i "*.cgi"
    85
    9 %define _without_dbus 1
    10 %define _without_dnssd 1
    11 %define _without_systemd 1
     6%global _without_dbus 1
     7%global _without_dnssd 1
     8%global _without_systemd 1
    129
    1310#
     
    3633#   systemd  - Enable/disable systemd support (default = enable)
    3734
    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
    5755
    5856Summary: CUPS
    5957Name: cups
    6058Version: 2.1.3
    61 Release: 7%{?dist}
     59Release: 8%{?dist}
    6260Epoch: 1
    6361
     
    6563Group: System Environment/Daemons
    6664
    67 Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
    68 
    6965Url: http://www.cups.org
    7066Vendor: bww bitwise works GmbH
     67%scm_source  svn http://svn.netlabs.org/repos/ports/cups/trunk 2239
    7168
    7269# Dependencies...
     
    175172
    176173%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
    185175
    186176autoconf --force
     
    188178%build
    189179export LDFLAGS=" -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
    190 export LIBS="-lurpo -lpoll"
     180export LIBS="-lcx0"
     181export VENDOR="%{vendor}"
    191182# --with-rcdir=no - don't install SysV init script
    192183# --with-system_groups=admin - add a value to SystemGroups parameter
     
    195186     --with-rcdir=no \
    196187     --with-system_groups=admin \
    197      --with-cupsd_file_perm=755
     188     --with-cupsd_file_perm=755 \
     189     --with-domainsocket=/socket/cups.sock
    198190
    199191# If we got this far, all prerequisite libraries must be here.
     
    207199
    208200# rename some files
    209 mv %{buildroot}%{_mandir}/man1/cancel.1 %{buildroot}%{_mandir}/man1/cancel-cups.1
    210 mv %{buildroot}%{_mandir}/man1/lp.1 %{buildroot}%{_mandir}/man1/lp-cups.1
    211 mv %{buildroot}%{_mandir}/man1/lpq.1 %{buildroot}%{_mandir}/man1/lpq-cups.1
    212 mv %{buildroot}%{_mandir}/man1/lprm.1 %{buildroot}%{_mandir}/man1/lprm-cups.1
    213 mv %{buildroot}%{_mandir}/man1/lpstat.1 %{buildroot}%{_mandir}/man1/lpstat-cups.1
    214 mv %{buildroot}%{_mandir}/man8/lpc.8 %{buildroot}%{_mandir}/man8/lpc-cups.8
     201mv %{buildroot}%{_mandir}/man1/cancel.1.gz %{buildroot}%{_mandir}/man1/cancel-cups.1.gz
     202mv %{buildroot}%{_mandir}/man1/lp.1.gz %{buildroot}%{_mandir}/man1/lp-cups.1.gz
     203mv %{buildroot}%{_mandir}/man1/lpq.1.gz %{buildroot}%{_mandir}/man1/lpq-cups.1.gz
     204mv %{buildroot}%{_mandir}/man1/lprm.1.gz %{buildroot}%{_mandir}/man1/lprm-cups.1.gz
     205mv %{buildroot}%{_mandir}/man1/lpstat.1.gz %{buildroot}%{_mandir}/man1/lpstat-cups.1.gz
     206mv %{buildroot}%{_mandir}/man8/lpc.8.gz %{buildroot}%{_mandir}/man8/lpc-cups.8.gz
    215207
    216208# Ship an rpm macro for where to put driver executables
     
    263255%dir %{_libdir}/cups/driver
    264256%dir %{_libdir}/cups/filter
    265 %{_libdir}/cups/filter/*.exe
     257%{_libdir}/cups/filter/*
     258%exclude %{_libdir}/cups/filter/*.dbg
    266259%dir %{_libdir}/cups/monitor
    267260%{_libdir}/cups/monitor/*.exe
     
    269262%{_libdir}/cups/notifier/*.exe
    270263
    271 %{_sbindir}/cups*.exe
     264%{_sbindir}/cups*
     265%exclude %{_sbindir}/cups*.dbg
    272266%{_sbindir}/lpadmin.exe
    273267%{_sbindir}/lpinfo.exe
    274268%{_sbindir}/lpmove.exe
    275 %{_sbindir}/accept.exe
    276 %{_sbindir}/reject.exe
     269%{_sbindir}/accept
     270%{_sbindir}/reject
    277271%{_datadir}/cups/drv/*
    278272%{_datadir}/cups/mime/*
     
    319313%dir %{_datadir}/man
    320314%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
    327321%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
    331325%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
    335329
    336330%dir %{_var}/cache/cups
     
    347341%{_bindir}/lp*.exe
    348342%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
    351345%dir %{_datadir}/man/man8
    352 %{_datadir}/man/man8/lpc-cups.8
     346%{_datadir}/man/man8/lpc-cups.8.gz
    353347
    354348%files libs
     
    383377%dir %{_datadir}/man
    384378%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
    387381%dir %{_datadir}/man/man5
    388 %{_datadir}/man/man5/ppdcfile.5
     382%{_datadir}/man/man5/ppdcfile.5.gz
    389383%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
    393387
    394388%if %{?_with_static:1}%{!?_with_static:0}
     
    417411%{_libdir}/cups/daemon/cups-lpd.exe
    418412%dir %{_datadir}/man/man8
    419 %{_datadir}/man/man8/cups-lpd.8
     413%{_datadir}/man/man8/cups-lpd.8.gz
    420414
    421415%files ipptool
     
    428422%{_datadir}/cups/ipptool/*
    429423%dir %{_datadir}/man/man1
    430 %{_datadir}/man/man1/ipptool*.1
     424%{_datadir}/man/man1/ipptool*.1.gz
    431425%dir %{_datadir}/man/man5
    432 %{_datadir}/man/man5/ipptool*.5
     426%{_datadir}/man/man5/ipptool*.5.gz
    433427
    434428%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
    435436* Thu May 12 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 2.1.3-7
    436437- fix timestamps absence in the jobs part of the webinterface
Note: See TracChangeset for help on using the changeset viewer.