Dominique Leuenberger 2016-08-06 18:36:45 +00:00 committed by Git OBS Bridge
commit cbcf293dfa
3 changed files with 95 additions and 0 deletions

82
inkscape-appdata.patch Normal file
View File

@ -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 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<component>
+ <id type="desktop">inkscape.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <_name>Inkscape SVG Vector Illustrator</_name>
+ <project_license>GPL-2.0 and LGPL-2.1</project_license>
+ <_summary>Create and edit Scalable Vector Graphics images</_summary>
+ <url type="homepage">http://www.inkscape.org/</url>
+ <description>
+ <_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>
+
+ <_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.</_p>
+ </description>
+ <screenshots>
+ <screenshot type="default">
+ <image height="1050" width="1680">https://media.inkscape.org/media/resources/file/Voronoi-and-dulaney.png</image>
+ <caption>The new (since version 0.91) Voronoi/Delaunay Triangulation plugin</caption>
+ </screenshot>
+ <screenshot>
+ <image height="1050" width="1680">https://media.inkscape.org/media/resources/file/inkscape-0.48-ferrari.png</image>
+ <caption>Illustration of a Ferrari by Gilles Pinard done by hand without any tracing</caption>
+ </screenshot>
+ <screenshot>
+ <image height="1050" width="1680">https://media.inkscape.org/media/resources/file/inkscape-0.48-blur.png</image>
+ <caption>Gaussian Blur filter using multi-threading processing</caption>
+ </screenshot>
+ </screenshots>
+ <update_contact>inkscape-devel@lists.sourceforge.net</update_contact>
+</component>

View File

@ -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 Fri Jun 24 10:45:25 UTC 2016 - zaitor@opensuse.org

View File

@ -33,6 +33,8 @@ Patch0: inkscape-remove-datetime.patch
Patch1: inkscape-packages.patch Patch1: inkscape-packages.patch
# PATCH-FIX-UPSTREAM inkscape-cache-fix.patch bnc#972343 aeszter@gwdg.de -- fix cache size # PATCH-FIX-UPSTREAM inkscape-cache-fix.patch bnc#972343 aeszter@gwdg.de -- fix cache size
Patch2: inkscape-cache-fix.patch 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: aspell-devel
BuildRequires: autoconf BuildRequires: autoconf
BuildRequires: automake BuildRequires: automake
@ -165,8 +167,10 @@ Inkscape is a vector illustration program for the GNOME desktop.
%patch0 -p1 %patch0 -p1
%patch1 -p1 %patch1 -p1
%patch2 -p1 %patch2 -p1
%patch3 -p1
%build %build
autoreconf
RPM_OPT_FLAGS="%{optflags}" RPM_OPT_FLAGS="%{optflags}"
%ifarch %{arm} %ifarch %{arm}
export LDFLAGS+="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads" export LDFLAGS+="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
@ -238,6 +242,8 @@ rm %{name}.man-lang.tmp
%{_bindir}/* %{_bindir}/*
%{_datadir}/applications/inkscape.desktop %{_datadir}/applications/inkscape.desktop
%{_datadir}/icons/hicolor/*/apps/inkscape.png %{_datadir}/icons/hicolor/*/apps/inkscape.png
%dir %{_datadir}/appdata
%{_datadir}/appdata/inkscape.appdata.xml
%dir %{_datadir}/inkscape %dir %{_datadir}/inkscape
%{_datadir}/inkscape/[cf-z]* %{_datadir}/inkscape/[cf-z]*
%{_datadir}/inkscape/examples %{_datadir}/inkscape/examples