[kmouth] cleanup, source0 snippet

Rex Dieter rdieter at fedoraproject.org
Tue Jan 24 14:03:06 UTC 2012


commit 75a8e39f756c515d8137b057f3efff851d3a1013
Author: Rex Dieter <rdieter at fedoraproject.org>
Date:   Tue Jan 24 08:02:47 2012 -0600

    cleanup, source0 snippet

 .gitignore  |    3 ---
 kmouth.spec |   31 +++++++++++++------------------
 2 files changed, 13 insertions(+), 21 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index f07628a..707de0a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1 @@
-/kmouth-4.7.90.tar.bz2
-/kmouth-4.7.95.tar.bz2
-/kmouth-4.7.97.tar.bz2
 /kmouth-4.8.0.tar.bz2
diff --git a/kmouth.spec b/kmouth.spec
index 8d2b90f..c8dd6b7 100644
--- a/kmouth.spec
+++ b/kmouth.spec
@@ -1,20 +1,24 @@
-Name:           kmouth
+Name:    kmouth
 Version: 4.8.0
 Release: 1%{?dist}
-Summary:        A program that speaks for you 
-
-License:        GPLv2+
-URL:            http://accessibility.kde.org/
-Source0:        ftp://ftp.kde.org/pub/kde/unstable/4.7.90/src/kmouth-%{version}.tar.bz2
+Summary: A program that speaks for you 
+
+License: GPLv2+
+URL:     http://accessibility.kde.org/
+%global revision %(echo %{version} | cut -d. -f3)
+%if %{revision} >= 50
+%global stable unstable
+%else
+%global stable stable
+%endif
+Source0: http://download.kde.org/%{stable}/%{version}/src/%{name}-%{version}.tar.bz2
 
 BuildRequires:  desktop-file-utils
 BuildRequires:  kdelibs4-devel >= %{version}
 
-
 # when split occured
 Conflicts: kdeaccessibility < 1:4.7.80
 
-
 %description
 Program that allows people who have lost their voice to let their
 computer speak for them.
@@ -36,15 +40,6 @@ make %{?_smp_mflags} -C %{_target_platform}
 %install
 make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
 
-# hack around HTML doc multilib conflicts
-# HTML docs are no longer multilib'd, but meh.  -- Rex
-# is this still needed then??? -- Jaroslav
-pushd %{buildroot}%{_kde4_docdir}/HTML/en/kmouth
-bunzip2 index.cache.bz2
-sed -i -e 's!<a name="id[0-9]*"></a>!!g' index.cache
-bzip2 -9 index.cache
-popd
-
 
 %check
 desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/kmouth.desktop
@@ -62,7 +57,6 @@ fi
 %posttrans
 gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null || :
 
-
 %files
 %doc AUTHORS COPYING COPYING.DOC
 %{_kde4_bindir}/kmouth
@@ -73,6 +67,7 @@ gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null || :
 %{_kde4_iconsdir}/hicolor/*/*/*
 %{_mandir}/man1/*.1*
 
+
 %changelog
 * Sun Jan 22 2012 Rex Dieter <rdieter at fedoraproject.org> - 4.8.0-1
 - 4.8.0


More information about the scm-commits mailing list