%define pycups_version 1.9.13 Summary: A printer administration tool Name: system-config-printer Version: 0.7.31 Release: 1 License: GPL Group: System Environment/Base Source0: system-config-printer-%{version}.tar.bz2 Source1: pycups-%{pycups_version}.tar.bz2 Source2: system-config-printer.pam Source3: system-config-printer.console %{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')} BuildRequires: cups-devel >= 1.2 BuildRequires: python-devel BuildRequires: desktop-file-utils >= 0.2.92 BuildRequires: gettext-devel BuildRequires: intltool BuildRoot: %{_tmppath}/%{name}-%{version}-root Requires: pygtk2 >= 2.4.0, pygtk2-libglade Requires: pygobject2 Requires: usermode >= 1.37 PreReq: system-config-printer-libs = %{version}-%{release} Obsoletes: system-config-printer-gui <= 0.6.152 %description system-config-printer is a graphical user interface that allows the user to configure a CUPS print server. %package libs Summary: Common code for the graphical and non-graphical pieces. Group: System Environment/Base PreReq: python, python-abi = %{pyver} Requires: rhpl >= 0.81 Requires: foomatic Requires: PyXML %description libs The common code used by both the graphical and non-graphical parts of the configuration tool. %prep %setup -q -a 1 %build %configure pushd pycups-%{pycups_version} make popd %install rm -rf $RPM_BUILD_ROOT %makeinstall pushd pycups-%{pycups_version} make install DESTDIR=%buildroot popd mkdir -p %buildroot%{_bindir} mkdir -p %buildroot%{_sysconfdir}/pam.d mkdir -p %buildroot%{_sysconfdir}/security/console.apps install -m0644 %{SOURCE2} %buildroot%{_sysconfdir}/pam.d/%{name} install -m0644 %{SOURCE3} %buildroot%{_sysconfdir}/security/console.apps/%{name} ln -s consolehelper %buildroot%{_bindir}/%{name} %find_lang system-config-printer %clean rm -rf $RPM_BUILD_ROOT %files libs -f system-config-printer.lang %defattr(-,root,root) %doc --parents pycups-%{pycups_version}/{ChangeLog,README,NEWS,TODO} %{_libdir}/python*/*/*.so %dir %{_datadir}/%{name} %{_datadir}/%{name}/foomatic.py* %{_datadir}/%{name}/cupshelpers.py* %{_datadir}/%{name}/gtk_html2pango.py* %files %defattr(-,root,root) %doc ChangeLog README NEWS TODO %{_bindir}/%{name} %{_sbindir}/%{name} %{_datadir}/%{name}/config.py* %{_datadir}/%{name}/cupsd.py* %{_datadir}/%{name}/nametree.py* %{_datadir}/%{name}/options.py* %{_datadir}/%{name}/optionwidgets.py* %{_datadir}/%{name}/probe_printer.py* %{_datadir}/%{name}/pysmb.py* %{_datadir}/%{name}/system-config-printer.py* %{_datadir}/%{name}/gtk_label_autowrap.py* %{_datadir}/%{name}/*.glade %{_datadir}/applications/redhat-system-config-printer.desktop %{_sysconfdir}/pam.d/%{name} %{_sysconfdir}/security/console.apps/%{name} %post /bin/rm -f /var/cache/foomatic/foomatic.pickle exit 0 %changelog * Mon Oct 2 2006 Tim Waugh - Updated to pycups-1.9.13 for HTTP_FORBIDDEN. * Fri Sep 29 2006 Tim Waugh 0.7.31-1 - 0.7.31: - Select recommended driver automatically (bug #208606). - Better visibility of driver list (bug #203907). * Fri Sep 29 2006 Tim Waugh 0.7.30-1 - 0.7.30: - Translations fixed properly (bug #206622). - Button widths corrected (bug #208556). * Tue Sep 26 2006 Tim Waugh 0.7.28-1 - 0.7.28. Translations fixed (bug #206622). * Wed Aug 30 2006 Tim Waugh 0.7.27-1 - Build requires intltool. - 0.7.27. * Wed Aug 23 2006 Tim Waugh 0.7.26-1 - 0.7.26. Fixes bug # 203149. * Mon Aug 14 2006 Florian Festi 0.7.25-1 - 0.7.25. (bug #202060) * Fri Aug 11 2006 Tim Waugh - Fixed description (bug #202189). * Thu Aug 3 2006 Tim Waugh 0.7.24-1 - 0.7.24. * Mon Jul 24 2006 Tim Waugh 0.7.23-1 - 0.7.23. Fixes bug #197866. * Wed Jul 12 2006 Jesse Keating - 0.7.22-1.1 - rebuild * Fri Jul 7 2006 Tim Waugh 0.7.22-1 - 0.7.22. * Wed Jul 5 2006 Tim Waugh 0.7.21-1 - Updated to pycups-1.9.12. - 0.7.21. * Mon Jul 3 2006 Tim Waugh 0.7.20-1 - 0.7.20. * Fri Jun 30 2006 Tim Waugh 0.7.19-1 - 0.7.19. - Remove foomatic pickle file post-install. * Tue Jun 27 2006 Tim Waugh 0.7.18-1 - 0.7.18. - Ship translations with libs subpackage. * Fri Jun 23 2006 Tim Waugh 0.7.17-1 - 0.7.17. * Fri Jun 23 2006 Tim Waugh 0.7.16-1 - 0.7.16, now with SMB browser. * Wed Jun 22 2006 Tim Waugh 0.7.15-1 - 0.7.15. - Build requires gettext-devel. - Ship translations. * Tue Jun 20 2006 Tim Waugh 0.7.14-1 - 0.7.14. * Mon Jun 19 2006 Tim Waugh 0.7.13-1 - 0.7.13. * Fri Jun 9 2006 Tim Waugh 0.7.12-1 - 0.7.12. * Thu Jun 1 2006 Tim Waugh 0.7.11-3 - Fix libs dependency. * Thu Jun 1 2006 Tim Waugh 0.7.11-2 - Moved the gtk_html2pango module to the libs package (needed by foomatic.py). * Wed May 31 2006 Tim Waugh 0.7.11-1 - Split out system-config-printer-libs. - Updated to system-config-printer-0.7.11. * Sat May 27 2006 Tim Waugh 0.7.10-2 - Requires gobject2 (bug #192764). * Fri May 26 2006 Tim Waugh 0.7.10-1 - Require foomatic (bug #192764). - Updated to system-config-printer-0.7.10. * Thu May 25 2006 Tim Waugh 0.7.9-1 - Updated to pycups-1.9.11. - Updated to system-config-printer-0.7.9. * Mon May 15 2006 Tim Waugh 0.7.8-1 - Updated to pycups-1.9.10. - Updated to system-config-printer-0.7.8. * Fri May 5 2006 Tim Waugh - Fix pycups segfault. * Fri May 5 2006 Tim Waugh 0.7.7-2 - Ship PAM and userhelper files. - Requires usermode. - Added missing options.py file. - Fix getClasses() in pycups. * Thu May 4 2006 Tim Waugh 0.7.7-1 - Updated to system-config-printer-0.7.7. - Updated to pycups-1.9.9. - Desktop file. - Requires PyXML. * Fri Apr 28 2006 Tim Waugh - Make it actually run. * Fri Apr 21 2006 Tim Waugh - Build requires CUPS 1.2. * Thu Apr 20 2006 Tim Waugh 0.7.5-1 - Updated to pycups-1.9.8. No longer need threads patch. - Updated to system-config-printer-0.7.5. * Sat Apr 15 2006 Tim Waugh - Updated to pycups-1.9.7. * Thu Apr 13 2006 Tim Waugh 0.7.4-2 - Obsoletes: system-config-printer-gui <= 0.6.152 * Wed Apr 12 2006 Tim Waugh 0.7.4-1 - Updated to system-config-printer-0.7.4. * Fri Apr 7 2006 Tim Waugh 0.7.3-1 - Added threads patch from pycups CVS. - Updated to system-config-printer-0.7.3. * Tue Apr 4 2006 Tim Waugh - Updated to pycups-1.9.6. * Fri Mar 24 2006 Tim Waugh - Updated to pycups-1.9.5. * Fri Mar 17 2006 Tim Waugh - Package the actual system-config-printer command. * Thu Mar 16 2006 Tim Waugh 0.7.1-1 - Include s-c-printer tarball. - Updated to pycups-1.9.4. * Wed Mar 15 2006 Tim Waugh 0.7.0-1 - Initial spec file.