]> git.pld-linux.org Git - packages/inkscape.git/blame - inkscape.spec
- one more poppler fix, release 5
[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
a9a78faf 12Version: 0.92.3
41577449 13Release: 5
8bb0fc46 14License: GPL v2+, LGPL v2.1+
fa7e1cfb 15Group: X11/Applications/Graphics
41577449 16# download: follow https://inkscape.org/release/
a9a78faf
JP
17Source0: https://media.inkscape.org/dl/resources/file/%{name}-%{version}.tar.bz2
18# Source0-md5: 4ef7171cc1de9e1608d8c49b77fed99e
41394cda
JB
19Patch0: %{name}-man.patch
20Patch1: %{name}-gtk3.patch
0d4a0b2e 21Patch2: %{name}-poppler.patch
41577449 22URL: https://inkscape.org/
fa7e1cfb
MB
23BuildRequires: ImageMagick-c++-devel
24BuildRequires: aspell-devel
41394cda 25BuildRequires: autoconf >= 2.64
25641cda 26BuildRequires: automake >= 1:1.9.4-2
6feea007 27BuildRequires: boost-devel >= 1.36
41394cda
JB
28BuildRequires: cairo-devel >= 1.10
29BuildRequires: cairomm-devel >= 1.9.8
30%{?with_dbus:BuildRequires: dbus-glib-devel}
35f78de7 31BuildRequires: freetype-devel >= 2.0
41394cda
JB
32BuildRequires: gc-devel >= 7.2
33BuildRequires: gettext-tools >= 0.17
34BuildRequires: glib2-devel >= 1:2.28
35BuildRequires: glibmm-devel >= 2.28
b65d9413 36%{?with_gnomevfs:BuildRequires: gnome-vfs2-devel >= 2.15.2}
8bb0fc46 37BuildRequires: gsl-devel
41394cda 38BuildRequires: intltool >= 0.40.0
6feea007 39BuildRequires: lcms2-devel >= 2
41394cda
JB
40BuildRequires: libcdr-devel >= 0.1
41BuildRequires: libexif-devel
6feea007 42BuildRequires: libgomp-devel
41394cda 43BuildRequires: libjpeg-devel
91f416f3 44BuildRequires: libpng-devel >= 1.2
41394cda 45BuildRequires: librevenge-devel
e47d40b1 46BuildRequires: libsigc++-devel >= 2.0.17
41394cda
JB
47BuildRequires: libstdc++-devel >= 6:4.7
48BuildRequires: libtool >= 2:2.2
49BuildRequires: libvisio-devel >= 0.1
6feea007 50BuildRequires: libwpd-devel >= 0.9
41394cda 51BuildRequires: libwpg-devel >= 0.3
e47d40b1 52BuildRequires: libxml2-devel >= 1:2.6.26
53BuildRequires: libxslt-devel >= 1.1.17
41394cda 54BuildRequires: pango-devel >= 1:1.24
35f78de7 55BuildRequires: pkgconfig
41394cda 56BuildRequires: poppler-glib-devel >= 0.29.0
efb4548f 57BuildRequires: popt-devel
41394cda 58BuildRequires: potrace-devel
ee6d403c 59BuildRequires: rpm-pythonprov
fa7e1cfb 60BuildRequires: sed >= 4.0
91f416f3 61BuildRequires: zlib-devel
41394cda
JB
62%if %{with gtk3}
63BuildRequires: gdl-devel >= 3.6
64BuildRequires: gtk+3-devel >= 3.8
65BuildRequires: gtkmm3-devel >= 3.10
66BuildRequires: gtkspell3-devel >= 3.0
67%else
68BuildRequires: gtk+2-devel >= 2:2.24
69BuildRequires: gtkmm-devel >= 2.24
70BuildRequires: gtkspell-devel >= 2.0.11
71%endif
fa7e1cfb 72Requires(post,postun): desktop-file-utils
41394cda
JB
73Requires: cairo >= 1.10
74Requires: cairomm >= 1.9.8
75Requires: gc >= 7.2
76Requires: glib2 >= 1:2.28
77Requires: glibmm >= 2.28
b65d9413 78%{?with_gnomevfs:Requires: gnome-vfs2 >= 2.15.2}
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
JB
84Requires: poppler-glib >= 0.29.0
85%if %{with gtk3}
86Requires: gdl >= 3.6
87Requires: gtk+3 >= 3.8
88Requires: gtkmm3 >= 3.10
89%else
90Requires: gtk+2 >= 2:2.24
91Requires: gtkmm >= 2.24
92Requires: gtkspell >= 2.0.11
93%endif
8ccd877c 94Suggests: python-lxml
2478b7d2 95# sr@Latn vs. sr@latin
96Conflicts: glibc-misc < 6:2.7
97BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
597867c7 98
99%description
efb4548f
JB
100Inkscape is a program for viewing, making, and editing two-dimensional
101vector drawings.
597867c7 102
ab944b4b
JR
103%description -l pl.UTF-8
104Inkscape jest programem do przeglądania, tworzenia i edycji
efb4548f 105dwuwymiarowej grafiki wektorowej.
597867c7 106
107%prep
41394cda 108%setup -q
fa7e1cfb 109%patch0 -p1
f6400ea8 110%patch1 -p1
0d4a0b2e 111%patch2 -p1
41394cda
JB
112
113%{__sed} -i -e 's,po/Makefile.in,,' configure.ac
ddf104ba 114
597867c7 115%build
efb4548f 116%{__libtoolize}
41394cda 117%{__gettextize}
ea00493b 118%{__intltoolize}
efb4548f 119%{__aclocal}
41394cda 120%{__autoconf}
efb4548f
JB
121%{__autoheader}
122%{__automake}
0202eed1 123%configure \
22c15797 124 %{?with_relocation:--enable-binreloc} \
41394cda
JB
125 %{?with_dbus:--enable-dbusapi} \
126 %{?with_gtk3:--enable-gtk3-experimental} \
127 --disable-silent-rules \
128 %{!?with_gnomevfs:--without-gnome-vfs}
35f78de7
JB
129
130%{__make}
597867c7 131
132%install
133rm -rf $RPM_BUILD_ROOT
597867c7 134
35f78de7
JB
135%{__make} install \
136 DESTDIR=$RPM_BUILD_ROOT
597867c7 137
41394cda
JB
138# localized manuals cleanup
139for manlang in de el fr ja sk zh_TW ; do
140 %{__mv} $RPM_BUILD_ROOT%{_mandir}/${manlang}/man1/{inkscape.${manlang}.1,inkscape.1}
141 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/inkscape.${manlang}.1
142done
143
144# unify locale name, overwrite outdated bn
145%{__mv} $RPM_BUILD_ROOT%{_localedir}/{bn_BD,bn}/LC_MESSAGES/inkscape.mo
146# joke language, unsupported
147%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/en_US@piglatin
148# unify names
149%{__mv} $RPM_BUILD_ROOT%{_localedir}/{ks@aran,ks}
150%{__mv} $RPM_BUILD_ROOT%{_localedir}/{ks@deva,ks@devanagari}
151%{__mv} $RPM_BUILD_ROOT%{_localedir}/{sd@deva,sd@devanagari}
152# unsupported variants
153%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{kok@latin,mni@beng,sat@deva}
6a74624a 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)
8bb0fc46 168%doc AUTHORS ChangeLog NEWS README TRANSLATORS doc/HACKING.txt
90b51ec4 169%lang(ca) %doc README.ca.txt
41394cda 170%lang(de) %doc README.de.txt doc/HACKING.de.txt
90b51ec4 171%lang(es) %doc README.es.txt
41394cda
JB
172%lang(fr) %doc README.fr.txt doc/HACKING.fr.txt
173%lang(it) %doc README.it.txt doc/HACKING.it.txt
174%lang(pt_BR) %doc README.pt_BR.txt doc/HACKING.pt_BR.txt
175%lang(sk) %doc README.sk.txt
176%lang(sr) %doc README.sr.txt
fa7e1cfb
MB
177%attr(755,root,root) %{_bindir}/inkscape
178%attr(755,root,root) %{_bindir}/inkview
60fad862 179%dir %{_datadir}/inkscape
180%{_datadir}/inkscape/[!e]*
181%{_datadir}/inkscape/examples
182%dir %{_datadir}/inkscape/extensions
41394cda
JB
183%dir %{_datadir}/inkscape/extensions/Barcode
184%attr(755,root,root) %{_datadir}/inkscape/extensions/Barcode/*.py
185%{_datadir}/inkscape/extensions/Poly3DObjects
186%{_datadir}/inkscape/extensions/alphabet_soup
187%dir %{_datadir}/inkscape/extensions/ink2canvas
188%attr(755,root,root) %{_datadir}/inkscape/extensions/ink2canvas/*.py
189%{_datadir}/inkscape/extensions/test
190%{_datadir}/inkscape/extensions/xaml2svg
191%attr(755,root,root) %{_datadir}/inkscape/extensions/*.pl
192%attr(755,root,root) %{_datadir}/inkscape/extensions/*.py
193%attr(755,root,root) %{_datadir}/inkscape/extensions/*.rb
194%attr(755,root,root) %{_datadir}/inkscape/extensions/*.sh
60fad862 195%{_datadir}/inkscape/extensions/*.inx
a52a6383 196%{_datadir}/inkscape/extensions/*.js
41394cda 197%{_datadir}/inkscape/extensions/*.svg
34cd2370
PZ
198%{_datadir}/inkscape/extensions/*.xml
199%{_datadir}/inkscape/extensions/*.xsl
d0824210 200%{_datadir}/inkscape/extensions/*.xslt
a5d5a7c6
JR
201%{_datadir}/inkscape/extensions/fontfix.conf
202%{_datadir}/inkscape/extensions/inkscape.extension.rng
41394cda 203%{_datadir}/appdata/inkscape.appdata.xml
8bb0fc46 204%{_iconsdir}/hicolor/*/apps/inkscape.png
fa7e1cfb 205%{_desktopdir}/inkscape.desktop
41394cda
JB
206%{_mandir}/man1/inkscape.1*
207%{_mandir}/man1/inkview.1*
208%lang(de) %{_mandir}/de/man1/inkscape.1*
209%lang(el) %{_mandir}/el/man1/inkscape.1*
210%lang(fr) %{_mandir}/fr/man1/inkscape.1*
211%lang(ja) %{_mandir}/ja/man1/inkscape.1*
212%lang(sk) %{_mandir}/sk/man1/inkscape.1*
213%lang(zh_TW) %{_mandir}/zh_TW/man1/inkscape.1*
This page took 0.12185 seconds and 4 git commands to generate.