]> git.pld-linux.org Git - packages/inkscape.git/blobdiff - inkscape.spec
- fix shebangs
[packages/inkscape.git] / inkscape.spec
index 038f029993239d4405e3f011f62fb181171325fc..7a9fe7f5a12ca0eba7315b2f613363dd682d0abd 100644 (file)
@@ -9,16 +9,21 @@
 Summary:       Scalable vector graphics editor
 Summary(pl.UTF-8):     Edytor skalowalnej grafiki wektorowej
 Name:          inkscape
-Version:       0.92.3
+Version:       0.92.4
 Release:       1
 License:       GPL v2+, LGPL v2.1+
 Group:         X11/Applications/Graphics
+# download: follow https://inkscape.org/release/
 Source0:       https://media.inkscape.org/dl/resources/file/%{name}-%{version}.tar.bz2
-# Source0-md5: 4ef7171cc1de9e1608d8c49b77fed99e
+# Source0-md5: ac30f6d5747fd9c620c00dad500f414f
 Patch0:                %{name}-man.patch
 Patch1:                %{name}-gtk3.patch
-Patch2:                %{name}-poppler.patch
-URL:           http://www.inkscape.org/
+# https://gitlab.com/inkscape/inkscape/commit/e831b034746f8dc3c3c1b88372751f6dcb974831.patch
+Patch2:                %{name}-poppler0.76.patch
+# https://gitlab.com/inkscape/inkscape/merge_requests/986.patch
+Patch3:                %{name}-poppler0.82.patch
+Patch4:                %{name}-poppler0.83.patch
+URL:           https://inkscape.org/
 BuildRequires: ImageMagick-c++-devel
 BuildRequires: aspell-devel
 BuildRequires: autoconf >= 2.64
@@ -108,9 +113,29 @@ dwuwymiarowej grafiki wektorowej.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
+%patch4 -p1
 
 %{__sed} -i -e 's,po/Makefile.in,,' configure.ac
 
+
+%{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+python2(\s|$),#!%{__python}\1,' -e '1s,#!\s*/usr/bin/env\s+python(\s|$),#!%{__python}\1,' -e '1s,#!\s*/usr/bin/python(\s|$),#!%{__python}\1,' \
+      CMakeScripts/cmake_consistency_check.py \
+      buildtools/msys2checkdeps.py \
+      cxxtest/cxxtestgen.py \
+      packaging/scripts/lp-mark-bugs-released \
+      packaging/wix/*.py \
+      share/extensions/*.py \
+      share/extensions/*/*.py \
+      share/*/i18n.py
+
+%{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+ruby(\s|$),#!%{__ruby}\1,' \
+      share/extensions/*.rb
+
+%{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+perl(\s|$),#!%{__perl}\1,' \
+      share/attributes/genMapDataCSS.pl \
+      share/attributes/genMapDataSVG.pl
+
 %build
 %{__libtoolize}
 %{__gettextize}
@@ -119,11 +144,13 @@ dwuwymiarowej grafiki wektorowej.
 %{__autoconf}
 %{__autoheader}
 %{__automake}
+# deprecated TimeVal API is used, so --disable-strict-build is needed
 %configure \
        %{?with_relocation:--enable-binreloc} \
        %{?with_dbus:--enable-dbusapi} \
        %{?with_gtk3:--enable-gtk3-experimental} \
        --disable-silent-rules \
+       --disable-strict-build \
        %{!?with_gnomevfs:--without-gnome-vfs}
 
 %{__make}
This page took 0.105396 seconds and 4 git commands to generate.