diff --git a/inkscape-appdata.patch b/inkscape-appdata.patch new file mode 100644 index 0000000..673c2e7 --- /dev/null +++ b/inkscape-appdata.patch @@ -0,0 +1,82 @@ +Index: inkscape-0.91/Makefile.am +=================================================================== +--- inkscape-0.91.orig/Makefile.am ++++ inkscape-0.91/Makefile.am +@@ -11,6 +11,11 @@ Graphics_in_files = inkscape.desktop.in + Graphics_DATA = $(Graphics_in_files:.desktop.in=.desktop) + @INTLTOOL_DESKTOP_RULE@ + ++Metainfodir = $(datadir)/appdata ++Metainfo_in_files = inkscape.appdata.xml.in ++Metainfo_DATA = $(Metainfo_in_files:.appdata.xml.in=.appdata.xml) ++@INTLTOOL_XML_RULE@ ++ + ## dist-hook: + ## mkdir $(distdir)/samples + ## cp $(srcdir)/samples/*svg $(distdir)/samples +@@ -32,6 +37,7 @@ man_MANS = \ + EXTRA_DIST = \ + acinclude.m4 \ + fix-roff-punct \ ++ inkscape.appdata.xml.in \ + intltool-extract.in \ + intltool-merge.in \ + intltool-update.in \ +Index: inkscape-0.91/po/POTFILES.in +=================================================================== +--- inkscape-0.91.orig/po/POTFILES.in ++++ inkscape-0.91/po/POTFILES.in +@@ -2,6 +2,7 @@ + # Please keep this file sorted alphabetically. + # Generated by ./generate_POTFILES.sh at Thu Apr 10 00:15:41 CEST 2014 + [encoding: UTF-8] ++inkscape.appdata.xml.in + inkscape.desktop.in + share/filters/filters.svg.h + share/palettes/palettes.h +Index: inkscape-0.91/inkscape.appdata.xml.in +=================================================================== +--- /dev/null ++++ inkscape-0.91/inkscape.appdata.xml.in +@@ -0,0 +1,41 @@ ++ ++ ++ inkscape.desktop ++ CC0-1.0 ++ <_name>Inkscape SVG Vector Illustrator ++ GPL-2.0 and LGPL-2.1 ++ <_summary>Create and edit Scalable Vector Graphics images ++ http://www.inkscape.org/ ++ ++ <_p>Inkscape is an open source drawing tool with capabilities similar to ++Illustrator, Freehand, and CorelDraw that uses the W3C standard scalable ++vector graphics format (SVG). Some supported SVG features include ++basic shapes, paths, text, markers, clones, alpha blending, transforms, ++gradients, and grouping. In addition, Inkscape supports Creative Commons ++meta-data, node-editing, layers, complex path operations, text-on-path, ++and SVG XML editing. It also imports several formats like EPS, Postscript, ++JPEG, PNG, BMP, and TIFF and exports PNG as well as multiple vector-based ++formats. ++ ++ <_p>Inkscape's main motivations are to provide the Open Source community ++with a fully W3C compliant XML, SVG, and CSS2 drawing tool emphasizing a ++lightweight core with powerful features added as extensions, and the ++establishment of a friendly, open, community-oriented development ++processes. ++ ++ ++ ++ https://media.inkscape.org/media/resources/file/Voronoi-and-dulaney.png ++ The new (since version 0.91) Voronoi/Delaunay Triangulation plugin ++ ++ ++ https://media.inkscape.org/media/resources/file/inkscape-0.48-ferrari.png ++ Illustration of a Ferrari by Gilles Pinard done by hand without any tracing ++ ++ ++ https://media.inkscape.org/media/resources/file/inkscape-0.48-blur.png ++ Gaussian Blur filter using multi-threading processing ++ ++ ++ inkscape-devel@lists.sourceforge.net ++ diff --git a/inkscape.changes b/inkscape.changes index 7ea44dc..9444b6a 100644 --- a/inkscape.changes +++ b/inkscape.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Jul 26 07:00:52 UTC 2016 - badshah400@gmail.com + +- Add inkscape-appdata.patch to install a translated appdata file; + patch touches autotools build files, run autoreconf before + configure. + ------------------------------------------------------------------- Fri Jun 24 10:45:25 UTC 2016 - zaitor@opensuse.org diff --git a/inkscape.spec b/inkscape.spec index 7576053..b99b1ea 100644 --- a/inkscape.spec +++ b/inkscape.spec @@ -33,6 +33,8 @@ Patch0: inkscape-remove-datetime.patch Patch1: inkscape-packages.patch # PATCH-FIX-UPSTREAM inkscape-cache-fix.patch bnc#972343 aeszter@gwdg.de -- fix cache size Patch2: inkscape-cache-fix.patch +# PATCH-FIX-UPSTREAM inkscape-appdata.patch badshah400@gmail.com -- Add, translate and install appdata for inkscape, patch sent upstream +Patch3: inkscape-appdata.patch BuildRequires: aspell-devel BuildRequires: autoconf BuildRequires: automake @@ -165,8 +167,10 @@ Inkscape is a vector illustration program for the GNOME desktop. %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 %build +autoreconf RPM_OPT_FLAGS="%{optflags}" %ifarch %{arm} export LDFLAGS+="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads" @@ -238,6 +242,8 @@ rm %{name}.man-lang.tmp %{_bindir}/* %{_datadir}/applications/inkscape.desktop %{_datadir}/icons/hicolor/*/apps/inkscape.png +%dir %{_datadir}/appdata +%{_datadir}/appdata/inkscape.appdata.xml %dir %{_datadir}/inkscape %{_datadir}/inkscape/[cf-z]* %{_datadir}/inkscape/examples