]> git.pld-linux.org Git - packages/inkscape.git/blame - inkscape.spec
- release 2 (by relup.sh)
[packages/inkscape.git] / inkscape.spec
CommitLineData
0202eed1 1#
2# Conditional build
41394cda
JB
3%bcond_with dbus # DBus interface
4%bcond_with gtk3 # GTK+ 3 interface [experimental]
b65d9413 5%bcond_without gnomevfs # Don't use gnome vfs for loading files
ac61fe9a 6%bcond_with relocation # Enable binary relocation support
efb4548f 7#
a52a6383 8
efb4548f 9Summary: Scalable vector graphics editor
2ae499ae 10Summary(pl.UTF-8): Edytor skalowalnej grafiki wektorowej
597867c7 11Name: inkscape
7dbe6771 12Version: 0.92.4
709f5531 13Release: 2
8bb0fc46 14License: GPL v2+, LGPL v2.1+
fa7e1cfb 15Group: X11/Applications/Graphics
41577449 16# download: follow https://inkscape.org/release/
a9a78faf 17Source0: https://media.inkscape.org/dl/resources/file/%{name}-%{version}.tar.bz2
7dbe6771 18# Source0-md5: ac30f6d5747fd9c620c00dad500f414f
41394cda
JB
19Patch0: %{name}-man.patch
20Patch1: %{name}-gtk3.patch
7dbe6771
JB
21# https://gitlab.com/inkscape/inkscape/commit/e831b034746f8dc3c3c1b88372751f6dcb974831.patch
22Patch2: %{name}-poppler0.76.patch
23# https://gitlab.com/inkscape/inkscape/merge_requests/986.patch
24Patch3: %{name}-poppler0.82.patch
3f54309a 25Patch4: %{name}-poppler0.83.patch
41577449 26URL: https://inkscape.org/
fa7e1cfb
MB
27BuildRequires: ImageMagick-c++-devel
28BuildRequires: aspell-devel
41394cda 29BuildRequires: autoconf >= 2.64
25641cda 30BuildRequires: automake >= 1:1.9.4-2
6feea007 31BuildRequires: boost-devel >= 1.36
41394cda
JB
32BuildRequires: cairo-devel >= 1.10
33BuildRequires: cairomm-devel >= 1.9.8
34%{?with_dbus:BuildRequires: dbus-glib-devel}
35f78de7 35BuildRequires: freetype-devel >= 2.0
41394cda
JB
36BuildRequires: gc-devel >= 7.2
37BuildRequires: gettext-tools >= 0.17
38BuildRequires: glib2-devel >= 1:2.28
39BuildRequires: glibmm-devel >= 2.28
b65d9413 40%{?with_gnomevfs:BuildRequires: gnome-vfs2-devel >= 2.15.2}
8bb0fc46 41BuildRequires: gsl-devel
41394cda 42BuildRequires: intltool >= 0.40.0
6feea007 43BuildRequires: lcms2-devel >= 2
41394cda
JB
44BuildRequires: libcdr-devel >= 0.1
45BuildRequires: libexif-devel
6feea007 46BuildRequires: libgomp-devel
41394cda 47BuildRequires: libjpeg-devel
91f416f3 48BuildRequires: libpng-devel >= 1.2
41394cda 49BuildRequires: librevenge-devel
e47d40b1 50BuildRequires: libsigc++-devel >= 2.0.17
41394cda
JB
51BuildRequires: libstdc++-devel >= 6:4.7
52BuildRequires: libtool >= 2:2.2
53BuildRequires: libvisio-devel >= 0.1
6feea007 54BuildRequires: libwpd-devel >= 0.9
41394cda 55BuildRequires: libwpg-devel >= 0.3
e47d40b1 56BuildRequires: libxml2-devel >= 1:2.6.26
57BuildRequires: libxslt-devel >= 1.1.17
41394cda 58BuildRequires: pango-devel >= 1:1.24
35f78de7 59BuildRequires: pkgconfig
41394cda 60BuildRequires: poppler-glib-devel >= 0.29.0
efb4548f 61BuildRequires: popt-devel
41394cda 62BuildRequires: potrace-devel
ee6d403c 63BuildRequires: rpm-pythonprov
fa7e1cfb 64BuildRequires: sed >= 4.0
91f416f3 65BuildRequires: zlib-devel
41394cda
JB
66%if %{with gtk3}
67BuildRequires: gdl-devel >= 3.6
68BuildRequires: gtk+3-devel >= 3.8
69BuildRequires: gtkmm3-devel >= 3.10
70BuildRequires: gtkspell3-devel >= 3.0
71%else
72BuildRequires: gtk+2-devel >= 2:2.24
73BuildRequires: gtkmm-devel >= 2.24
74BuildRequires: gtkspell-devel >= 2.0.11
75%endif
fa7e1cfb 76Requires(post,postun): desktop-file-utils
41394cda
JB
77Requires: cairo >= 1.10
78Requires: cairomm >= 1.9.8
79Requires: gc >= 7.2
80Requires: glib2 >= 1:2.28
81Requires: glibmm >= 2.28
b65d9413 82%{?with_gnomevfs:Requires: gnome-vfs2 >= 2.15.2}
6feea007
JB
83Requires: libsigc++ >= 2.0.17
84Requires: libxml2 >= 1:2.6.26
85Requires: libxslt >= 1.1.17
41394cda 86Requires: pango >= 1:1.24
e5d3652d 87Requires: perl-XML-XQL
41394cda
JB
88Requires: poppler-glib >= 0.29.0
89%if %{with gtk3}
90Requires: gdl >= 3.6
91Requires: gtk+3 >= 3.8
92Requires: gtkmm3 >= 3.10
93%else
94Requires: gtk+2 >= 2:2.24
95Requires: gtkmm >= 2.24
96Requires: gtkspell >= 2.0.11
97%endif
8ccd877c 98Suggests: python-lxml
2478b7d2 99# sr@Latn vs. sr@latin
100Conflicts: glibc-misc < 6:2.7
101BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
597867c7 102
103%description
efb4548f
JB
104Inkscape is a program for viewing, making, and editing two-dimensional
105vector drawings.
597867c7 106
ab944b4b
JR
107%description -l pl.UTF-8
108Inkscape jest programem do przeglądania, tworzenia i edycji
efb4548f 109dwuwymiarowej grafiki wektorowej.
597867c7 110
111%prep
41394cda 112%setup -q
fa7e1cfb 113%patch0 -p1
f6400ea8 114%patch1 -p1
0d4a0b2e 115%patch2 -p1
7dbe6771 116%patch3 -p1
3f54309a 117%patch4 -p1
41394cda
JB
118
119%{__sed} -i -e 's,po/Makefile.in,,' configure.ac
ddf104ba 120
c58cbea3
JR
121
122%{__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,' \
123 CMakeScripts/cmake_consistency_check.py \
124 buildtools/msys2checkdeps.py \
125 cxxtest/cxxtestgen.py \
126 packaging/scripts/lp-mark-bugs-released \
127 packaging/wix/*.py \
128 share/extensions/*.py \
129 share/extensions/*/*.py \
130 share/*/i18n.py
131
132%{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+ruby(\s|$),#!%{__ruby}\1,' \
133 share/extensions/*.rb
134
135%{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+perl(\s|$),#!%{__perl}\1,' \
136 share/attributes/genMapDataCSS.pl \
137 share/attributes/genMapDataSVG.pl
138
597867c7 139%build
efb4548f 140%{__libtoolize}
41394cda 141%{__gettextize}
ea00493b 142%{__intltoolize}
efb4548f 143%{__aclocal}
41394cda 144%{__autoconf}
efb4548f
JB
145%{__autoheader}
146%{__automake}
7dbe6771 147# deprecated TimeVal API is used, so --disable-strict-build is needed
0202eed1 148%configure \
22c15797 149 %{?with_relocation:--enable-binreloc} \
41394cda
JB
150 %{?with_dbus:--enable-dbusapi} \
151 %{?with_gtk3:--enable-gtk3-experimental} \
152 --disable-silent-rules \
7dbe6771 153 --disable-strict-build \
41394cda 154 %{!?with_gnomevfs:--without-gnome-vfs}
35f78de7
JB
155
156%{__make}
597867c7 157
158%install
159rm -rf $RPM_BUILD_ROOT
597867c7 160
35f78de7
JB
161%{__make} install \
162 DESTDIR=$RPM_BUILD_ROOT
597867c7 163
41394cda
JB
164# localized manuals cleanup
165for manlang in de el fr ja sk zh_TW ; do
166 %{__mv} $RPM_BUILD_ROOT%{_mandir}/${manlang}/man1/{inkscape.${manlang}.1,inkscape.1}
167 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/inkscape.${manlang}.1
168done
169
170# unify locale name, overwrite outdated bn
171%{__mv} $RPM_BUILD_ROOT%{_localedir}/{bn_BD,bn}/LC_MESSAGES/inkscape.mo
172# joke language, unsupported
173%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/en_US@piglatin
174# unify names
175%{__mv} $RPM_BUILD_ROOT%{_localedir}/{ks@aran,ks}
176%{__mv} $RPM_BUILD_ROOT%{_localedir}/{ks@deva,ks@devanagari}
177%{__mv} $RPM_BUILD_ROOT%{_localedir}/{sd@deva,sd@devanagari}
178# unsupported variants
179%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{kok@latin,mni@beng,sat@deva}
6a74624a 180
401cfdca
JB
181%find_lang %{name}
182
597867c7 183%clean
184rm -rf $RPM_BUILD_ROOT
185
22c15797 186%post
fa7e1cfb 187%update_desktop_database_post
22c15797 188
189%postun
fa7e1cfb 190%update_desktop_database_postun
22c15797 191
401cfdca 192%files -f %{name}.lang
597867c7 193%defattr(644,root,root,755)
8bb0fc46 194%doc AUTHORS ChangeLog NEWS README TRANSLATORS doc/HACKING.txt
90b51ec4 195%lang(ca) %doc README.ca.txt
41394cda 196%lang(de) %doc README.de.txt doc/HACKING.de.txt
90b51ec4 197%lang(es) %doc README.es.txt
41394cda
JB
198%lang(fr) %doc README.fr.txt doc/HACKING.fr.txt
199%lang(it) %doc README.it.txt doc/HACKING.it.txt
200%lang(pt_BR) %doc README.pt_BR.txt doc/HACKING.pt_BR.txt
201%lang(sk) %doc README.sk.txt
202%lang(sr) %doc README.sr.txt
fa7e1cfb
MB
203%attr(755,root,root) %{_bindir}/inkscape
204%attr(755,root,root) %{_bindir}/inkview
60fad862 205%dir %{_datadir}/inkscape
206%{_datadir}/inkscape/[!e]*
207%{_datadir}/inkscape/examples
208%dir %{_datadir}/inkscape/extensions
41394cda
JB
209%dir %{_datadir}/inkscape/extensions/Barcode
210%attr(755,root,root) %{_datadir}/inkscape/extensions/Barcode/*.py
211%{_datadir}/inkscape/extensions/Poly3DObjects
212%{_datadir}/inkscape/extensions/alphabet_soup
213%dir %{_datadir}/inkscape/extensions/ink2canvas
214%attr(755,root,root) %{_datadir}/inkscape/extensions/ink2canvas/*.py
215%{_datadir}/inkscape/extensions/test
216%{_datadir}/inkscape/extensions/xaml2svg
217%attr(755,root,root) %{_datadir}/inkscape/extensions/*.pl
218%attr(755,root,root) %{_datadir}/inkscape/extensions/*.py
219%attr(755,root,root) %{_datadir}/inkscape/extensions/*.rb
220%attr(755,root,root) %{_datadir}/inkscape/extensions/*.sh
60fad862 221%{_datadir}/inkscape/extensions/*.inx
a52a6383 222%{_datadir}/inkscape/extensions/*.js
41394cda 223%{_datadir}/inkscape/extensions/*.svg
34cd2370
PZ
224%{_datadir}/inkscape/extensions/*.xml
225%{_datadir}/inkscape/extensions/*.xsl
d0824210 226%{_datadir}/inkscape/extensions/*.xslt
a5d5a7c6
JR
227%{_datadir}/inkscape/extensions/fontfix.conf
228%{_datadir}/inkscape/extensions/inkscape.extension.rng
41394cda 229%{_datadir}/appdata/inkscape.appdata.xml
8bb0fc46 230%{_iconsdir}/hicolor/*/apps/inkscape.png
fa7e1cfb 231%{_desktopdir}/inkscape.desktop
41394cda
JB
232%{_mandir}/man1/inkscape.1*
233%{_mandir}/man1/inkview.1*
234%lang(de) %{_mandir}/de/man1/inkscape.1*
235%lang(el) %{_mandir}/el/man1/inkscape.1*
236%lang(fr) %{_mandir}/fr/man1/inkscape.1*
237%lang(ja) %{_mandir}/ja/man1/inkscape.1*
238%lang(sk) %{_mandir}/sk/man1/inkscape.1*
239%lang(zh_TW) %{_mandir}/zh_TW/man1/inkscape.1*
This page took 0.129782 seconds and 4 git commands to generate.