]> git.pld-linux.org Git - packages/inkscape.git/blame - inkscape.spec
- fix building with poppler 0.83
[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
JB
12Version: 0.92.4
13Release: 1
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
597867c7 121%build
efb4548f 122%{__libtoolize}
41394cda 123%{__gettextize}
ea00493b 124%{__intltoolize}
efb4548f 125%{__aclocal}
41394cda 126%{__autoconf}
efb4548f
JB
127%{__autoheader}
128%{__automake}
7dbe6771 129# deprecated TimeVal API is used, so --disable-strict-build is needed
0202eed1 130%configure \
22c15797 131 %{?with_relocation:--enable-binreloc} \
41394cda
JB
132 %{?with_dbus:--enable-dbusapi} \
133 %{?with_gtk3:--enable-gtk3-experimental} \
134 --disable-silent-rules \
7dbe6771 135 --disable-strict-build \
41394cda 136 %{!?with_gnomevfs:--without-gnome-vfs}
35f78de7
JB
137
138%{__make}
597867c7 139
140%install
141rm -rf $RPM_BUILD_ROOT
597867c7 142
35f78de7
JB
143%{__make} install \
144 DESTDIR=$RPM_BUILD_ROOT
597867c7 145
41394cda
JB
146# localized manuals cleanup
147for manlang in de el fr ja sk zh_TW ; do
148 %{__mv} $RPM_BUILD_ROOT%{_mandir}/${manlang}/man1/{inkscape.${manlang}.1,inkscape.1}
149 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/inkscape.${manlang}.1
150done
151
152# unify locale name, overwrite outdated bn
153%{__mv} $RPM_BUILD_ROOT%{_localedir}/{bn_BD,bn}/LC_MESSAGES/inkscape.mo
154# joke language, unsupported
155%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/en_US@piglatin
156# unify names
157%{__mv} $RPM_BUILD_ROOT%{_localedir}/{ks@aran,ks}
158%{__mv} $RPM_BUILD_ROOT%{_localedir}/{ks@deva,ks@devanagari}
159%{__mv} $RPM_BUILD_ROOT%{_localedir}/{sd@deva,sd@devanagari}
160# unsupported variants
161%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{kok@latin,mni@beng,sat@deva}
6a74624a 162
401cfdca
JB
163%find_lang %{name}
164
597867c7 165%clean
166rm -rf $RPM_BUILD_ROOT
167
22c15797 168%post
fa7e1cfb 169%update_desktop_database_post
22c15797 170
171%postun
fa7e1cfb 172%update_desktop_database_postun
22c15797 173
401cfdca 174%files -f %{name}.lang
597867c7 175%defattr(644,root,root,755)
8bb0fc46 176%doc AUTHORS ChangeLog NEWS README TRANSLATORS doc/HACKING.txt
90b51ec4 177%lang(ca) %doc README.ca.txt
41394cda 178%lang(de) %doc README.de.txt doc/HACKING.de.txt
90b51ec4 179%lang(es) %doc README.es.txt
41394cda
JB
180%lang(fr) %doc README.fr.txt doc/HACKING.fr.txt
181%lang(it) %doc README.it.txt doc/HACKING.it.txt
182%lang(pt_BR) %doc README.pt_BR.txt doc/HACKING.pt_BR.txt
183%lang(sk) %doc README.sk.txt
184%lang(sr) %doc README.sr.txt
fa7e1cfb
MB
185%attr(755,root,root) %{_bindir}/inkscape
186%attr(755,root,root) %{_bindir}/inkview
60fad862 187%dir %{_datadir}/inkscape
188%{_datadir}/inkscape/[!e]*
189%{_datadir}/inkscape/examples
190%dir %{_datadir}/inkscape/extensions
41394cda
JB
191%dir %{_datadir}/inkscape/extensions/Barcode
192%attr(755,root,root) %{_datadir}/inkscape/extensions/Barcode/*.py
193%{_datadir}/inkscape/extensions/Poly3DObjects
194%{_datadir}/inkscape/extensions/alphabet_soup
195%dir %{_datadir}/inkscape/extensions/ink2canvas
196%attr(755,root,root) %{_datadir}/inkscape/extensions/ink2canvas/*.py
197%{_datadir}/inkscape/extensions/test
198%{_datadir}/inkscape/extensions/xaml2svg
199%attr(755,root,root) %{_datadir}/inkscape/extensions/*.pl
200%attr(755,root,root) %{_datadir}/inkscape/extensions/*.py
201%attr(755,root,root) %{_datadir}/inkscape/extensions/*.rb
202%attr(755,root,root) %{_datadir}/inkscape/extensions/*.sh
60fad862 203%{_datadir}/inkscape/extensions/*.inx
a52a6383 204%{_datadir}/inkscape/extensions/*.js
41394cda 205%{_datadir}/inkscape/extensions/*.svg
34cd2370
PZ
206%{_datadir}/inkscape/extensions/*.xml
207%{_datadir}/inkscape/extensions/*.xsl
d0824210 208%{_datadir}/inkscape/extensions/*.xslt
a5d5a7c6
JR
209%{_datadir}/inkscape/extensions/fontfix.conf
210%{_datadir}/inkscape/extensions/inkscape.extension.rng
41394cda 211%{_datadir}/appdata/inkscape.appdata.xml
8bb0fc46 212%{_iconsdir}/hicolor/*/apps/inkscape.png
fa7e1cfb 213%{_desktopdir}/inkscape.desktop
41394cda
JB
214%{_mandir}/man1/inkscape.1*
215%{_mandir}/man1/inkview.1*
216%lang(de) %{_mandir}/de/man1/inkscape.1*
217%lang(el) %{_mandir}/el/man1/inkscape.1*
218%lang(fr) %{_mandir}/fr/man1/inkscape.1*
219%lang(ja) %{_mandir}/ja/man1/inkscape.1*
220%lang(sk) %{_mandir}/sk/man1/inkscape.1*
221%lang(zh_TW) %{_mandir}/zh_TW/man1/inkscape.1*
This page took 0.208366 seconds and 4 git commands to generate.