Summary: Scalable vector graphics editor
Summary(pl.UTF-8): Edytor skalowalnej grafiki wektorowej
Name: inkscape
-Version: 1.0.1
-Release: 1
+Version: 1.2.2
+Release: 2
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.xz
-# Source0-md5: daefc5212b72e49eff41a7681fd5e993
+# Source0-md5: 490c40bbb3ce3441ceee88e61775bbf4
URL: https://inkscape.org/
%{!?with_imagick:BuildRequires: GraphicsMagick-c++-devel}
%{?with_imagick:BuildRequires: ImageMagick6-c++-devel < 7}
BuildRequires: glib2-devel >= 1:2.28
BuildRequires: glibmm-devel >= 2.28
BuildRequires: gsl-devel
+BuildRequires: gspell-devel >= 1.0
BuildRequires: gtk+3-devel >= 3.22
BuildRequires: gtkmm3-devel >= 3.22
-BuildRequires: gtkspell3-devel >= 3.0
BuildRequires: harfbuzz-devel
BuildRequires: lcms2-devel >= 2
+BuildRequires: lib2geom-devel >= 1.1
BuildRequires: libcdr-devel >= 0.1
BuildRequires: libexif-devel
BuildRequires: libgomp-devel
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel >= 1.2
BuildRequires: librevenge-devel
-BuildRequires: libsoup-devel >= 2.42
BuildRequires: libsigc++-devel >= 2.0.17
+BuildRequires: libsoup-devel >= 2.42
BuildRequires: libstdc++-devel >= 6:4.7
BuildRequires: libvisio-devel >= 0.1
BuildRequires: libwpd-devel >= 0.9
Group: Applications/Shells
Requires: %{name} = %{version}-%{release}
Requires: bash-completion >= 2.0
-%{?noarchpackage}
+BuildArch: noarch
%description -n bash-completion-inkscape
Bash completion for inkscape arguments.
Bashowe dopełnianie argumentów programu inkscape.
%prep
-%setup -q -n %{name}-%{version}_2020-09-07_3bc2e813f5
-
-%{__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 \
- 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+perl(\s|$),#!%{__perl}\1,' \
- share/attributes/genMapDataCSS.pl \
- share/attributes/genMapDataSVG.pl
+%setup -q -n %{name}-%{version}_2022-12-01_b0a8486541
+
+# python3-only
+%{__sed} -i -e '1s,/usr/bin/env python3,%{__python3},' \
+ CMakeScripts/cmake_consistency_check.py \
+ buildtools/check_license_headers.py \
+ share/extensions/*.py \
+ share/extensions/tests/add_pylint.py \
+ share/*/i18n.py
+
+# look python2/3 compatible
+%{__sed} -i -e '1s,/usr/bin/env python$,%{__python3},' \
+ buildtools/msys2checkdeps.py \
+ share/extensions/*.py \
+ share/extensions/inkex/tester/inx.py \
+ share/extensions/tests/test_*.py \
+
+# python2-only
+%{__sed} -i -e '1s,/usr/bin/python$,%{__python},' \
+ packaging/scripts/lp-mark-bugs-released
+
+%{__sed} -i -e '1s,/usr/bin/env perl$,%{__perl},' \
+ share/attributes/genMapDataCSS.pl \
+ share/attributes/genMapDataSVG.pl
%build
mkdir -p build
# unsupported variants
%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{kok@latin,mni@beng,sat@deva}
-%{__rm} $RPM_BUILD_ROOT%{_datadir}/inkscape/extensions/{.pylintrc,LICENSE.txt,MANIFEST.in,README.md,STYLEGUIDE.md,doxygen-main.dox,setup.cfg,setup.py,tox.ini}
+%{__rm} $RPM_BUILD_ROOT%{_datadir}/inkscape/extensions/{.darglint,.pre-commit-config.yaml,.pylintrc,CONTRIBUTING.md,LICENSE.txt,MANIFEST.in,README.md,TESTING.md,doxygen-main.dox,poetry.lock,pyproject.toml,tox.ini}
+%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/inkscape/extensions/docs
%find_lang %{name}
%{_datadir}/inkscape/extensions/barcode
%{_datadir}/inkscape/extensions/ink2canvas_lib
%{_datadir}/inkscape/extensions/inkex
+%{_datadir}/inkscape/extensions/inkman
+%{_datadir}/inkscape/extensions/other
%{_datadir}/inkscape/extensions/svg_fonts
%{_datadir}/inkscape/extensions/tools
%{_datadir}/inkscape/extensions/xaml2svg
%{_datadir}/inkscape/extensions/*.xslt
%{_datadir}/inkscape/extensions/fontfix.conf
%{_datadir}/inkscape/extensions/inkscape.extension.rng
+%{_datadir}/inkscape/extensions/inkscape.extension.schema
%{_datadir}/metainfo/org.inkscape.Inkscape.appdata.xml
%{_iconsdir}/hicolor/*/apps/org.inkscape.Inkscape.png
+%{_iconsdir}/hicolor/scalable/apps/org.inkscape.Inkscape.svg
+%{_iconsdir}/hicolor/symbolic/apps/org.inkscape.Inkscape-symbolic.svg
%{_desktopdir}/org.inkscape.Inkscape.desktop
%{_mandir}/man1/inkscape.1*
%{_mandir}/man1/inkview.1*
%lang(fr) %{_mandir}/fr/man1/inkscape.1*
%lang(hr) %{_mandir}/hr/man1/inkscape.1*
%lang(hu) %{_mandir}/hu/man1/inkscape.1*
+%lang(zh_TW) %{_mandir}/zh_TW/man1/inkscape.1*
%lang(de) %{_mandir}/de/man1/inkview.1*
%lang(es) %{_mandir}/es/man1/inkview.1*
%lang(fr) %{_mandir}/fr/man1/inkview.1*
%lang(hr) %{_mandir}/hr/man1/inkview.1*
%lang(hu) %{_mandir}/hu/man1/inkview.1*
%lang(pt_BR) %{_mandir}/pt_BR/man1/inkview.1*
+%lang(zh_TW) %{_mandir}/zh_TW/man1/inkview.1*
%files -n bash-completion-inkscape
%defattr(644,root,root,755)