- Ship PAM and userhelper files.

- Requires usermode.
This commit is contained in:
Tim Waugh 2006-05-05 11:53:46 +00:00
parent 2486a21d19
commit ba0fba8d1a
3 changed files with 25 additions and 4 deletions

View File

@ -0,0 +1,4 @@
USER=root
PROGRAM=/usr/sbin/system-config-printer
SESSION=true
FALLBACK=true

View File

@ -0,0 +1,4 @@
#%PAM-1.0
auth include config-util
account include config-util
session include config-util

View File

@ -8,7 +8,9 @@ License: GPL
Group: System Environment/Base Group: System Environment/Base
Source0: system-config-printer-%{version}.tar.bz2 Source0: system-config-printer-%{version}.tar.bz2
Source1: pycups-%{pycups_version}.tar.bz2 Source1: pycups-%{pycups_version}.tar.bz2
Source2: options.py Source2: system-config-printer.pam
Source3: system-config-printer.console
Source4: options.py
Patch0: pycups-no-classes.patch Patch0: pycups-no-classes.patch
%{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')} %{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')}
@ -22,6 +24,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root
Requires: pygtk2 >= 2.4.0, pygtk2-libglade Requires: pygtk2 >= 2.4.0, pygtk2-libglade
Requires: PyXML Requires: PyXML
Requires: usermode >= 1.37
Obsoletes: system-config-printer-gui <= 0.6.152 Obsoletes: system-config-printer-gui <= 0.6.152
@ -48,10 +51,15 @@ popd
mkdir -p %buildroot%{_datadir}/%{name} mkdir -p %buildroot%{_datadir}/%{name}
mkdir -p %buildroot%{_bindir} mkdir -p %buildroot%{_bindir}
install -m0644 *.py %{SOURCE2} %buildroot%{_datadir}/%{name}/ mkdir -p %buildroot%{_sbindir}
mkdir -p %buildroot%{_sysconfdir}/pam.d
mkdir -p %buildroot%{_sysconfdir}/security/console.apps
install -m0755 *.py %{SOURCE4} %buildroot%{_datadir}/%{name}/
install -m0644 *.glade %buildroot%{_datadir}/%{name}/ install -m0644 *.glade %buildroot%{_datadir}/%{name}/
chmod 755 %buildroot%{_datadir}/%{name}/%{name}.py install -m0755 %{name} %buildroot%{_sbindir}/
install -m0755 %{name} %buildroot%{_bindir}/ install -m0644 %{SOURCE2} %buildroot%{_sysconfdir}/pam.d/%{name}
install -m0644 %{SOURCE3} %buildroot%{_sysconfdir}/security/console.apps/%{name}
ln -s consolehelper %buildroot%{_bindir}/%{name}
# Desktop file installation. # Desktop file installation.
mkdir $RPM_BUILD_ROOT%{_datadir}/applications mkdir $RPM_BUILD_ROOT%{_datadir}/applications
@ -71,11 +79,16 @@ rm -rf $RPM_BUILD_ROOT
%doc ChangeLog README NEWS TODO %doc ChangeLog README NEWS TODO
%{_libdir}/python*/*/*.so %{_libdir}/python*/*/*.so
%{_bindir}/%{name} %{_bindir}/%{name}
%{_sbindir}/%{name}
%{_datadir}/%{name} %{_datadir}/%{name}
%{_datadir}/applications/redhat-system-config-printer.desktop %{_datadir}/applications/redhat-system-config-printer.desktop
%{_sysconfdir}/pam.d/%{name}
%{_sysconfdir}/security/console.apps/%{name}
%changelog %changelog
* Fri May 5 2006 Tim Waugh <twaugh@redhat.com> * Fri May 5 2006 Tim Waugh <twaugh@redhat.com>
- Ship PAM and userhelper files.
- Requires usermode.
- Added missing options.py file. - Added missing options.py file.
- Fix getClasses() in pycups. - Fix getClasses() in pycups.