[kmahjongg] import

Rex Dieter rdieter at fedoraproject.org
Mon Feb 18 14:07:27 UTC 2013


commit fd7252f2298858e708dc50d261ac18cf40a38394
Author: Rex Dieter <rdieter at math.unl.edu>
Date:   Mon Feb 18 08:07:04 2013 -0600

    import

 .gitignore     |    1 +
 kmahjongg.spec |   82 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources        |    1 +
 3 files changed, 84 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5f5bdd0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/kmahjongg-4.10.0.tar.xz
diff --git a/kmahjongg.spec b/kmahjongg.spec
new file mode 100644
index 0000000..e4d4d79
--- /dev/null
+++ b/kmahjongg.spec
@@ -0,0 +1,82 @@
+
+Name:    kmahjongg
+Summary: A tile matching game
+Version: 4.10.0
+Release: 2%{?dist}
+
+License: GPLv2+ and GFDL
+URL:     https://projects.kde.org/projects/kde/kdegames/%{name}
+%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
+
+BuildRequires: desktop-file-utils
+BuildRequires: libkdegames-devel >= %{_kde4_version}
+BuildRequires: libkmahjongg-devel >= %{version}
+
+Requires: libkdegames%{?_isa} >= %{_kde4_version}
+Requires: libkmahjongg%{?_isa} >= %{_kde4_version}
+
+%description
+KMahjongg is a tile matching game for one or two players, a variation
+usually known as Mahjong Solitaire.  In KMahjongg the tiles are scrambled
+and stacked on top of each other to resemble a certain shape. The player
+is then expected to remove all the tiles off the game board by locating
+each tile's matching pair.
+
+
+%prep
+%setup -q
+
+
+%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} --with-kde
+
+
+%check
+desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/%{name}.desktop
+
+
+%post
+touch --no-create %{_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
+
+%posttrans
+gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null || :
+
+%files -f %{name}.lang
+%doc COPYING*
+%{_kde4_bindir}/%{name}
+%{_kde4_datadir}/applications/kde4/%{name}.desktop
+%{_kde4_configdir}.kcfg/%{name}.kcfg
+%{_kde4_iconsdir}/hicolor/*/*/*
+%{_kde4_appsdir}/%{name}/
+
+
+%changelog
+* Fri Feb 15 2013 Rex Dieter <rdieter at fedoraproject.org> 4.10.0-2
+- update licence, description
+
+* Thu Feb 07 2013 Rex Dieter <rdieter at fedoraproject.org> 4.10.0-1
+- first try
+
diff --git a/sources b/sources
index e69de29..fc66e3f 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+dfed743cfc6bf49289437b282511162f  kmahjongg-4.10.0.tar.xz


More information about the scm-commits mailing list