]> git.pld-linux.org Git - packages/inkscape.git/blame - inkscape.spec
- rel 1
[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
efb4548f 5#
a52a6383 6
efb4548f 7Summary: Scalable vector graphics editor
2ae499ae 8Summary(pl.UTF-8): Edytor skalowalnej grafiki wektorowej
597867c7 9Name: inkscape
695e9cbe 10Version: 1.0
7ee3749f 11Release: 1
8bb0fc46 12License: GPL v2+, LGPL v2.1+
fa7e1cfb 13Group: X11/Applications/Graphics
41577449 14# download: follow https://inkscape.org/release/
eac4f609 15Source0: https://media.inkscape.org/dl/resources/file/%{name}-%{version}.tar.xz
695e9cbe 16# Source0-md5: e5f1ee6b32ac0a94bdd5d99190e7bb9e
41577449 17URL: https://inkscape.org/
695e9cbe 18BuildRequires: GraphicsMagick-c++-devel
fa7e1cfb
MB
19BuildRequires: ImageMagick-c++-devel
20BuildRequires: aspell-devel
41394cda 21BuildRequires: autoconf >= 2.64
25641cda 22BuildRequires: automake >= 1:1.9.4-2
6feea007 23BuildRequires: boost-devel >= 1.36
41394cda
JB
24BuildRequires: cairo-devel >= 1.10
25BuildRequires: cairomm-devel >= 1.9.8
26%{?with_dbus:BuildRequires: dbus-glib-devel}
35f78de7 27BuildRequires: freetype-devel >= 2.0
41394cda
JB
28BuildRequires: gc-devel >= 7.2
29BuildRequires: gettext-tools >= 0.17
30BuildRequires: glib2-devel >= 1:2.28
31BuildRequires: glibmm-devel >= 2.28
8bb0fc46 32BuildRequires: gsl-devel
41394cda 33BuildRequires: intltool >= 0.40.0
6feea007 34BuildRequires: lcms2-devel >= 2
41394cda
JB
35BuildRequires: libcdr-devel >= 0.1
36BuildRequires: libexif-devel
6feea007 37BuildRequires: libgomp-devel
41394cda 38BuildRequires: libjpeg-devel
91f416f3 39BuildRequires: libpng-devel >= 1.2
41394cda 40BuildRequires: librevenge-devel
e47d40b1 41BuildRequires: libsigc++-devel >= 2.0.17
41394cda
JB
42BuildRequires: libstdc++-devel >= 6:4.7
43BuildRequires: libtool >= 2:2.2
44BuildRequires: libvisio-devel >= 0.1
6feea007 45BuildRequires: libwpd-devel >= 0.9
41394cda 46BuildRequires: libwpg-devel >= 0.3
e47d40b1 47BuildRequires: libxml2-devel >= 1:2.6.26
48BuildRequires: libxslt-devel >= 1.1.17
41394cda 49BuildRequires: pango-devel >= 1:1.24
35f78de7 50BuildRequires: pkgconfig
41394cda 51BuildRequires: poppler-glib-devel >= 0.29.0
efb4548f 52BuildRequires: popt-devel
41394cda 53BuildRequires: potrace-devel
ee6d403c 54BuildRequires: rpm-pythonprov
fa7e1cfb 55BuildRequires: sed >= 4.0
91f416f3 56BuildRequires: zlib-devel
41394cda
JB
57BuildRequires: gdl-devel >= 3.6
58BuildRequires: gtk+3-devel >= 3.8
59BuildRequires: gtkmm3-devel >= 3.10
60BuildRequires: gtkspell3-devel >= 3.0
fa7e1cfb 61Requires(post,postun): desktop-file-utils
41394cda
JB
62Requires: cairo >= 1.10
63Requires: cairomm >= 1.9.8
64Requires: gc >= 7.2
65Requires: glib2 >= 1:2.28
66Requires: glibmm >= 2.28
6feea007
JB
67Requires: libsigc++ >= 2.0.17
68Requires: libxml2 >= 1:2.6.26
69Requires: libxslt >= 1.1.17
41394cda 70Requires: pango >= 1:1.24
e5d3652d 71Requires: perl-XML-XQL
41394cda 72Requires: poppler-glib >= 0.29.0
41394cda
JB
73Requires: gdl >= 3.6
74Requires: gtk+3 >= 3.8
75Requires: gtkmm3 >= 3.10
8ccd877c 76Suggests: python-lxml
2478b7d2 77# sr@Latn vs. sr@latin
78Conflicts: glibc-misc < 6:2.7
79BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
597867c7 80
81%description
efb4548f
JB
82Inkscape is a program for viewing, making, and editing two-dimensional
83vector drawings.
597867c7 84
ab944b4b
JR
85%description -l pl.UTF-8
86Inkscape jest programem do przeglądania, tworzenia i edycji
efb4548f 87dwuwymiarowej grafiki wektorowej.
597867c7 88
89%prep
695e9cbe 90%setup -q -n %{name}-%{version}_2020-05-01_4035a4fb49
c58cbea3
JR
91
92%{__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,' \
93 CMakeScripts/cmake_consistency_check.py \
94 buildtools/msys2checkdeps.py \
c58cbea3
JR
95 packaging/scripts/lp-mark-bugs-released \
96 packaging/wix/*.py \
97 share/extensions/*.py \
98 share/extensions/*/*.py \
99 share/*/i18n.py
100
c58cbea3
JR
101%{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+perl(\s|$),#!%{__perl}\1,' \
102 share/attributes/genMapDataCSS.pl \
103 share/attributes/genMapDataSVG.pl
104
597867c7 105%build
695e9cbe
JR
106mkdir -p build
107cd build
108
109%cmake ../ \
110 -DBUILD_SHARED_LIBS:BOOL=OFF \
111 %{cmake_on_off relocation ENABLE_BINRELOC} \
112 %{cmake_on_off dbus WITH_DBUS}
35f78de7
JB
113
114%{__make}
597867c7 115
116%install
117rm -rf $RPM_BUILD_ROOT
597867c7 118
695e9cbe 119%{__make} -C build install \
35f78de7 120 DESTDIR=$RPM_BUILD_ROOT
597867c7 121
41394cda
JB
122# unify locale name, overwrite outdated bn
123%{__mv} $RPM_BUILD_ROOT%{_localedir}/{bn_BD,bn}/LC_MESSAGES/inkscape.mo
41394cda
JB
124# unify names
125%{__mv} $RPM_BUILD_ROOT%{_localedir}/{ks@aran,ks}
126%{__mv} $RPM_BUILD_ROOT%{_localedir}/{ks@deva,ks@devanagari}
127%{__mv} $RPM_BUILD_ROOT%{_localedir}/{sd@deva,sd@devanagari}
128# unsupported variants
129%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{kok@latin,mni@beng,sat@deva}
6a74624a 130
401cfdca
JB
131%find_lang %{name}
132
597867c7 133%clean
134rm -rf $RPM_BUILD_ROOT
135
22c15797 136%post
fa7e1cfb 137%update_desktop_database_post
22c15797 138
139%postun
fa7e1cfb 140%update_desktop_database_postun
22c15797 141
401cfdca 142%files -f %{name}.lang
597867c7 143%defattr(644,root,root,755)
695e9cbe 144%doc AUTHORS CONTRIBUTING.md NEWS.md README.md
fa7e1cfb
MB
145%attr(755,root,root) %{_bindir}/inkscape
146%attr(755,root,root) %{_bindir}/inkview
60fad862 147%dir %{_datadir}/inkscape
148%{_datadir}/inkscape/[!e]*
149%{_datadir}/inkscape/examples
150%dir %{_datadir}/inkscape/extensions
41394cda
JB
151%{_datadir}/inkscape/extensions/Poly3DObjects
152%{_datadir}/inkscape/extensions/alphabet_soup
695e9cbe
JR
153%{_datadir}/inkscape/extensions/barcode
154%{_datadir}/inkscape/extensions/ink2canvas_lib
155%{_datadir}/inkscape/extensions/inkex
156%{_datadir}/inkscape/extensions/svg_fonts
157%{_datadir}/inkscape/extensions/tools
41394cda 158%{_datadir}/inkscape/extensions/xaml2svg
41394cda 159%attr(755,root,root) %{_datadir}/inkscape/extensions/*.py
41394cda 160%attr(755,root,root) %{_datadir}/inkscape/extensions/*.sh
60fad862 161%{_datadir}/inkscape/extensions/*.inx
a52a6383 162%{_datadir}/inkscape/extensions/*.js
41394cda 163%{_datadir}/inkscape/extensions/*.svg
34cd2370
PZ
164%{_datadir}/inkscape/extensions/*.xml
165%{_datadir}/inkscape/extensions/*.xsl
d0824210 166%{_datadir}/inkscape/extensions/*.xslt
a5d5a7c6 167%{_datadir}/inkscape/extensions/fontfix.conf
695e9cbe 168%{_datadir}/inkscape/extensions/setup.cfg
a5d5a7c6 169%{_datadir}/inkscape/extensions/inkscape.extension.rng
695e9cbe
JR
170%{_datadir}/metainfo/org.inkscape.Inkscape.appdata.xml
171%{_iconsdir}/hicolor/*/apps/org.inkscape.Inkscape.png
172%{_desktopdir}/org.inkscape.Inkscape.desktop
41394cda
JB
173%{_mandir}/man1/inkscape.1*
174%{_mandir}/man1/inkview.1*
175%lang(de) %{_mandir}/de/man1/inkscape.1*
41394cda 176%lang(fr) %{_mandir}/fr/man1/inkscape.1*
695e9cbe
JR
177%lang(hr) %{_mandir}/hr/man1/inkscape.1*
178%lang(hu) %{_mandir}/hu/man1/inkscape.1*
179%lang(de) %{_mandir}/de/man1/inkview.1*
180%lang(es) %{_mandir}/es/man1/inkview.1*
181%lang(fr) %{_mandir}/fr/man1/inkview.1*
182%lang(hr) %{_mandir}/hr/man1/inkview.1*
183%lang(hu) %{_mandir}/hu/man1/inkview.1*
184%lang(pt_BR) %{_mandir}/pt_BR/man1/inkview.1*
This page took 0.130751 seconds and 4 git commands to generate.