rpms/kdepim/F-8 kdepim.spec,1.134,1.135

Rex Dieter (rdieter) fedora-extras-commits at redhat.com
Thu Oct 25 03:37:14 UTC 2007


Author: rdieter

Update of /cvs/pkgs/rpms/kdepim/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15894

Modified Files:
	kdepim.spec 
Log Message:
un Oct 14 2007 Rex Dieter <rdieter[AT]fedoraproject.org> - 6:3.5.8-3.20071013.ent
- -libs: %%post/%%postun /sbin/ldconfig
- -libs conditional (f8+)

* Sun Oct 14 2007 Rex Dieter <rdieter[AT]fedoraproject.org> - 6:3.5.8-2.20071013.ent
- -libs subpkg (to be more multilib friendly)



Index: kdepim.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kdepim/F-8/kdepim.spec,v
retrieving revision 1.134
retrieving revision 1.135
diff -u -r1.134 -r1.135
--- kdepim.spec	14 Oct 2007 03:01:00 -0000	1.134
+++ kdepim.spec	25 Oct 2007 03:36:42 -0000	1.135
@@ -13,6 +13,11 @@
 %define _with_gnokii --with-gnokii
 %define _with_mal --with-mal
 
+%if 0%{?fedora} > 7
+# make -libs subpkg
+%define libs 1
+%endif
+
 Name:    kdepim
 Summary: PIM (Personal Information Manager) applications
 Epoch:   6
@@ -25,9 +30,9 @@
 
 %if 0%{?ent_date} > 0
 Source0: kdepim-enterprise-svn%{ent_date}.tar.bz2
-Release: 1.svn%{ent_date}.ent%{?dist}
+Release: 3.svn%{ent_date}.ent%{?dist}
 %else
-Release: 1%{?dist}
+Release: 3%{?dist}
 Source0: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.bz2
 %endif
 Source1: cr48-app-kandy.png
@@ -39,7 +44,13 @@
 
 Provides: kdepim3 = %{version}-%{release}
 
-Requires: kdelibs3 >= %{version}
+%if 0%{?libs}
+Requires: %{name}-libs = %{?epoch:%{epoch}:}%{version}-%{release}
+%else
+Obsoletes: %{name}-libs < %{?epoch:%{epoch}:}%{version}-%{release}
+Provides:  %{name}-libs = %{?epoch:%{epoch}:}%{version}-%{release}
+%endif
+
 Requires(post): /sbin/ldconfig
 Requires(postun): /sbin/ldconfig
 
@@ -105,12 +116,24 @@
 Summary: Development files for %{name} 
 Group: Development/Libraries
 Provides: kdepim3-devel = %{version}-%{release}
-Requires: %{name} = %{epoch}:%{version}-%{release}
+Requires: %{name}-libs = %{epoch}:%{version}-%{release}
 Requires: kdelibs3-devel
 %description devel
 %{summary}.
 Install %{name}-devel if you want to write or compile %{name} plugins.
 
+%if 0%{?libs}
+%package libs
+Summary: %{name} runtime libraries
+Group:   System Environment/Libraries
+Requires: kdelibs3 >= %{version}
+# include to be paranoid, installing libs-only is still mostly untested -- Rex
+Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
+%description libs
+%{summary}.
+%endif
+
+
 %prep
 %setup -q %{?ent_date: -n %{name}}
 
@@ -173,7 +196,7 @@
 
 
 %post
-/sbin/ldconfig ||:
+%{!?libs:/sbin/ldconfig}
 for i in crystalsvg hicolor locolor ; do
  touch --no-create %{_datadir}/icons/$i 2>/dev/null || :
  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/$i 2>/dev/null || :
@@ -181,13 +204,19 @@
 %{_bindir}/update-desktop-database >& /dev/null ||:
 
 %postun
-/sbin/ldconfig ||:
+%{!?libs:/sbin/ldconfig}
 for i in crystalsvg hicolor locolor ; do
  touch --no-create %{_datadir}/icons/$i 2>/dev/null || :
  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/$i 2>/dev/null || :
 done
 %{_bindir}/update-desktop-database >& /dev/null ||:
 
+%if 0%{?libs}
+%post libs -p /sbin/ldconfig
+
+%postun libs -p /sbin/ldconfig
+%endif
+
 
 %clean
 rm -rf %{buildroot}
@@ -197,8 +226,6 @@
 %defattr(-,root,root,-)
 %doc README korganizer/COPYING
 %{_bindir}/*
-%{_libdir}/lib*.so.*
-%{_libdir}/lib*.la
 %{_libdir}/libakregatorprivate.so
 %{_libdir}/libkmailprivate.so
 %{_libdir}/libknodecommon.so
@@ -220,6 +247,13 @@
 %{_datadir}/servicetypes/*
 %{_docdir}/HTML/en/*
 
+%if 0%{?libs}
+%files libs
+%defattr(-,root,root,-)
+%endif
+%{_libdir}/lib*.so.*
+%{_libdir}/lib*.la
+
 %files devel
 %defattr(-,root,root,-)
 %{_includedir}/kde/*
@@ -230,6 +264,13 @@
 
 
 %changelog
+* Sun Oct 14 2007 Rex Dieter <rdieter[AT]fedoraproject.org> - 6:3.5.8-3.20071013.ent
+- -libs: %%post/%%postun /sbin/ldconfig
+- -libs conditional (f8+)
+
+* Sun Oct 14 2007 Rex Dieter <rdieter[AT]fedoraproject.org> - 6:3.5.8-2.20071013.ent
+- -libs subpkg (to be more multilib friendly)
+
 * Sat Oct 13 2007 Rex Dieter <rdieter[AT]fedoraproject.org> - 6:3.5.8-1.20071013.ent
 - kdepim-enterprise branch 20071013 snapshot (r724979)
 




More information about the fedora-extras-commits mailing list