X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=inkscape.spec;h=cdedfded16001f1563552cffae230565dc3c1e09;hb=dab787ec65b6a70d8fef990c31b41aae60385d2b;hp=c2436e6bb7cd616a5e263fdf7d37663d8179fb08;hpb=cd1c46ef35361f633b310ae1b7a697ee5b634321;p=packages%2Finkscape.git diff --git a/inkscape.spec b/inkscape.spec index c2436e6..cdedfde 100644 --- a/inkscape.spec +++ b/inkscape.spec @@ -1,67 +1,86 @@ # -# TODO: check why build requires libselinux-devel (because of some gnome* stuff) -# # Conditional build -%bcond_without xft # Don't use xft scalable font database -%bcond_without gnomeprint # Don't use gnome print font database and spooler frontend -%bcond_without gnomevfs # Don't use gnome vfs for loading files -%bcond_without mmx # Force building without MMX optimazation (Default: auto-detect) -%bcond_with inkboard # Enable inkboard support +%bcond_with dbus # DBus interface %bcond_with relocation # Enable binary relocation support +%bcond_with imagick # ImageMagick 6.x instead of GraphicsMagick # + Summary: Scalable vector graphics editor Summary(pl.UTF-8): Edytor skalowalnej grafiki wektorowej Name: inkscape -Version: 0.46 -Release: 8 -License: GPL v2, LGPL v2.1 -Group: Applications/Graphics -Source0: http://dl.sourceforge.net/inkscape/%{name}-%{version}.tar.gz -# Source0-md5: 3bae9034047379012127e52f9b138d32 -Patch0: %{name}-desktop.patch -Patch1: %{name}-poppler.patch -Patch2: %{name}-gcc43.patch -Patch3: %{name}-gtk2.patch -Patch4: %{name}-slider.patch -Patch5: %{name}-gcc44.patch -Patch6: %{name}-early-png-header.patch -Patch7: %{name}-gchar.patch -Patch8: %{name}-install.patch -URL: http://www.inkscape.org/ -BuildRequires: autoconf >= 2.59-3 -BuildRequires: automake >= 1:1.9.4-2 -BuildRequires: boost-devel >= 1.35.0 +Version: 1.1.2 +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.xz +# Source0-md5: a486807ffdf89a1d7ce9425dd60555ec +URL: https://inkscape.org/ +%{!?with_imagick:BuildRequires: GraphicsMagick-c++-devel} +%{?with_imagick:BuildRequires: ImageMagick6-c++-devel < 7} +BuildRequires: aspell-devel +BuildRequires: boost-devel >= 1.36 +BuildRequires: cairo-devel >= 1.10 +BuildRequires: cairomm-devel >= 1.9.8 +BuildRequires: cmake >= 3.1.0 +%if %{with dbus} +BuildRequires: dbus-devel +BuildRequires: dbus-glib-devel +%endif +BuildRequires: double-conversion-devel +BuildRequires: fontconfig-devel BuildRequires: freetype-devel >= 2.0 -BuildRequires: gcc-c++ >= 6:4.2.2-2 -BuildRequires: gc-devel >= 6.4 -BuildRequires: gettext-devel -%{?with_gnomevfs:BuildRequires: gnome-vfs2-devel >= 2.15.2} -BuildRequires: gtk+2-devel >= 2:2.9.4 -BuildRequires: gtkmm-devel >= 2.10.0 -BuildRequires: gtkspell-devel >= 2.0.11 -BuildRequires: intltool >= 0.35.0 -BuildRequires: lcms-devel >= 1.15 -BuildRequires: libart_lgpl-devel >= 2.3.10 -%{?with_gnomeprint:BuildRequires: libgnomeprintui-devel >= 2.12.1} +BuildRequires: gc-devel >= 7.2 +BuildRequires: gdl-devel >= 3.6 +BuildRequires: gettext-tools >= 0.17 +BuildRequires: glib2-devel >= 1:2.28 +BuildRequires: glibmm-devel >= 2.28 +BuildRequires: gsl-devel +BuildRequires: gtk+3-devel >= 3.22 +BuildRequires: gtkmm3-devel >= 3.22 +BuildRequires: gtkspell3-devel >= 3.0 +BuildRequires: harfbuzz-devel +BuildRequires: lcms2-devel >= 2 +BuildRequires: libcdr-devel >= 0.1 +BuildRequires: libexif-devel +BuildRequires: libgomp-devel +BuildRequires: libjpeg-devel BuildRequires: libpng-devel >= 1.2 +BuildRequires: librevenge-devel BuildRequires: libsigc++-devel >= 2.0.17 -BuildRequires: libtool +BuildRequires: libsoup-devel >= 2.42 +BuildRequires: libstdc++-devel >= 6:4.7 +BuildRequires: libvisio-devel >= 0.1 +BuildRequires: libwpd-devel >= 0.9 +BuildRequires: libwpg-devel >= 0.3 BuildRequires: libxml2-devel >= 1:2.6.26 BuildRequires: libxslt-devel >= 1.1.17 -%{?with_inkboard:BuildRequires: loudmouth-devel >= 1.0.3} +BuildRequires: pango-devel >= 1:1.24 BuildRequires: pkgconfig +BuildRequires: poppler-glib-devel >= 0.29.0 BuildRequires: popt-devel +BuildRequires: potrace-devel BuildRequires: rpm-pythonprov -%{?with_xft:BuildRequires: xorg-lib-libXft-devel} +BuildRequires: rpmbuild(macros) >= 1.752 +BuildRequires: sed >= 4.0 +BuildRequires: xorg-lib-libX11-devel BuildRequires: zlib-devel -Requires(post,postun): shared-mime-info -Requires: gc >= 6.4 -%{?with_gnomevfs:Requires: gnome-vfs2 >= 2.15.2} -Requires: gtk+2 >= 2:2.9.4 +Requires(post,postun): desktop-file-utils +Requires: cairo >= 1.10 +Requires: cairomm >= 1.9.8 +Requires: gc >= 7.2 +Requires: gdl >= 3.6 +Requires: glib2 >= 1:2.28 +Requires: glibmm >= 2.28 +Requires: gtk+3 >= 3.22 +Requires: gtkmm3 >= 3.22 +Requires: libsigc++ >= 2.0.17 +Requires: libxml2 >= 1:2.6.26 +Requires: libxslt >= 1.1.17 +Requires: pango >= 1:1.24 Requires: perl-XML-XQL +Requires: poppler-glib >= 0.29.0 Suggests: python-lxml -# sr@Latn vs. sr@latin -Conflicts: glibc-misc < 6:2.7 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -72,100 +91,126 @@ vector drawings. Inkscape jest programem do przeglądania, tworzenia i edycji dwuwymiarowej grafiki wektorowej. +%package -n bash-completion-inkscape +Summary: Bash completion for inkscape arguments +Summary(pl.UTF-8): Bashowe dopełnianie argumentów programu inkscape +Group: Applications/Shells +Requires: %{name} = %{version}-%{release} +Requires: bash-completion >= 2.0 +BuildArch: noarch + +%description -n bash-completion-inkscape +Bash completion for inkscape arguments. + +%description -n bash-completion-inkscape -l pl.UTF-8 +Bashowe dopełnianie argumentów programu inkscape. + %prep -%setup -q -%patch0 -p1 -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 -%patch4 -p1 -%patch5 -p1 -%patch6 -p1 -%patch7 -p1 -%patch8 -p1 - - -rm -f po/ca@valencia.po -rm -f po/en_US@piglatin.po -sed -i -e 's|ca@valencia||' configure.ac -sed -i -e 's|en_US@piglatin||' configure.ac +%setup -q -n %{name}-%{version}_2022-02-04_0a00cf5339 + +%{__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 \ + 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 %build -%{__libtoolize} -%{__glib_gettextize} -%{__intltoolize} -%{__aclocal} -%{__autoheader} -%{__automake} -%{__autoconf} -%configure \ - %{!?with_xft: --without-xft} \ - %{!?with_gnomeprint:--without-gnome-print} \ - %{?with_gnomeprint:--with-gnome-print} \ - %{!?with_gnomevfs:--without-gnome-vfs} \ - %{!?with_mmx:--disable-mmx} \ - %{?with_relocation:--enable-binreloc} \ - %{?with_inkboard:--enable-inkboard} \ - --disable-static +mkdir -p build +cd build + +%cmake .. \ + -DBUILD_SHARED_LIBS:BOOL=OFF \ + %{cmake_on_off relocation ENABLE_BINRELOC} \ + %{cmake_on_off dbus WITH_DBUS} \ + %{cmake_on_off imagick WITH_IMAGE_MAGICK} %{__make} %install rm -rf $RPM_BUILD_ROOT -%{__make} install \ +%{__make} -C build install \ DESTDIR=$RPM_BUILD_ROOT -[ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \ - mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin} +# TODO: use external 2geom package +%{__rm} -r $RPM_BUILD_ROOT{%{_includedir}/2geom-1.1.0,%{_libdir}/cmake/2Geom,%{_libdir}/lib2geom.a,%{_pkgconfigdir}/2geom.pc} + +# unify locale name, overwrite outdated bn +%{__mv} $RPM_BUILD_ROOT%{_localedir}/{bn_BD,bn}/LC_MESSAGES/inkscape.mo +# unify names +%{__mv} $RPM_BUILD_ROOT%{_localedir}/{ks@aran,ks} +%{__mv} $RPM_BUILD_ROOT%{_localedir}/{ks@deva,ks@devanagari} +%{__mv} $RPM_BUILD_ROOT%{_localedir}/{sd@deva,sd@devanagari} +# 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,TESTING.md,doxygen-main.dox,setup.cfg,setup.py,tox.ini} + %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT - %post -umask 022 -update-mime-database %{_datadir}/mime >/dev/null 2>&1 ||: -[ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 ||: +%update_desktop_database_post %postun -umask 022 -update-mime-database %{_datadir}/mime >/dev/null 2>&1 -[ ! -x /usr/bin/update-desktop-database ] || /usr/bin/update-desktop-database >/dev/null 2>&1 +%update_desktop_database_postun %files -f %{name}.lang %defattr(644,root,root,755) -%doc AUTHORS ChangeLog HACKING.txt NEWS README TRANSLATORS -%lang(ca) %doc README.ca.txt -%lang(de) %doc README.de.txt -%lang(es) %doc README.es.txt -%lang(fr) %doc README.fr.txt -%lang(it) %doc README.it.txt -%lang(de) %doc HACKING.de.txt -%lang(fr) %doc HACKING.fr.txt -%lang(it) %doc HACKING.it.txt -%attr(755,root,root) %{_bindir}/* +%doc AUTHORS CONTRIBUTING.md NEWS.md README.md +%attr(755,root,root) %{_bindir}/inkscape +%attr(755,root,root) %{_bindir}/inkview %dir %{_datadir}/inkscape %{_datadir}/inkscape/[!e]* %{_datadir}/inkscape/examples %dir %{_datadir}/inkscape/extensions -%{_datadir}/inkscape/extensions/*.cmd +%{_datadir}/inkscape/extensions/Poly3DObjects +%{_datadir}/inkscape/extensions/alphabet_soup +%{_datadir}/inkscape/extensions/barcode +%{_datadir}/inkscape/extensions/ink2canvas_lib +%{_datadir}/inkscape/extensions/inkex +%{_datadir}/inkscape/extensions/svg_fonts +%{_datadir}/inkscape/extensions/tools +%{_datadir}/inkscape/extensions/xaml2svg +%attr(755,root,root) %{_datadir}/inkscape/extensions/*.py +%attr(755,root,root) %{_datadir}/inkscape/extensions/*.sh +%{_datadir}/inkscape/extensions/dxf14_*.txt %{_datadir}/inkscape/extensions/*.inx -%{_datadir}/inkscape/extensions/*.txt +%{_datadir}/inkscape/extensions/*.js +%{_datadir}/inkscape/extensions/*.svg %{_datadir}/inkscape/extensions/*.xml %{_datadir}/inkscape/extensions/*.xsl %{_datadir}/inkscape/extensions/*.xslt -%attr(755,root,root) %{_datadir}/inkscape/extensions/*.pl -%attr(755,root,root) %{_datadir}/inkscape/extensions/*.pm -%attr(755,root,root) %{_datadir}/inkscape/extensions/*.py -%attr(755,root,root) %{_datadir}/inkscape/extensions/*.rb -%attr(755,root,root) %{_datadir}/inkscape/extensions/*.sh -%dir %{_datadir}/inkscape/extensions/Barcode -%attr(755,root,root) %{_datadir}/inkscape/extensions/Barcode/*.py -%dir %{_datadir}/inkscape/extensions/xaml2svg -%{_datadir}/inkscape/extensions/xaml2svg/*.xsl -%{_mandir}/man1/* -%lang(fr) %{_mandir}/fr/man1/* -%{_pixmapsdir}/*.png -%{_desktopdir}/*.desktop +%{_datadir}/inkscape/extensions/fontfix.conf +%{_datadir}/inkscape/extensions/inkscape.extension.rng +%{_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(de) %{_mandir}/de/man1/inkscape.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) +%{bash_compdir}/inkscape