SPECS: gramps.spec - fixed BR/R, removed not needed files, banner ...

freetz freetz at pld-linux.org
Sat Dec 3 15:57:45 CET 2005


Author: freetz                       Date: Sat Dec  3 14:57:45 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- fixed BR/R, removed not needed files, banner support, run scrollkeeper
  in post/postun, massive %%files cleanup, call .pyc instead .py in startup
  script, pass 'packager friendly' options to configure, rel.2

---- Files affected:
SPECS:
   gramps.spec (1.29 -> 1.30) 

---- Diffs:

================================================================
Index: SPECS/gramps.spec
diff -u SPECS/gramps.spec:1.29 SPECS/gramps.spec:1.30
--- SPECS/gramps.spec:1.29	Thu Nov  3 21:08:22 2005
+++ SPECS/gramps.spec	Sat Dec  3 15:57:40 2005
@@ -3,7 +3,7 @@
 Summary(pl):	System programowania do zarządzania badaniami i analizą genealogiczną
 Name:		gramps
 Version:	2.0.8
-Release:	1
+Release:	2
 License:	GPL
 Group:		Applications/Science
 Source0:	http://dl.sourceforge.net/gramps/%{name}-%{version}.tar.gz
@@ -13,28 +13,21 @@
 URL:		http://gramps.sourceforge.net/
 BuildRequires:	autoconf
 BuildRequires:	automake
+BuildRequires:	GConf2-devel
+BuildRequires:	gettext-devel
+BuildRequires:	gtk+2-devel >= 2:2.8.0
 BuildRequires:	pkgconfig
-BuildRequires:	python-devel >= 2.3
-BuildRequires:	python-gnome-gconf
-BuildRequires:	python-gnome-ui >= 2.6.0
-BuildRequires:	python-gnome-vfs
-BuildRequires:	python-pygtk-gtk >= 2.5.0
-BuildRequires:	python-pygtk-glade >= 2.5.0
-BuildRequires:	python-ReportLab
+BuildRequires:	python-gnome-devel >= 2.6.0
+BuildRequires:	rpmbuild(macros) >= 1.197
 BuildRequires:	scrollkeeper >= 0.3.5
-Requires:	python >= 2.3
-Requires:	python-Imaging 
-Requires:	python-gnome >= 2.6.0
-Requires:	python-gnome-canvas >= 2.6.0
-Requires:	python-gnome-gconf >= 2.6.0 
-Requires:	python-gnome-ui >= 2.6.0
-Requires:	python-pygtk-gtk >= 2.5.0
-Requires:	python-pygtk-glade >= 2.5.0
-Requires:	python-ReportLab
+%pyrequires_eq  python-modules
+Requires(post,preun):	GConf2
+Requires(post,postun):	desktop-file-utils
+Requires(post,postun):	scrollkeeper
+Requires:	hicolor-icon-theme
+Requires:	python-gnome-ui >= 2.12.2-2
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define		_localstatedir	/var/lib
-
 %description
 gramps (Genealogical Research and Analysis Management Programming
 System) is a GNOME based genealogy program supporting a Python based
@@ -51,11 +44,16 @@
 %patch0 -p1
 %patch1 -p1
 
+sed -i -e 's|gramps.py|gramps.pyc|' gramps.sh.in
 rm -rf src/po/no.*
 
 %build
-%configure
-
+%{__aclocal}
+%{__automake}
+%{__autoconf}
+%configure \
+	--disable-schemas-install \
+	--disable-mime-install
 %{__make}
 
 %install
@@ -65,10 +63,11 @@
 	DESTDIR=$RPM_BUILD_ROOT
 
 install -d $RPM_BUILD_ROOT%{_pixmapsdir}
-cp src/gramps.png $RPM_BUILD_ROOT%{_pixmapsdir}
-rm -rf $RPM_BUILD_ROOT%{_localstatedir}/scrollkeeper
+install src/gramps.png $RPM_BUILD_ROOT%{_pixmapsdir}
 rm -rf $RPM_BUILD_ROOT%{_datadir}/mime-info
 rm -rf $RPM_BUILD_ROOT%{_datadir}/application-registry
+rm -f $RPM_BUILD_ROOT%{_datadir}/gramps/*.py
+rm -f $RPM_BUILD_ROOT%{_datadir}/gramps/*/*.py
 
 %find_lang gramps
 
@@ -78,31 +77,50 @@
 %post
 %gconf_schema_install gramps.schemas
 %update_desktop_database_post
-##%scrollkeeper-update_post
+%scrollkeeper_update_post
+%banner %{name} -e << EOF
+Following packages are strongly recommended to be installed:
+- graphviz (for creation of graphs)
+- python-ReportLab (for creation of PDF documents)
+EOF
 
 %preun
 %gconf_schema_uninstall gramps.schemas
 
 %postun
 %update_desktop_database_postun
-##%scrollkeeper-update_postun
+%scrollkeeper_update_postun
 
 %files -f gramps.lang
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog FAQ NEWS README TODO
 %attr(755,root,root) %{_bindir}/gramps
-%{_sysconfdir}/gconf/schemas/gramps.schemas
-%{_datadir}/gramps
-%{_datadir}/mime/packages/gramps.xml
-%{_datadir}/mime/magic
-%{_datadir}/mime/globs
-%{_datadir}/mime/XMLnamespaces
-%{_datadir}/mime/application/*
-%{_datadir}/omf/gramps
+
+%dir %{_datadir}/gramps
+%dir %{_datadir}/gramps/gnome
+%dir %{_datadir}/gramps/gnome/help
+%dir %{_datadir}/gramps/gnome/help/gramps
+%{_datadir}/gramps/data
+%{_datadir}/gramps/dates
+%{_datadir}/gramps/docgen
+%{_datadir}/gramps/example
+%{_datadir}/gramps/plugins
+%{_datadir}/gramps/*.glade
+%{_datadir}/gramps/*.jpg
+%{_datadir}/gramps/*.png
+%{_datadir}/gramps/*.py[co]
+%{_datadir}/gramps/gnome/help/gramps/C
+%lang(fr) %{_datadir}/gramps/gnome/help/gramps/fr
+
 %{_desktopdir}/*.desktop
 %{_iconsdir}/gnome/48x48/mimetypes/*
 %{_pixmapsdir}/gramps.png
+
+%{_datadir}/mime/packages/gramps.xml
+%{_sysconfdir}/gconf/schemas/gramps.schemas
+
 %{_mandir}/man1/*
+%{_omf_dest_dir}/%{name}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -110,6 +128,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.30  2005/12/03 14:57:40  freetz
+- fixed BR/R, removed not needed files, banner support, run scrollkeeper
+  in post/postun, massive %%files cleanup, call .pyc instead .py in startup
+  script, pass 'packager friendly' options to configure, rel.2
+
 Revision 1.29  2005/11/03 20:08:22  krystian
 - up to 2.0.8
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/gramps.spec?r1=1.29&r2=1.30&f=u




More information about the pld-cvs-commit mailing list