packages: authconfig/authconfig.spec - fix python packaging, now things exe...

glen glen at pld-linux.org
Fri Apr 20 08:46:09 CEST 2012


Author: glen                         Date: Fri Apr 20 06:46:09 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- fix python packaging, now things execute

---- Files affected:
packages/authconfig:
   authconfig.spec (1.49 -> 1.50) 

---- Diffs:

================================================================
Index: packages/authconfig/authconfig.spec
diff -u packages/authconfig/authconfig.spec:1.49 packages/authconfig/authconfig.spec:1.50
--- packages/authconfig/authconfig.spec:1.49	Fri Apr 20 08:39:39 2012
+++ packages/authconfig/authconfig.spec	Fri Apr 20 08:46:04 2012
@@ -9,7 +9,7 @@
 Summary(uk.UTF-8):	Утиліта текстового режиму для налагодження shadow та NIS-паролів
 Name:		authconfig
 Version:	6.2.2
-Release:	0.5
+Release:	0.6
 License:	GPL v2+
 Group:		Base
 Source0:	https://fedorahosted.org/releases/a/u/authconfig/%{name}-%{version}.tar.bz2
@@ -122,8 +122,11 @@
 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/acutilmodule.a
 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/acutilmodule.la
 
-%{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/authconfig-tui.py
-ln -s authconfig.py $RPM_BUILD_ROOT%{_datadir}/%{name}/authconfig-tui.py
+%py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
+# libraries, no sources needed
+%{__rm} -v $RPM_BUILD_ROOT%{_datadir}/%{name}/{authinfo,dnsclient,msgarea,shvfile}.py
+# invoked directly, not as library
+%{__rm} -v $RPM_BUILD_ROOT%{_datadir}/%{name}/authconfig*.py[co]
 
 %find_lang %{name}
 
@@ -158,11 +161,11 @@
 %exclude %{_mandir}/man8/authconfig-gtk.*
 %dir %{_datadir}/%{name}
 %attr(755,root,root) %{_datadir}/%{name}/authconfig.py
-%{_datadir}/%{name}/authconfig-tui.py*
-%{_datadir}/%{name}/authinfo.py*
-%{_datadir}/%{name}/shvfile.py*
-%{_datadir}/%{name}/dnsclient.py*
-%{_datadir}/%{name}/msgarea.py*
+%{_datadir}/%{name}/authconfig-tui.py
+%{_datadir}/%{name}/authinfo.py[co]
+%{_datadir}/%{name}/shvfile.py[co]
+%{_datadir}/%{name}/dnsclient.py[co]
+%{_datadir}/%{name}/msgarea.py[co]
 %attr(700,root,root) %dir %{_localstatedir}/lib/%{name}
 
 %files gtk
@@ -184,7 +187,7 @@
 %{_mandir}/man8/system-config-authentication.*
 %{_mandir}/man8/authconfig-gtk.*
 %{_datadir}/%{name}/authconfig.glade
-%{_datadir}/%{name}/authconfig-gtk.py*
+%attr(755,root,root) %{_datadir}/%{name}/authconfig-gtk.py
 %{_desktopdir}/*.desktop
 %{_iconsdir}/hicolor/*/apps/system-config-authentication.*
 
@@ -194,6 +197,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.50  2012/04/20 06:46:04  glen
+- fix python packaging, now things execute
+
 Revision 1.49  2012/04/20 06:39:39  glen
 - regenerate auto*
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/packages/authconfig/authconfig.spec?r1=1.49&r2=1.50



More information about the pld-cvs-commit mailing list