[kde-partitionmanager] New svn version

mattia mattia at fedoraproject.org
Fri Jan 6 16:02:45 UTC 2012


commit 9e84c316f2e9476870e0991c4434d528862ab36d
Author: Mattia Verga <mattia.verga at tiscali.it>
Date:   Fri Jan 6 17:00:42 2012 +0100

    New svn version

 .gitignore                |    1 +
 kde-partitionmanager.spec |   82 +++++++++++++++++++++++++++------------------
 kdepm-generate-tarball.sh |   22 ++++++++++++
 sources                   |    2 +-
 4 files changed, 73 insertions(+), 34 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index f0da7e6..ec2df4a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 89595-partitionmanager-1.0.2.tar.bz2
 /89595-partitionmanager-1.0.3.tar.gz
+/kde-partitionmanager-1.0.3-20111223svn.tar.gz
diff --git a/kde-partitionmanager.spec b/kde-partitionmanager.spec
index d1e485a..59f7f82 100644
--- a/kde-partitionmanager.spec
+++ b/kde-partitionmanager.spec
@@ -1,24 +1,20 @@
-## Renamed due to the too generic name of the application
-
-Name:		kde-partitionmanager
-Version:	1.0.3
-Release:	3%{?dist}
-Summary:	KDE Partition Manager
-
-Group:		Applications/System
-License:	GPLv2+
-URL:		http://www.kde-apps.org/content/show.php/KDE+Partition+Manager?content=89595
-Source0:	http://www.kde-apps.org/CONTENT/content-files/89595-partitionmanager-%{version}.tar.gz
-BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-# upstreamable patches
-
-BuildRequires:	parted-devel, e2fsprogs-devel, pkgconfig, gettext, kdelibs4-devel, cmake
-%if 0%{?fedora} >= 12
-BuildRequires:	libuuid-devel libblkid-devel
-%endif
-Requires:	parted, e2fsprogs
-
+%global svn_date 20111223
+
+Name:           kde-partitionmanager
+Version:        1.0.3
+Release:        5.%{svn_date}svn%{?dist}
+Summary:        KDE Partition Manager
+
+Group:          Applications/System
+License:        GPLv2+
+URL:            http://www.kde.org/applications/system/kdepartitionmanager/
+Source0:        %{name}-%{version}-%{svn_date}svn.tar.gz
+Source1:        kdepm-generate-tarball.sh
+# Source built using the following commands : sh kdepm-generate-tarball.sh 20111223
+
+BuildRequires:  parted-devel, libblkid-devel, libatasmart-devel, kdelibs4-devel, gettext, cmake, desktop-file-utils
+Requires:       parted, e2fsprogs
+# Require kde-filesystem
 %{?_kde4_macros_api:Requires: kde4-macros(api) = %{_kde4_macros_api} }
 
 %description
@@ -33,13 +29,14 @@ It makes use of external programs to get its job done, so you might have to
 install additional software (preferably packages from your distribution) 
 to make use of all features and get full support for all file systems.
 
+
 %prep
-%setup -q -n partitionmanager-%{version}
+%setup -q
 ## Due to the name change
 mv src/partitionmanager.desktop src/kde-partitionmanager.desktop
-mv src/kcm/kcm_partitionmanager.desktop src/kcm/kcm_kde-partitionmanager.desktop
 sed -i 's,partitionmanager.desktop,kde-partitionmanager.desktop,' src/CMakeLists.txt
 
+
 %build
 mkdir -p %{_target_platform}
 pushd %{_target_platform}
@@ -48,31 +45,51 @@ popd
 
 make %{?_smp_mflags} -C %{_target_platform}
 
+
 %install
 rm -rf %{buildroot}
 make install/fast -C %{_target_platform} DESTDIR=%{buildroot}
-%find_lang partitionmanager --with-kde
+# %%find_lang partitionmanager --with-kde
 
+# Validate .desktop file
 desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/%{name}.desktop
 
-%clean
-rm -rf %{buildroot}
 
-%files -f partitionmanager.lang
+%post
+/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
+%postun
+if [ $1 -eq 0 ] ; then
+    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
+%posttrans
+/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
+
+# %%files -f partitionmanager.lang
+%files
 %defattr(-,root,root,-)
 %doc README COPYING CHANGES
 %{_kde4_bindir}/partitionmanager*
-## %{_kde4_libdir}/kde4/*.so
 %{_kde4_libdir}/*.so
+%{_kde4_libdir}/kde4/*.so
 %{_kde4_datadir}/applications/kde4/%{name}.desktop
+%{_kde4_datadir}/kde4/services/*.desktop
+%{_kde4_datadir}/kde4/servicetypes/*.desktop
 %{_kde4_iconsdir}/hicolor/*/*/*.png
 %{_kde4_datadir}/kde4/apps/partitionmanager
-## %{_kde4_datadir}/kde4/services/kcm_kde-partitionmanager.desktop
-
 
 %changelog
-* Mon Oct 03 2011 Rex Dieter <rdieter at fedoraproject.org> 1.0.3-3
-- rebuild (parted)
+* Tue Dec 27 2011 Mattia Verga <mattia.verga at tiscali.it> - 1.0.3-5.20111223svn
+- Added kde-filesystem to Requires
+- Added icon cache refresh at installation/uninstallation
+
+* Fri Dec 23 2011 Mattia Verga <mattia.verga at tiscali.it> - 1.0.3-4.20111223svn
+- Upgrade to svn 2011-12-22
+- Fix bug #757661
+- Removed language detection, no translations in svn
 
 * Mon Feb 07 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.3-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
@@ -98,4 +115,3 @@ rm -rf %{buildroot}
 
 * Wed Nov 18 2009 Thomas Janssen <thomasj at fedoraproject.org> 1.0.0-1
 - Initial Fedora release
-
diff --git a/kdepm-generate-tarball.sh b/kdepm-generate-tarball.sh
new file mode 100644
index 0000000..27b553f
--- /dev/null
+++ b/kdepm-generate-tarball.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+if [ $# -ne 1 ]
+then
+  echo Usage : ./kdepm-generate-tarball.sh SVN_DATE
+  exit 1
+fi
+
+NAME_VERSION=kde-partitionmanager-1.0.3
+SVN_DATE=$1
+
+# Remove old sources if exist
+rm -R --force ${NAME_VERSION}
+
+# Checkout svn trunk
+svn -r {${SVN_DATE}} export svn://anonsvn.kde.org/home/kde/trunk/extragear/sysadmin/partitionmanager/ ${NAME_VERSION}
+
+# Create source tarball
+tar zcvf ${NAME_VERSION}-${SVN_DATE}svn.tar.gz ${NAME_VERSION}
+
+# Delete temporary directories
+rm -R --force ${NAME_VERSION}
diff --git a/sources b/sources
index 7c6e79b..086864e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-6e84d5bb8653d8899b145b36927ced6b  89595-partitionmanager-1.0.3.tar.gz
+d5572e9876f375a9e0851f14f8da07db  kde-partitionmanager-1.0.3-20111223svn.tar.gz


More information about the scm-commits mailing list