35467bf
%define pycups_version 1.9.11
6500fc2
6500fc2
Summary: A printer administration tool
6500fc2
Name: system-config-printer
30c8ec1
Version: 0.7.18
43df08b
Release: 1
6500fc2
License: GPL
6500fc2
Group: System Environment/Base
6500fc2
Source0: system-config-printer-%{version}.tar.bz2
6500fc2
Source1: pycups-%{pycups_version}.tar.bz2
8ded337
Source2: system-config-printer.pam
8ded337
Source3: system-config-printer.console
6500fc2
6500fc2
%{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')}
6500fc2
afd30f2
BuildRequires: cups-devel >= 1.2
afd30f2
BuildRequires: python-devel
fad5678
BuildRequires: desktop-file-utils >= 0.2.92
496e1aa
BuildRequires: gettext-devel
6500fc2
BuildRoot: %{_tmppath}/%{name}-%{version}-root
6500fc2
6500fc2
Requires: pygtk2 >= 2.4.0, pygtk2-libglade
5c6a1b1
Requires: pygobject2
8ded337
Requires: usermode >= 1.37
dacf62c
PreReq: system-config-printer-libs = %{version}-%{release}
6500fc2
7304b93
Obsoletes: system-config-printer-gui <= 0.6.152
7304b93
6500fc2
%description
6500fc2
system-config-mouse is a graphical user interface that allows
6500fc2
the user to configure a CUPS print server.
6500fc2
5675374
%package libs
5675374
Summary: Common code for the graphical and non-graphical pieces.
5675374
Group: System Environment/Base
5675374
PreReq: python, python-abi = %{pyver}
5675374
Requires: rhpl >= 0.81
5675374
Requires: foomatic
5675374
Requires: PyXML
5675374
5675374
%description libs
5675374
The common code used by both the graphical and non-graphical parts of
5675374
the configuration tool.
5675374
6500fc2
%prep
6500fc2
%setup -q -a 1
6500fc2
6500fc2
%build
a97971d
%configure
a97971d
6500fc2
pushd pycups-%{pycups_version}
6500fc2
make
6500fc2
popd
6500fc2
6500fc2
%install
6500fc2
rm -rf $RPM_BUILD_ROOT
a97971d
%makeinstall
a97971d
6500fc2
pushd pycups-%{pycups_version}
6500fc2
make install DESTDIR=%buildroot
6500fc2
popd
6500fc2
6500fc2
mkdir -p %buildroot%{_bindir}
8ded337
mkdir -p %buildroot%{_sysconfdir}/pam.d
8ded337
mkdir -p %buildroot%{_sysconfdir}/security/console.apps
8ded337
install -m0644 %{SOURCE2} %buildroot%{_sysconfdir}/pam.d/%{name}
8ded337
install -m0644 %{SOURCE3} %buildroot%{_sysconfdir}/security/console.apps/%{name}
8ded337
ln -s consolehelper %buildroot%{_bindir}/%{name}
6500fc2
fad5678
# Desktop file installation.
a97971d
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
fad5678
desktop-file-install --vendor redhat \
fad5678
  --dir $RPM_BUILD_ROOT%{_datadir}/applications        \
fad5678
  --add-category X-Red-Hat-Base                        \
fad5678
  --add-category SystemSetup                           \
fad5678
  --add-category Application                           \
f8964ef
  system-config-printer.desktop
fad5678
000e733
%find_lang system-config-printer
000e733
6500fc2
%clean
6500fc2
rm -rf $RPM_BUILD_ROOT
6500fc2
9c741d4
%files libs -f system-config-printer.lang
6500fc2
%defattr(-,root,root)
6500fc2
%doc --parents pycups-%{pycups_version}/{ChangeLog,README,NEWS,TODO}
6500fc2
%{_libdir}/python*/*/*.so
5675374
%dir %{_datadir}/%{name}
5675374
%{_datadir}/%{name}/foomatic.py*
5675374
%{_datadir}/%{name}/cupshelpers.py*
2f2835d
%{_datadir}/%{name}/gtk_html2pango.py*
5675374
9c741d4
%files
5675374
%defattr(-,root,root)
5675374
%doc ChangeLog README NEWS TODO
6500fc2
%{_bindir}/%{name}
8ded337
%{_sbindir}/%{name}
000e733
%{_datadir}/%{name}/config.py*
5675374
%{_datadir}/%{name}/cupsd.py*
5675374
%{_datadir}/%{name}/nametree.py*
5675374
%{_datadir}/%{name}/options.py*
5675374
%{_datadir}/%{name}/optionwidgets.py*
5675374
%{_datadir}/%{name}/probe_printer.py*
314f1ad
%{_datadir}/%{name}/pysmb.py*
5675374
%{_datadir}/%{name}/system-config-printer.py*
5675374
%{_datadir}/%{name}/gtk_label_autowrap.py*
5675374
%{_datadir}/%{name}/*.glade
fad5678
%{_datadir}/applications/redhat-system-config-printer.desktop
8ded337
%{_sysconfdir}/pam.d/%{name}
8ded337
%{_sysconfdir}/security/console.apps/%{name}
6500fc2
6500fc2
%changelog
30c8ec1
* Tue Jun 27 2006 Tim Waugh <twaugh@redhat.com> 0.7.18-1
30c8ec1
- 0.7.18.
9c741d4
- Ship translations with libs subpackage.
9c741d4
5176f67
* Fri Jun 23 2006 Tim Waugh <twaugh@redhat.com> 0.7.17-1
5176f67
- 0.7.17.
5176f67
beca9da
* Fri Jun 23 2006 Tim Waugh <twaugh@redhat.com> 0.7.16-1
beca9da
- 0.7.16, now with SMB browser.
beca9da
f18ec70
* Wed Jun 22 2006 Tim Waugh <twaugh@redhat.com> 0.7.15-1
f18ec70
- 0.7.15.
496e1aa
- Build requires gettext-devel.
000e733
- Ship translations.
496e1aa
f37401f
* Tue Jun 20 2006 Tim Waugh <twaugh@redhat.com> 0.7.14-1
f37401f
- 0.7.14.
f37401f
a97971d
* Mon Jun 19 2006 Tim Waugh <twaugh@redhat.com> 0.7.13-1
a97971d
- 0.7.13.
a97971d
43df08b
* Fri Jun  9 2006 Tim Waugh <twaugh@redhat.com> 0.7.12-1
43df08b
- 0.7.12.
43df08b
dacf62c
* Thu Jun  1 2006 Tim Waugh <twaugh@redhat.com> 0.7.11-3
dacf62c
- Fix libs dependency.
dacf62c
2f2835d
* Thu Jun  1 2006 Tim Waugh <twaugh@redhat.com> 0.7.11-2
2f2835d
- Moved the gtk_html2pango module to the libs package (needed by
2f2835d
  foomatic.py).
2f2835d
8ab8005
* Wed May 31 2006 Tim Waugh <twaugh@redhat.com> 0.7.11-1
5675374
- Split out system-config-printer-libs.
8ab8005
- Updated to system-config-printer-0.7.11.
5675374
5c6a1b1
* Sat May 27 2006 Tim Waugh <twaugh@redhat.com> 0.7.10-2
5c6a1b1
- Requires gobject2 (bug #192764).
5c6a1b1
6a4aec2
* Fri May 26 2006 Tim Waugh <twaugh@redhat.com> 0.7.10-1
71f345c
- Require foomatic (bug #192764).
6a4aec2
- Updated to system-config-printer-0.7.10.
71f345c
f7eed92
* Thu May 25 2006 Tim Waugh <twaugh@redhat.com> 0.7.9-1
35467bf
- Updated to pycups-1.9.11.
f7eed92
- Updated to system-config-printer-0.7.9.
35467bf
bf7c61a
* Mon May 15 2006 Tim Waugh <twaugh@redhat.com> 0.7.8-1
9b113b3
- Updated to pycups-1.9.10.
bf7c61a
- Updated to system-config-printer-0.7.8.
9b113b3
8ea84ce
* Fri May  5 2006 Tim Waugh <twaugh@redhat.com>
8ea84ce
- Fix pycups segfault.
8ea84ce
c5f4660
* Fri May  5 2006 Tim Waugh <twaugh@redhat.com> 0.7.7-2
8ded337
- Ship PAM and userhelper files.
8ded337
- Requires usermode.
4711cd9
- Added missing options.py file.
4711cd9
- Fix getClasses() in pycups.
4711cd9
a6d86e2
* Thu May  4 2006 Tim Waugh <twaugh@redhat.com> 0.7.7-1
a6d86e2
- Updated to system-config-printer-0.7.7.
0aad371
- Updated to pycups-1.9.9.
fad5678
- Desktop file.
fad5678
- Requires PyXML.
fad5678
9c22a9c
* Fri Apr 28 2006 Tim Waugh <twaugh@redhat.com>
9c22a9c
- Make it actually run.
9c22a9c
afd30f2
* Fri Apr 21 2006 Tim Waugh <twaugh@redhat.com>
afd30f2
- Build requires CUPS 1.2.
afd30f2
cd53afc
* Thu Apr 20 2006 Tim Waugh <twaugh@redhat.com> 0.7.5-1
ccbe29c
- Updated to pycups-1.9.8.  No longer need threads patch.
cd53afc
- Updated to system-config-printer-0.7.5.
ccbe29c
d239288
* Sat Apr 15 2006 Tim Waugh <twaugh@redhat.com>
d239288
- Updated to pycups-1.9.7.
d239288
7304b93
* Thu Apr 13 2006 Tim Waugh <twaugh@redhat.com> 0.7.4-2
7304b93
- Obsoletes: system-config-printer-gui <= 0.6.152
7304b93
4acd62c
* Wed Apr 12 2006 Tim Waugh <twaugh@redhat.com> 0.7.4-1
4acd62c
- Updated to system-config-printer-0.7.4.
4acd62c
6500fc2
* Fri Apr  7 2006 Tim Waugh <twaugh@redhat.com> 0.7.3-1
6500fc2
- Added threads patch from pycups CVS.
6500fc2
- Updated to system-config-printer-0.7.3.
6500fc2
6500fc2
* Tue Apr  4 2006 Tim Waugh <twaugh@redhat.com>
6500fc2
- Updated to pycups-1.9.6.
6500fc2
6500fc2
* Fri Mar 24 2006 Tim Waugh <twaugh@redhat.com>
6500fc2
- Updated to pycups-1.9.5.
6500fc2
6500fc2
* Fri Mar 17 2006 Tim Waugh <twaugh@redhat.com>
6500fc2
- Package the actual system-config-printer command.
6500fc2
6500fc2
* Thu Mar 16 2006 Tim Waugh <twaugh@redhat.com> 0.7.1-1
6500fc2
- Include s-c-printer tarball.
6500fc2
- Updated to pycups-1.9.4.
6500fc2
6500fc2
* Wed Mar 15 2006 Tim Waugh <twaugh@redhat.com> 0.7.0-1
6500fc2
- Initial spec file.