]> git.pld-linux.org Git - packages/inkscape.git/blame - inkscape.spec
- added poppler patch (poppler 22.03, 22.04 fixes from git); release 2
[packages/inkscape.git] / inkscape.spec
CommitLineData
0202eed1 1#
2# Conditional build
41394cda 3%bcond_with dbus # DBus interface
ac61fe9a 4%bcond_with relocation # Enable binary relocation support
48ae4e95 5%bcond_with imagick # ImageMagick 6.x instead of GraphicsMagick
efb4548f 6#
a52a6383 7
efb4548f 8Summary: Scalable vector graphics editor
2ae499ae 9Summary(pl.UTF-8): Edytor skalowalnej grafiki wektorowej
597867c7 10Name: inkscape
dab787ec 11Version: 1.1.2
42a2ddce 12Release: 2
8bb0fc46 13License: GPL v2+, LGPL v2.1+
fa7e1cfb 14Group: X11/Applications/Graphics
41577449 15# download: follow https://inkscape.org/release/
eac4f609 16Source0: https://media.inkscape.org/dl/resources/file/%{name}-%{version}.tar.xz
dab787ec 17# Source0-md5: a486807ffdf89a1d7ce9425dd60555ec
42a2ddce 18Patch0: %{name}-poppler.patch
41577449 19URL: https://inkscape.org/
48ae4e95
JB
20%{!?with_imagick:BuildRequires: GraphicsMagick-c++-devel}
21%{?with_imagick:BuildRequires: ImageMagick6-c++-devel < 7}
fa7e1cfb 22BuildRequires: aspell-devel
6feea007 23BuildRequires: boost-devel >= 1.36
41394cda
JB
24BuildRequires: cairo-devel >= 1.10
25BuildRequires: cairomm-devel >= 1.9.8
48ae4e95
JB
26BuildRequires: cmake >= 3.1.0
27%if %{with dbus}
28BuildRequires: dbus-devel
29BuildRequires: dbus-glib-devel
30%endif
31BuildRequires: double-conversion-devel
32BuildRequires: fontconfig-devel
35f78de7 33BuildRequires: freetype-devel >= 2.0
41394cda 34BuildRequires: gc-devel >= 7.2
48ae4e95 35BuildRequires: gdl-devel >= 3.6
41394cda
JB
36BuildRequires: gettext-tools >= 0.17
37BuildRequires: glib2-devel >= 1:2.28
38BuildRequires: glibmm-devel >= 2.28
8bb0fc46 39BuildRequires: gsl-devel
e147fdb2 40BuildRequires: gspell-devel >= 1.0
48ae4e95
JB
41BuildRequires: gtk+3-devel >= 3.22
42BuildRequires: gtkmm3-devel >= 3.22
48ae4e95 43BuildRequires: harfbuzz-devel
6feea007 44BuildRequires: lcms2-devel >= 2
e147fdb2 45BuildRequires: lib2geom-devel >= 1.1
41394cda
JB
46BuildRequires: libcdr-devel >= 0.1
47BuildRequires: libexif-devel
6feea007 48BuildRequires: libgomp-devel
41394cda 49BuildRequires: libjpeg-devel
91f416f3 50BuildRequires: libpng-devel >= 1.2
41394cda 51BuildRequires: librevenge-devel
e47d40b1 52BuildRequires: libsigc++-devel >= 2.0.17
0ed466fa 53BuildRequires: libsoup-devel >= 2.42
41394cda 54BuildRequires: libstdc++-devel >= 6:4.7
41394cda 55BuildRequires: libvisio-devel >= 0.1
6feea007 56BuildRequires: libwpd-devel >= 0.9
41394cda 57BuildRequires: libwpg-devel >= 0.3
e47d40b1 58BuildRequires: libxml2-devel >= 1:2.6.26
59BuildRequires: libxslt-devel >= 1.1.17
41394cda 60BuildRequires: pango-devel >= 1:1.24
35f78de7 61BuildRequires: pkgconfig
41394cda 62BuildRequires: poppler-glib-devel >= 0.29.0
efb4548f 63BuildRequires: popt-devel
41394cda 64BuildRequires: potrace-devel
ee6d403c 65BuildRequires: rpm-pythonprov
283c18ba 66BuildRequires: rpmbuild(macros) >= 1.752
fa7e1cfb 67BuildRequires: sed >= 4.0
48ae4e95 68BuildRequires: xorg-lib-libX11-devel
91f416f3 69BuildRequires: zlib-devel
fa7e1cfb 70Requires(post,postun): desktop-file-utils
41394cda
JB
71Requires: cairo >= 1.10
72Requires: cairomm >= 1.9.8
73Requires: gc >= 7.2
48ae4e95 74Requires: gdl >= 3.6
41394cda
JB
75Requires: glib2 >= 1:2.28
76Requires: glibmm >= 2.28
48ae4e95
JB
77Requires: gtk+3 >= 3.22
78Requires: gtkmm3 >= 3.22
6feea007
JB
79Requires: libsigc++ >= 2.0.17
80Requires: libxml2 >= 1:2.6.26
81Requires: libxslt >= 1.1.17
41394cda 82Requires: pango >= 1:1.24
e5d3652d 83Requires: perl-XML-XQL
41394cda 84Requires: poppler-glib >= 0.29.0
8ccd877c 85Suggests: python-lxml
2478b7d2 86BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
597867c7 87
88%description
efb4548f
JB
89Inkscape is a program for viewing, making, and editing two-dimensional
90vector drawings.
597867c7 91
ab944b4b
JR
92%description -l pl.UTF-8
93Inkscape jest programem do przeglądania, tworzenia i edycji
efb4548f 94dwuwymiarowej grafiki wektorowej.
597867c7 95
283c18ba
JB
96%package -n bash-completion-inkscape
97Summary: Bash completion for inkscape arguments
98Summary(pl.UTF-8): Bashowe dopełnianie argumentów programu inkscape
99Group: Applications/Shells
100Requires: %{name} = %{version}-%{release}
101Requires: bash-completion >= 2.0
45e9cb58 102BuildArch: noarch
283c18ba
JB
103
104%description -n bash-completion-inkscape
105Bash completion for inkscape arguments.
106
107%description -n bash-completion-inkscape -l pl.UTF-8
108Bashowe dopełnianie argumentów programu inkscape.
109
597867c7 110%prep
dab787ec 111%setup -q -n %{name}-%{version}_2022-02-04_0a00cf5339
42a2ddce 112%patch0 -p1
c58cbea3
JR
113
114%{__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,' \
115 CMakeScripts/cmake_consistency_check.py \
116 buildtools/msys2checkdeps.py \
c58cbea3 117 packaging/scripts/lp-mark-bugs-released \
c58cbea3
JR
118 share/extensions/*.py \
119 share/extensions/*/*.py \
120 share/*/i18n.py
121
c58cbea3
JR
122%{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+perl(\s|$),#!%{__perl}\1,' \
123 share/attributes/genMapDataCSS.pl \
124 share/attributes/genMapDataSVG.pl
125
597867c7 126%build
695e9cbe
JR
127mkdir -p build
128cd build
129
48ae4e95 130%cmake .. \
695e9cbe
JR
131 -DBUILD_SHARED_LIBS:BOOL=OFF \
132 %{cmake_on_off relocation ENABLE_BINRELOC} \
48ae4e95
JB
133 %{cmake_on_off dbus WITH_DBUS} \
134 %{cmake_on_off imagick WITH_IMAGE_MAGICK}
35f78de7
JB
135
136%{__make}
597867c7 137
138%install
139rm -rf $RPM_BUILD_ROOT
597867c7 140
695e9cbe 141%{__make} -C build install \
35f78de7 142 DESTDIR=$RPM_BUILD_ROOT
597867c7 143
41394cda
JB
144# unify locale name, overwrite outdated bn
145%{__mv} $RPM_BUILD_ROOT%{_localedir}/{bn_BD,bn}/LC_MESSAGES/inkscape.mo
41394cda
JB
146# unify names
147%{__mv} $RPM_BUILD_ROOT%{_localedir}/{ks@aran,ks}
148%{__mv} $RPM_BUILD_ROOT%{_localedir}/{ks@deva,ks@devanagari}
149%{__mv} $RPM_BUILD_ROOT%{_localedir}/{sd@deva,sd@devanagari}
150# unsupported variants
151%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{kok@latin,mni@beng,sat@deva}
6a74624a 152
dab787ec 153%{__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}
283c18ba 154
401cfdca
JB
155%find_lang %{name}
156
597867c7 157%clean
158rm -rf $RPM_BUILD_ROOT
159
22c15797 160%post
fa7e1cfb 161%update_desktop_database_post
22c15797 162
163%postun
fa7e1cfb 164%update_desktop_database_postun
22c15797 165
401cfdca 166%files -f %{name}.lang
597867c7 167%defattr(644,root,root,755)
695e9cbe 168%doc AUTHORS CONTRIBUTING.md NEWS.md README.md
fa7e1cfb
MB
169%attr(755,root,root) %{_bindir}/inkscape
170%attr(755,root,root) %{_bindir}/inkview
60fad862 171%dir %{_datadir}/inkscape
172%{_datadir}/inkscape/[!e]*
173%{_datadir}/inkscape/examples
174%dir %{_datadir}/inkscape/extensions
41394cda
JB
175%{_datadir}/inkscape/extensions/Poly3DObjects
176%{_datadir}/inkscape/extensions/alphabet_soup
695e9cbe
JR
177%{_datadir}/inkscape/extensions/barcode
178%{_datadir}/inkscape/extensions/ink2canvas_lib
179%{_datadir}/inkscape/extensions/inkex
180%{_datadir}/inkscape/extensions/svg_fonts
181%{_datadir}/inkscape/extensions/tools
41394cda 182%{_datadir}/inkscape/extensions/xaml2svg
41394cda 183%attr(755,root,root) %{_datadir}/inkscape/extensions/*.py
41394cda 184%attr(755,root,root) %{_datadir}/inkscape/extensions/*.sh
283c18ba 185%{_datadir}/inkscape/extensions/dxf14_*.txt
60fad862 186%{_datadir}/inkscape/extensions/*.inx
a52a6383 187%{_datadir}/inkscape/extensions/*.js
41394cda 188%{_datadir}/inkscape/extensions/*.svg
34cd2370
PZ
189%{_datadir}/inkscape/extensions/*.xml
190%{_datadir}/inkscape/extensions/*.xsl
d0824210 191%{_datadir}/inkscape/extensions/*.xslt
a5d5a7c6
JR
192%{_datadir}/inkscape/extensions/fontfix.conf
193%{_datadir}/inkscape/extensions/inkscape.extension.rng
695e9cbe
JR
194%{_datadir}/metainfo/org.inkscape.Inkscape.appdata.xml
195%{_iconsdir}/hicolor/*/apps/org.inkscape.Inkscape.png
0ed466fa
JR
196%{_iconsdir}/hicolor/scalable/apps/org.inkscape.Inkscape.svg
197%{_iconsdir}/hicolor/symbolic/apps/org.inkscape.Inkscape-symbolic.svg
695e9cbe 198%{_desktopdir}/org.inkscape.Inkscape.desktop
41394cda
JB
199%{_mandir}/man1/inkscape.1*
200%{_mandir}/man1/inkview.1*
201%lang(de) %{_mandir}/de/man1/inkscape.1*
41394cda 202%lang(fr) %{_mandir}/fr/man1/inkscape.1*
695e9cbe
JR
203%lang(hr) %{_mandir}/hr/man1/inkscape.1*
204%lang(hu) %{_mandir}/hu/man1/inkscape.1*
0ed466fa 205%lang(zh_TW) %{_mandir}/zh_TW/man1/inkscape.1*
695e9cbe
JR
206%lang(de) %{_mandir}/de/man1/inkview.1*
207%lang(es) %{_mandir}/es/man1/inkview.1*
208%lang(fr) %{_mandir}/fr/man1/inkview.1*
209%lang(hr) %{_mandir}/hr/man1/inkview.1*
210%lang(hu) %{_mandir}/hu/man1/inkview.1*
211%lang(pt_BR) %{_mandir}/pt_BR/man1/inkview.1*
0ed466fa 212%lang(zh_TW) %{_mandir}/zh_TW/man1/inkview.1*
283c18ba
JB
213
214%files -n bash-completion-inkscape
215%defattr(644,root,root,755)
216%{bash_compdir}/inkscape
This page took 1.442325 seconds and 4 git commands to generate.