[kteatime] Initial push

Martin Briza mbriza at fedoraproject.org
Tue Aug 27 15:33:24 UTC 2013


commit cb8646ca817de39d0f8b66f3ca4b05deff2ef0c2
Author: Martin Briza <mbriza at redhat.com>
Date:   Tue Aug 27 17:33:05 2013 +0200

    Initial push

 .gitignore    |    1 +
 kteatime.spec |   69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources       |    1 +
 3 files changed, 71 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c336497 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/kteatime-4.11.0.tar.xz
diff --git a/kteatime.spec b/kteatime.spec
new file mode 100644
index 0000000..ea66a4a
--- /dev/null
+++ b/kteatime.spec
@@ -0,0 +1,69 @@
+Name:    kteatime
+Summary: Handy timer for steeping tea
+Version: 4.11.0
+Release: 1%{?dist}
+
+License: GPLv2+
+URL:     https://projects.kde.org/projects/kde/kdetoys/amor
+%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.xz
+
+Requires: kde-runtime%{?_kde4_version: >= %{_kde4_version}}
+
+Conflicts:      kdetoys < 7:4.10.80
+Obsoletes:      kdetoys < 7:4.10.80
+
+%description
+KTeaTime makes sure your tea does not get too strong.
+
+%prep
+%setup -q -n %{name}-%{version}
+
+
+%build
+mkdir -p %{_target_platform}
+pushd %{_target_platform}
+%{cmake_kde4} ..
+popd
+
+make %{?_smp_mflags} -C %{_target_platform}
+
+
+%install
+make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
+
+%find_lang %{name} --all-name --with-kde --without-mo
+
+%check
+desktop-file-validate %{buildroot}/%{_kde4_datadir}/applications/kde4/%{name}.desktop
+
+
+%post
+touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null ||:
+
+%posttrans
+gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null ||:
+
+%postun
+if [ $1 -eq 0 ] ; then
+  touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null ||:
+  gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null ||:
+fi
+
+
+%files -f %{name}.lang
+%doc COPYING COPYING.DOC
+%{_kde4_bindir}/kteatime
+%{_kde4_appsdir}/kteatime/
+%{_kde4_datadir}/applications/kde4/kteatime.desktop
+%{_kde4_iconsdir}/hicolor/*/*/kteatime.*
+
+
+%changelog
+* Tue Aug 27 2013 Martin Briza <mbriza at redhat.com> - 4.11.0-1
+- Split off from kdetoys package
diff --git a/sources b/sources
index e69de29..1f00ee1 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+409b244ba3f600cd8c3198f0951dfe56  kteatime-4.11.0.tar.xz


More information about the scm-commits mailing list