]> git.pld-linux.org Git - packages/inkscape.git/blame - inkscape.spec
- simplified sed calls, use python3 where both supported
[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 113
5700ea5c
JB
114# python3-only
115%{__sed} -i -e '1s,/usr/bin/env python3,%{__python3},' \
116 CMakeScripts/cmake_consistency_check.py \
117 buildtools/check_license_headers.py \
118 share/extensions/*.py \
119 share/extensions/tests/add_pylint.py \
120 share/*/i18n.py
c58cbea3 121
5700ea5c
JB
122# look python2/3 compatible
123%{__sed} -i -e '1s,/usr/bin/env python$,%{__python3},' \
124 buildtools/msys2checkdeps.py \
125 share/extensions/*.py \
126 share/extensions/inkex/tester/inx.py \
127 share/extensions/tests/test_*.py \
128
129# python2-only
130%{__sed} -i -e '1s,/usr/bin/python$,%{__python},' \
131 packaging/scripts/lp-mark-bugs-released
132
133%{__sed} -i -e '1s,/usr/bin/env perl$,%{__perl},' \
134 share/attributes/genMapDataCSS.pl \
135 share/attributes/genMapDataSVG.pl
c58cbea3 136
597867c7 137%build
695e9cbe
JR
138mkdir -p build
139cd build
140
48ae4e95 141%cmake .. \
695e9cbe
JR
142 -DBUILD_SHARED_LIBS:BOOL=OFF \
143 %{cmake_on_off relocation ENABLE_BINRELOC} \
48ae4e95
JB
144 %{cmake_on_off dbus WITH_DBUS} \
145 %{cmake_on_off imagick WITH_IMAGE_MAGICK}
35f78de7
JB
146
147%{__make}
597867c7 148
149%install
150rm -rf $RPM_BUILD_ROOT
597867c7 151
695e9cbe 152%{__make} -C build install \
35f78de7 153 DESTDIR=$RPM_BUILD_ROOT
597867c7 154
41394cda
JB
155# unify locale name, overwrite outdated bn
156%{__mv} $RPM_BUILD_ROOT%{_localedir}/{bn_BD,bn}/LC_MESSAGES/inkscape.mo
41394cda
JB
157# unify names
158%{__mv} $RPM_BUILD_ROOT%{_localedir}/{ks@aran,ks}
159%{__mv} $RPM_BUILD_ROOT%{_localedir}/{ks@deva,ks@devanagari}
160%{__mv} $RPM_BUILD_ROOT%{_localedir}/{sd@deva,sd@devanagari}
161# unsupported variants
162%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{kok@latin,mni@beng,sat@deva}
6a74624a 163
dab787ec 164%{__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 165
401cfdca
JB
166%find_lang %{name}
167
597867c7 168%clean
169rm -rf $RPM_BUILD_ROOT
170
22c15797 171%post
fa7e1cfb 172%update_desktop_database_post
22c15797 173
174%postun
fa7e1cfb 175%update_desktop_database_postun
22c15797 176
401cfdca 177%files -f %{name}.lang
597867c7 178%defattr(644,root,root,755)
695e9cbe 179%doc AUTHORS CONTRIBUTING.md NEWS.md README.md
fa7e1cfb
MB
180%attr(755,root,root) %{_bindir}/inkscape
181%attr(755,root,root) %{_bindir}/inkview
60fad862 182%dir %{_datadir}/inkscape
183%{_datadir}/inkscape/[!e]*
184%{_datadir}/inkscape/examples
185%dir %{_datadir}/inkscape/extensions
41394cda
JB
186%{_datadir}/inkscape/extensions/Poly3DObjects
187%{_datadir}/inkscape/extensions/alphabet_soup
695e9cbe
JR
188%{_datadir}/inkscape/extensions/barcode
189%{_datadir}/inkscape/extensions/ink2canvas_lib
190%{_datadir}/inkscape/extensions/inkex
191%{_datadir}/inkscape/extensions/svg_fonts
192%{_datadir}/inkscape/extensions/tools
41394cda 193%{_datadir}/inkscape/extensions/xaml2svg
41394cda 194%attr(755,root,root) %{_datadir}/inkscape/extensions/*.py
41394cda 195%attr(755,root,root) %{_datadir}/inkscape/extensions/*.sh
283c18ba 196%{_datadir}/inkscape/extensions/dxf14_*.txt
60fad862 197%{_datadir}/inkscape/extensions/*.inx
a52a6383 198%{_datadir}/inkscape/extensions/*.js
41394cda 199%{_datadir}/inkscape/extensions/*.svg
34cd2370
PZ
200%{_datadir}/inkscape/extensions/*.xml
201%{_datadir}/inkscape/extensions/*.xsl
d0824210 202%{_datadir}/inkscape/extensions/*.xslt
a5d5a7c6
JR
203%{_datadir}/inkscape/extensions/fontfix.conf
204%{_datadir}/inkscape/extensions/inkscape.extension.rng
695e9cbe
JR
205%{_datadir}/metainfo/org.inkscape.Inkscape.appdata.xml
206%{_iconsdir}/hicolor/*/apps/org.inkscape.Inkscape.png
0ed466fa
JR
207%{_iconsdir}/hicolor/scalable/apps/org.inkscape.Inkscape.svg
208%{_iconsdir}/hicolor/symbolic/apps/org.inkscape.Inkscape-symbolic.svg
695e9cbe 209%{_desktopdir}/org.inkscape.Inkscape.desktop
41394cda
JB
210%{_mandir}/man1/inkscape.1*
211%{_mandir}/man1/inkview.1*
212%lang(de) %{_mandir}/de/man1/inkscape.1*
41394cda 213%lang(fr) %{_mandir}/fr/man1/inkscape.1*
695e9cbe
JR
214%lang(hr) %{_mandir}/hr/man1/inkscape.1*
215%lang(hu) %{_mandir}/hu/man1/inkscape.1*
0ed466fa 216%lang(zh_TW) %{_mandir}/zh_TW/man1/inkscape.1*
695e9cbe
JR
217%lang(de) %{_mandir}/de/man1/inkview.1*
218%lang(es) %{_mandir}/es/man1/inkview.1*
219%lang(fr) %{_mandir}/fr/man1/inkview.1*
220%lang(hr) %{_mandir}/hr/man1/inkview.1*
221%lang(hu) %{_mandir}/hu/man1/inkview.1*
222%lang(pt_BR) %{_mandir}/pt_BR/man1/inkview.1*
0ed466fa 223%lang(zh_TW) %{_mandir}/zh_TW/man1/inkview.1*
283c18ba
JB
224
225%files -n bash-completion-inkscape
226%defattr(644,root,root,755)
227%{bash_compdir}/inkscape
This page took 0.1663 seconds and 4 git commands to generate.