2006-05-15 17:42:02 +00:00
|
|
|
%define pycups_version 1.9.10
|
2006-04-12 21:09:45 +00:00
|
|
|
|
|
|
|
Summary: A printer administration tool
|
|
|
|
Name: system-config-printer
|
2006-05-15 17:43:47 +00:00
|
|
|
Version: 0.7.8
|
|
|
|
Release: 1
|
2006-04-12 21:09:45 +00:00
|
|
|
License: GPL
|
|
|
|
Group: System Environment/Base
|
|
|
|
Source0: system-config-printer-%{version}.tar.bz2
|
|
|
|
Source1: pycups-%{pycups_version}.tar.bz2
|
2006-05-05 11:53:46 +00:00
|
|
|
Source2: system-config-printer.pam
|
|
|
|
Source3: system-config-printer.console
|
2006-04-12 21:09:45 +00:00
|
|
|
|
|
|
|
%{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')}
|
|
|
|
|
2006-04-21 13:48:40 +00:00
|
|
|
BuildRequires: cups-devel >= 1.2
|
|
|
|
BuildRequires: python-devel
|
2006-05-04 17:17:52 +00:00
|
|
|
BuildRequires: desktop-file-utils >= 0.2.92
|
2006-04-12 21:09:45 +00:00
|
|
|
PreReq: python, python-abi = %{pyver}
|
|
|
|
PreReq: rhpl >= 0.81
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
Requires: pygtk2 >= 2.4.0, pygtk2-libglade
|
2006-05-04 17:17:52 +00:00
|
|
|
Requires: PyXML
|
2006-05-05 11:53:46 +00:00
|
|
|
Requires: usermode >= 1.37
|
2006-04-12 21:09:45 +00:00
|
|
|
|
2006-04-13 17:13:51 +00:00
|
|
|
Obsoletes: system-config-printer-gui <= 0.6.152
|
|
|
|
|
2006-04-12 21:09:45 +00:00
|
|
|
%description
|
|
|
|
system-config-mouse is a graphical user interface that allows
|
|
|
|
the user to configure a CUPS print server.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -a 1
|
|
|
|
|
|
|
|
%build
|
|
|
|
pushd pycups-%{pycups_version}
|
|
|
|
make
|
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
pushd pycups-%{pycups_version}
|
|
|
|
make install DESTDIR=%buildroot
|
|
|
|
popd
|
|
|
|
|
|
|
|
mkdir -p %buildroot%{_datadir}/%{name}
|
|
|
|
mkdir -p %buildroot%{_bindir}
|
2006-05-05 11:53:46 +00:00
|
|
|
mkdir -p %buildroot%{_sbindir}
|
|
|
|
mkdir -p %buildroot%{_sysconfdir}/pam.d
|
|
|
|
mkdir -p %buildroot%{_sysconfdir}/security/console.apps
|
2006-05-15 17:47:04 +00:00
|
|
|
install -m0755 *.py %buildroot%{_datadir}/%{name}/
|
2006-04-12 21:09:45 +00:00
|
|
|
install -m0644 *.glade %buildroot%{_datadir}/%{name}/
|
2006-05-05 11:53:46 +00:00
|
|
|
install -m0755 %{name} %buildroot%{_sbindir}/
|
|
|
|
install -m0644 %{SOURCE2} %buildroot%{_sysconfdir}/pam.d/%{name}
|
|
|
|
install -m0644 %{SOURCE3} %buildroot%{_sysconfdir}/security/console.apps/%{name}
|
|
|
|
ln -s consolehelper %buildroot%{_bindir}/%{name}
|
2006-04-12 21:09:45 +00:00
|
|
|
|
2006-05-04 17:17:52 +00:00
|
|
|
# Desktop file installation.
|
|
|
|
mkdir $RPM_BUILD_ROOT%{_datadir}/applications
|
|
|
|
desktop-file-install --vendor redhat \
|
|
|
|
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
|
|
|
|
--add-category X-Red-Hat-Base \
|
|
|
|
--add-category SystemSetup \
|
|
|
|
--add-category Application \
|
2006-05-04 17:24:57 +00:00
|
|
|
system-config-printer.desktop
|
2006-05-04 17:17:52 +00:00
|
|
|
|
2006-04-12 21:09:45 +00:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc --parents pycups-%{pycups_version}/{ChangeLog,README,NEWS,TODO}
|
|
|
|
%doc ChangeLog README NEWS TODO
|
|
|
|
%{_libdir}/python*/*/*.so
|
|
|
|
%{_bindir}/%{name}
|
2006-05-05 11:53:46 +00:00
|
|
|
%{_sbindir}/%{name}
|
2006-04-12 21:09:45 +00:00
|
|
|
%{_datadir}/%{name}
|
2006-05-04 17:17:52 +00:00
|
|
|
%{_datadir}/applications/redhat-system-config-printer.desktop
|
2006-05-05 11:53:46 +00:00
|
|
|
%{_sysconfdir}/pam.d/%{name}
|
|
|
|
%{_sysconfdir}/security/console.apps/%{name}
|
2006-04-12 21:09:45 +00:00
|
|
|
|
|
|
|
%changelog
|
2006-05-15 17:43:47 +00:00
|
|
|
* Mon May 15 2006 Tim Waugh <twaugh@redhat.com> 0.7.8-1
|
2006-05-15 17:42:02 +00:00
|
|
|
- Updated to pycups-1.9.10.
|
2006-05-15 17:43:47 +00:00
|
|
|
- Updated to system-config-printer-0.7.8.
|
2006-05-15 17:42:02 +00:00
|
|
|
|
2006-05-05 15:28:58 +00:00
|
|
|
* Fri May 5 2006 Tim Waugh <twaugh@redhat.com>
|
|
|
|
- Fix pycups segfault.
|
|
|
|
|
2006-05-05 12:39:52 +00:00
|
|
|
* Fri May 5 2006 Tim Waugh <twaugh@redhat.com> 0.7.7-2
|
2006-05-05 11:53:46 +00:00
|
|
|
- Ship PAM and userhelper files.
|
|
|
|
- Requires usermode.
|
2006-05-05 11:34:34 +00:00
|
|
|
- Added missing options.py file.
|
|
|
|
- Fix getClasses() in pycups.
|
|
|
|
|
2006-05-04 17:23:31 +00:00
|
|
|
* Thu May 4 2006 Tim Waugh <twaugh@redhat.com> 0.7.7-1
|
|
|
|
- Updated to system-config-printer-0.7.7.
|
2006-05-04 17:21:45 +00:00
|
|
|
- Updated to pycups-1.9.9.
|
2006-05-04 17:17:52 +00:00
|
|
|
- Desktop file.
|
|
|
|
- Requires PyXML.
|
|
|
|
|
2006-04-28 08:32:57 +00:00
|
|
|
* Fri Apr 28 2006 Tim Waugh <twaugh@redhat.com>
|
|
|
|
- Make it actually run.
|
|
|
|
|
2006-04-21 13:48:40 +00:00
|
|
|
* Fri Apr 21 2006 Tim Waugh <twaugh@redhat.com>
|
|
|
|
- Build requires CUPS 1.2.
|
|
|
|
|
2006-04-20 16:50:57 +00:00
|
|
|
* Thu Apr 20 2006 Tim Waugh <twaugh@redhat.com> 0.7.5-1
|
2006-04-20 16:49:19 +00:00
|
|
|
- Updated to pycups-1.9.8. No longer need threads patch.
|
2006-04-20 16:50:57 +00:00
|
|
|
- Updated to system-config-printer-0.7.5.
|
2006-04-20 16:49:19 +00:00
|
|
|
|
2006-04-15 19:11:05 +00:00
|
|
|
* Sat Apr 15 2006 Tim Waugh <twaugh@redhat.com>
|
|
|
|
- Updated to pycups-1.9.7.
|
|
|
|
|
2006-04-13 17:13:51 +00:00
|
|
|
* Thu Apr 13 2006 Tim Waugh <twaugh@redhat.com> 0.7.4-2
|
|
|
|
- Obsoletes: system-config-printer-gui <= 0.6.152
|
|
|
|
|
2006-04-12 21:11:29 +00:00
|
|
|
* Wed Apr 12 2006 Tim Waugh <twaugh@redhat.com> 0.7.4-1
|
|
|
|
- Updated to system-config-printer-0.7.4.
|
|
|
|
|
2006-04-12 21:09:45 +00:00
|
|
|
* Fri Apr 7 2006 Tim Waugh <twaugh@redhat.com> 0.7.3-1
|
|
|
|
- Added threads patch from pycups CVS.
|
|
|
|
- Updated to system-config-printer-0.7.3.
|
|
|
|
|
|
|
|
* Tue Apr 4 2006 Tim Waugh <twaugh@redhat.com>
|
|
|
|
- Updated to pycups-1.9.6.
|
|
|
|
|
|
|
|
* Fri Mar 24 2006 Tim Waugh <twaugh@redhat.com>
|
|
|
|
- Updated to pycups-1.9.5.
|
|
|
|
|
|
|
|
* Fri Mar 17 2006 Tim Waugh <twaugh@redhat.com>
|
|
|
|
- Package the actual system-config-printer command.
|
|
|
|
|
|
|
|
* Thu Mar 16 2006 Tim Waugh <twaugh@redhat.com> 0.7.1-1
|
|
|
|
- Include s-c-printer tarball.
|
|
|
|
- Updated to pycups-1.9.4.
|
|
|
|
|
|
|
|
* Wed Mar 15 2006 Tim Waugh <twaugh@redhat.com> 0.7.0-1
|
|
|
|
- Initial spec file.
|