[kxstitch/f13/master] Initial import (#646139)

Golo Fuchert golfu at fedoraproject.org
Mon Dec 6 21:47:47 UTC 2010


commit d21f019ff79a3fb63c405bacf104dcf767866bba
Author: Golo Fuchert <packages at golotop.de>
Date:   Fri Dec 3 20:18:52 2010 +0100

    Initial import (#646139)

 .gitignore    |    1 +
 kxstitch.spec |  131 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 kxstitch.xml  |   12 +++++
 sources       |    1 +
 4 files changed, 145 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..777e1c9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/kxstitch-0.8.4.1.tar.gz
diff --git a/kxstitch.spec b/kxstitch.spec
new file mode 100644
index 0000000..cc27779
--- /dev/null
+++ b/kxstitch.spec
@@ -0,0 +1,131 @@
+Name: kxstitch
+Summary: Program to create cross stitch patterns
+Version: 0.8.4.1
+Release: 5%{?dist}
+License: GPLv2+
+Group: Amusements/Graphics
+URL: http://sourceforge.net/apps/mediawiki/kxstitch/index.php
+Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+# Upstream still uses the mime type database for KDE 3. The needed xml file for
+# gnome and KDE 4 was sent upstream via email 20101016; upstream is working on
+# a KDE 4 version of KXStitch. However, right now the xml file has to be
+# provided externally.
+Source1: %{name}.xml
+
+BuildRequires: kdelibs3-devel
+BuildRequires: ImageMagick-c++-devel
+BuildRequires: libXtst-devel
+BuildRequires: libpng-devel
+BuildRequires: gettext
+BuildRequires: desktop-file-utils
+
+%description
+KXStitch can be used to create cross stitch patterns from scratch. It is also
+possible to convert existing images to a cross stitch pattern or scan one with 
+a Sane supported scanner.
+
+%prep
+%setup -q
+
+%build
+%configure --disable-rpath
+make %{?_smp_mflags}
+
+# This matches more or less the upstream .desktop file but makes it compliant
+# to the recent freedesktop standard. Sent upstream via email 20101016.
+cat >%{name}.desktop <<EOF
+[Desktop Entry]
+Type=Application
+Exec=kxstitch -caption "%c" %i
+Icon=kxstitch
+DocPath=kxstitch/index.html
+MimeType=application/kxstitch;
+Comment=
+Comment[de]=
+Terminal=false
+Name=KXStitch
+Name[de]=KXStitch
+Name[ru]=KXStitch
+GenericName=Cross-stitch pattern editor
+GenericName[de]=Stickmuster Editor
+GenericName[ru]=Редактор узоров для вышивания крестиком
+EOF
+
+%install
+make install DESTDIR=%{buildroot}
+
+# replace "old style" mime type definition by new xml file, see comment above
+# for details
+mkdir -m755 -p %{buildroot}%{_datadir}/mime/packages
+install -p -m644 %{SOURCE1} %{buildroot}%{_datadir}/mime/packages/
+rm %{buildroot}/%{_datadir}/mimelnk/application/%{name}.desktop
+
+# we created a new .desktop file
+rm -r %{buildroot}%{_datadir}/applnk/Graphics
+mkdir -m755 -p %{buildroot}%{_datadir}/applications
+install -p -m644 %{name}.desktop %{buildroot}%{_datadir}/applications/
+desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
+
+# Upstream received an utf-8 version of the man page 20101016 and seems to be
+# willing to include it soon.
+gunzip %{buildroot}%{_mandir}/man1/kxstitch.1.gz
+iconv --from=ISO-8859-1 --to=UTF-8 %{buildroot}%{_mandir}/man1/kxstitch.1 > %{buildroot}%{_mandir}/man1/kxstitch.1.new
+mv %{buildroot}%{_mandir}/man1/kxstitch.1.new %{buildroot}%{_mandir}/man1/kxstitch.1
+
+%find_lang %{name}
+
+%post
+update-desktop-database &> /dev/null || :
+update-mime-database %{_datadir}/mime &> /dev/null || :
+touch --no-create %{_datadir}/icons/{hicolor,locolor} &>/dev/null || :
+
+%postun
+update-desktop-database &> /dev/null || :
+update-mime-database %{_datadir}/mime &> /dev/null || :
+if [ $1 -eq 0 ] ; then
+    touch --no-create %{_datadir}/icons/{hicolor,locolor} &>/dev/null
+    gtk-update-icon-cache %{_datadir}/icons/{hicolor,locolor} &>/dev/null || :
+fi
+
+%posttrans
+gtk-update-icon-cache %{_datadir}/icons/{hicolor,locolor} &>/dev/null || :
+
+%files -f %{name}.lang
+%defattr(-,root,root,-)
+
+%{_bindir}/%{name}
+%{_datadir}/applications/%{name}.desktop
+%{_datadir}/mime/packages/%{name}.xml
+%{_datadir}/apps/%{name}/
+%{_datadir}/config.kcfg/*
+%{_datadir}/icons/hicolor/32x32/apps/*
+%{_datadir}/icons/locolor/16x16/apps/*
+%{_datadir}/icons/locolor/32x32/apps/*
+%{_mandir}/man1/%{name}.1*
+%{_kde4_docdir}/HTML/en/%{name}/
+%{_kde4_docdir}/HTML/nl/%{name}/
+%doc AUTHORS ChangeLog COPYING README TODO
+
+%changelog
+* Wed Nov 24 2010 Golo Fuchert <packages at golotop.de> - 0.8.4.1-5
+- changed _defaultdocdir to _kde4_docdir
+- instead of using sed on the faulty desktopfile, a new one is installed with a heredoc
+- used name macro in the files list
+
+* Mon Nov 08 2010 Golo Fuchert <packages at golotop.de> - 0.8.4.1-4
+- Minor changes to summary and description
+
+* Sat Nov 06 2010 Golo Fuchert <packages at golotop.de> - 0.8.4.1-3
+- Made summary section more concise
+- Dropped manual compression of manpage
+- Removed BR qt3-devel, ImageMagick-devel, libjpeg-devel, kernel-headers
+- Made the source URL compliant to the Packaging Guidelines
+- Included updating of the GTK icon cache
+- Made use of the SOURCE1 macro
+- No inclusion of the upstream INSTALL instructions
+
+* Wed Oct 27 2010 Golo Fuchert <packages at golotop.de> - 0.8.4.1-2
+- Corrected the files section (folders were not owned correctly)
+
+* Fri Oct 01 2010 Golo Fuchert <packages at golotop.de> - 0.8.4.1-1
+- Initial packaging
diff --git a/kxstitch.xml b/kxstitch.xml
new file mode 100644
index 0000000..24bb13b
--- /dev/null
+++ b/kxstitch.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+	<mime-type type="application/kxstitch">
+		<comment>KXStitch pattern</comment>
+		<comment xml:lang="de">KXStitch Muster</comment>
+		<comment xml:lang="ru">Узор KXStitch</comment>
+		<icon name="kxstitch"/>
+		<glob-deleteall/>
+		<glob pattern="*.KXS"/>
+		<glob pattern="*.kxs"/>
+	</mime-type>
+</mime-info>
diff --git a/sources b/sources
index e69de29..3d135f0 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+7feeafd526a4ea2a563a8f183fbfd12e  kxstitch-0.8.4.1.tar.gz


More information about the scm-commits mailing list