SPECS: gchempaint.spec - up to 0.6.4. Subpackages devel and static...

piti piti at pld-linux.org
Sun Apr 2 10:56:17 CEST 2006


Author: piti                         Date: Sun Apr  2 08:56:17 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- up to 0.6.4. Subpackages devel and static separation.

---- Files affected:
SPECS:
   gchempaint.spec (1.12 -> 1.13) 

---- Diffs:

================================================================
Index: SPECS/gchempaint.spec
diff -u SPECS/gchempaint.spec:1.12 SPECS/gchempaint.spec:1.13
--- SPECS/gchempaint.spec:1.12	Mon Jun 13 23:50:25 2005
+++ SPECS/gchempaint.spec	Sun Apr  2 10:56:11 2006
@@ -2,22 +2,22 @@
 Summary:	GNOME 2D chemical structure drawing tool
 Summary(pl):	Program GNOME do rysowania dwuwymiarowych wzorów chemicznych
 Name:		gchempaint
-Version:	0.4.2
+Version:	0.6.4
 Release:	1
 License:	GPL
 Group:		X11/Applications/Science
-Source0:	http://savannah.nongnu.org/download/%{name}/%{name}-%{version}.tar.bz2
-# Source0-md5:	6d02d5ec9b5371529b308b4ba7983a38
+Source0:	http://savannah.nongnu.org/download/gchempaint/%{name}-%{version}.tar.bz2
+# Source0-md5:	6dfe0ab484dbe997016bb0e823db8df0
 URL:		http://www.nongnu.org/gchempaint/
 BuildRequires:	autoconf
 BuildRequires:	automake
+BuildRequires:	gnome-chemistry-utils-devel >= 0.4.7
 BuildRequires:	libglade2-devel >= 2.0.0
 BuildRequires:	libgnomeprintui-devel >= 2.1.3
 BuildRequires:	libgnomeui-devel >= 2.0.0
 BuildRequires:	libtool
-BuildRequires:	gnome-chemistry-utils-devel >= 0.2.5
 BuildRequires:	openbabel-devel >= 1.100.2
-Requires:	gnome-chemistry-utils >= 0.2.5
+Requires:	gnome-chemistry-utils >= 0.4.7
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define		_noautoreqdep	libGL.so.1 libGLU.so.1
@@ -35,6 +35,35 @@
 chemicznych w innych aplikacjach GNOME, takich jak Gnumeric czy
 Abiword.
 
+%package devel
+Summary:	Header files for gchempaint
+Summary(pl):	Pliki nagłówkowe dla programu gchempaint
+Group:		X11/Applications/Science
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+The gchempaint-devel package contains the header files necessary for
+developing programs using gchempaint, and especially for writing new
+plugins.
+
+%description devel -l pl
+Pakiet gchempaint-devel zawiera pliki nagłówkowe niezbędne do
+tworzenia oprogramowania wykorzystującego gchempaint, a zwłaszcza do
+tworzenia wtyczek do niego.
+
+%package static
+Summary:	Static gchempaint libraries
+Summary(pl):	Statyczne biblioteki programu gchempaint
+Group:		X11/Applications/Science
+Requires:	%{name} = %{version}-%{release}
+
+%description static
+Static gchempaint libraries.
+
+%description static -l pl
+Statyczne biblioteki programu gchempaint
+
+
 %prep
 %setup -q
 
@@ -43,7 +72,8 @@
 %{__aclocal}
 %{__autoconf}
 %{__autoheader}
-%configure
+%configure \
+	--disable-update-databases
 %{__make}
 
 %install
@@ -52,7 +82,7 @@
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-rm -r $RPM_BUILD_ROOT%{_datadir}/{application-registry,mime-info}
+#rm -r $RPM_BUILD_ROOT%{_datadir}/{application-registry,mime-info}
 
 %find_lang %{name} --with-gnome
 
@@ -61,20 +91,49 @@
 
 %post
 %scrollkeeper_update_post
+/sbin/ldconfig
+umask 022
+update-mime-database %{_datadir}/mime >/dev/null 2>&1 ||:
+[ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||:
 
 %postun
 %scrollkeeper_update_post
+/sbin/ldconfig
+if [ $1 = 0 ]; then
+    umask 022
+    update-mime-database %{_datadir}/mime >/dev/null 2>&1
+    [ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1
+fi
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS README TODO
 %attr(755,root,root) %{_bindir}/%{name}
+%attr(755,root,root) %{_bindir}/%{name}-viewer
+%{_sysconfdir}/gconf/schemas/*
 %{_datadir}/%{name}
-%{_datadir}/gnome-2.0/ui/*
-%{_omf_dest_dir}/%{name}
+%{_datadir}/mime/packages/*
 %{_desktopdir}/%{name}.desktop
-%{_pixmapsdir}/*.png
 %{_libdir}/bonobo/servers/%{name}.server
+%{_iconsdir}/hicolor/128x128/apps/*
+%{_iconsdir}/hicolor/128x128/mimetypes/*
+%{_iconsdir}/hicolor/32x32/apps/*
+%{_iconsdir}/hicolor/32x32/mimetypes/*
+%{_iconsdir}/hicolor/48x48/apps/*
+%{_iconsdir}/hicolor/48x48/mimetypes/*
+%{_iconsdir}/hicolor/72x72/apps/*
+%{_iconsdir}/hicolor/72x72/mimetypes/*
+%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
+%{_libdir}/%{name}
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/%{name}
+%{_libdir}/lib*.so
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/lib*.la
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -82,6 +141,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.13  2006/04/02 08:56:11  piti
+- up to 0.6.4. Subpackages devel and static separation.
+
 Revision 1.12  2005/06/13 21:50:25  freetz
 - removed obsoleted GNOME mime-info stuff, new style macros
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/gchempaint.spec?r1=1.12&r2=1.13&f=u



More information about the pld-cvs-commit mailing list