SPECS: python-gnome.spec - examples subpackage, rel. 2

paladine paladine at pld-linux.org
Mon Nov 14 19:18:20 CET 2005


Author: paladine                     Date: Mon Nov 14 18:18:20 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- examples subpackage, rel. 2

---- Files affected:
SPECS:
   python-gnome.spec (1.49 -> 1.50) 

---- Diffs:

================================================================
Index: SPECS/python-gnome.spec
diff -u SPECS/python-gnome.spec:1.49 SPECS/python-gnome.spec:1.50
--- SPECS/python-gnome.spec:1.49	Tue Oct  4 20:12:02 2005
+++ SPECS/python-gnome.spec	Mon Nov 14 19:18:15 2005
@@ -6,7 +6,7 @@
 Summary(pl):	Wiązania Pythona do bibliotek GNOME
 Name:		python-gnome
 Version:	2.12.1
-Release:	1
+Release:	2
 License:	GPL v2+/LGPL v2.1+
 Group:		Libraries/Python
 Source0:	http://ftp.gnome.org/pub/gnome/sources/gnome-python/2.12/%{module}-%{version}.tar.bz2
@@ -134,6 +134,18 @@
 %description devel -l pl
 Pliki programistyczne wiązań Pythona do GNOME.
 
+%package examples
+Summary:        Example programs for python-gnome
+Summary(pl):    Przykładowe programy do python-gnome
+Group:          Libraries/Python
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description examples
+This package contains example programs for python-gnome.
+
+%description -l pl examples
+Ten pakiet zawiera przykładowe programy dla python-gnome.
+
 %prep
 %setup -q -n %{module}-%{version}
 
@@ -149,9 +161,13 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
 rm -f $RPM_BUILD_ROOT%{py_sitedir}/gtk-2.0/{*.la,*/{*.la,*.py}}
 rm -f $RPM_BUILD_ROOT%{_libdir}/gnome-vfs-2.0/modules/*.la
 
@@ -169,6 +185,16 @@
 %attr(755,root,root) %{py_sitedir}/gtk-2.0/gnome/_gnome*.so
 %dir %{_datadir}/pygtk/2.0/argtypes
 
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/%{module}-2.0
+%{pydefsdir}/*
+%{_pkgconfigdir}/*
+
+%files examples
+%defattr(644,root,root,755)
+%{_examplesdir}/%{name}-%{version}
+
 %files bonobo
 %defattr(644,root,root,755)
 %dir %{py_sitedir}/gtk-2.0/bonobo
@@ -201,18 +227,15 @@
 %attr(755,root,root) %{_libdir}/gnome-vfs-2.0/modules/*.so
 %{py_sitedir}/gtk-2.0/gnome/vfs.py[co]
 
-%files devel
-%defattr(644,root,root,755)
-%{_includedir}/%{module}-2.0
-%{pydefsdir}/*
-%{_pkgconfigdir}/*
-
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.50  2005/11/14 18:18:15  paladine
+- examples subpackage, rel. 2
+
 Revision 1.49  2005/10/04 18:12:02  freetz
 - 2.12.1
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/python-gnome.spec?r1=1.49&r2=1.50&f=u




More information about the pld-cvs-commit mailing list