packages: gourmet/gourmet.spec - do not packages /usr/share/locale/* direct...

jajcus jajcus at pld-linux.org
Thu Apr 8 09:08:17 CEST 2010


Author: jajcus                       Date: Thu Apr  8 07:08:17 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- do not packages /usr/share/locale/* directories! use %find_lang instead.
- unsuported locales renamed (de_DE, sv_SE) or removed (es_ES)
- python modules and *.egg-info moved to python-%{name}
- packages compiled modules only (it seems the gourmet plugin loader has no
  problem with this)
- Suggests added for python packages needed by some gourmet plugins
  (python-poppler is not available in PLD right now)
- Release: 2

---- Files affected:
packages/gourmet:
   gourmet.spec (1.6 -> 1.7) 

---- Diffs:

================================================================
Index: packages/gourmet/gourmet.spec
diff -u packages/gourmet/gourmet.spec:1.6 packages/gourmet/gourmet.spec:1.7
--- packages/gourmet/gourmet.spec:1.6	Mon Dec 21 14:30:53 2009
+++ packages/gourmet/gourmet.spec	Thu Apr  8 09:08:12 2010
@@ -3,7 +3,7 @@
 Summary(hu.UTF-8):	Gourmet Recipe Manager egy egyszerű, de hatékony recept-nyilvántartó alkalmazás
 Name:		gourmet
 Version:	0.15.3
-Release:	1
+Release:	2
 License:	GPL v2
 Group:		X11/Applications
 Source0:	http://dl.sourceforge.net/grecipe-manager/%{name}-%{version}.tar.gz
@@ -15,8 +15,9 @@
 BuildRequires:	python-gnome-desktop-print
 BuildRequires:	python-pygtk-devel
 BuildRequires:	python-sqlite
-Requires:	python-ReportLab
-Requires:	python-sqlalchemy-migrate
+Requires:	python-%{name} = %{version}-%{release}
+Suggests:	python-gnome-extras-gtkspell
+#Suggests:	python-poppler
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -31,6 +32,20 @@
 rendszerezni a receptjeidet és automatikusan elkészíteni a
 bevásárlólistát a gyűjteményed alapján.
 
+%package -n python-%{name}
+Summary:        Gourmet Python modules
+Summary(pl.UTF-8):      Moduły Pythona Gourmet
+Group:          Development/Languages/Python
+Requires:	python-ReportLab
+Requires:	python-sqlalchemy-migrate
+%pyrequires_eq	python-modules
+
+%description -n python-%{name}
+This package provides Gourumet Recipe Manager Python modules.
+
+%description -n python-%{name} -l pl.UTF-8
+Moduły Pythona z Gourmet Recipe Manager. 
+
 %prep
 %setup -q
 
@@ -40,23 +55,35 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 
-python setup.py install --root=$RPM_BUILD_ROOT
+python setup.py install \
+	--root=$RPM_BUILD_ROOT \
+	--optimize=2 
+
+%py_postclean
+
+mv $RPM_BUILD_ROOT%{_localedir}/{sv_SE,sv}
+mv $RPM_BUILD_ROOT%{_localedir}/{de_DE,de}
+
+# what is the other Spanish?
+rm -r $RPM_BUILD_ROOT%{_localedir}/es_ES
+%find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc CHANGES FAQ README TODO
 %attr(755,root,root) %{_bindir}/gourmet
 %{_desktopdir}/%{name}.desktop
 %{_pixmapsdir}/recbox.png
-%{py_sitescriptdir}/%{name}/*
-%{py_sitescriptdir}/%{name}-%{version}*.egg-info
 %dir %{_datadir}/%{name}
-%dir %{py_sitescriptdir}/gourmet
 %{_datadir}/%{name}/*
-%{_datadir}/locale/*
+
+%files -n python-%{name}
+%defattr(644,root,root,755)
+%{py_sitescriptdir}/%{name}
+%{py_sitescriptdir}/%{name}-%{version}*.egg-info
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -64,6 +91,16 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.7  2010/04/08 07:08:12  jajcus
+- do not packages /usr/share/locale/* directories! use %find_lang instead.
+- unsuported locales renamed (de_DE, sv_SE) or removed (es_ES)
+- python modules and *.egg-info moved to python-%{name}
+- packages compiled modules only (it seems the gourmet plugin loader has no
+  problem with this)
+- Suggests added for python packages needed by some gourmet plugins
+  (python-poppler is not available in PLD right now)
+- Release: 2
+
 Revision 1.6  2009/12/21 13:30:53  uzsolt
 - 0.15.3
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gourmet/gourmet.spec?r1=1.6&r2=1.7&f=u



More information about the pld-cvs-commit mailing list