]> git.pld-linux.org Git - packages/inkscape.git/blame - inkscape.spec
- up to 1.3.2
[packages/inkscape.git] / inkscape.spec
CommitLineData
0202eed1 1#
2# Conditional build
ac61fe9a 3%bcond_with relocation # Enable binary relocation support
48ae4e95 4%bcond_with imagick # ImageMagick 6.x instead of GraphicsMagick
efb4548f 5#
a52a6383 6
efb4548f 7Summary: Scalable vector graphics editor
2ae499ae 8Summary(pl.UTF-8): Edytor skalowalnej grafiki wektorowej
597867c7 9Name: inkscape
4149b625 10Version: 1.3.2
203f0a40 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
4149b625 16# Source0-md5: 76ed1f4b13065e80de8b2d77b6427b83
a88b21ba 17Patch0: inkscape-1.3.1-missing-headers.patch
41577449 18URL: https://inkscape.org/
48ae4e95
JB
19%{!?with_imagick:BuildRequires: GraphicsMagick-c++-devel}
20%{?with_imagick:BuildRequires: ImageMagick6-c++-devel < 7}
fa7e1cfb 21BuildRequires: aspell-devel
6feea007 22BuildRequires: boost-devel >= 1.36
41394cda
JB
23BuildRequires: cairo-devel >= 1.10
24BuildRequires: cairomm-devel >= 1.9.8
48ae4e95 25BuildRequires: cmake >= 3.1.0
48ae4e95
JB
26BuildRequires: dbus-devel
27BuildRequires: dbus-glib-devel
48ae4e95
JB
28BuildRequires: double-conversion-devel
29BuildRequires: fontconfig-devel
35f78de7 30BuildRequires: freetype-devel >= 2.0
41394cda 31BuildRequires: gc-devel >= 7.2
48ae4e95 32BuildRequires: gdl-devel >= 3.6
41394cda
JB
33BuildRequires: gettext-tools >= 0.17
34BuildRequires: glib2-devel >= 1:2.28
35BuildRequires: glibmm-devel >= 2.28
8bb0fc46 36BuildRequires: gsl-devel
e147fdb2 37BuildRequires: gspell-devel >= 1.0
48ae4e95
JB
38BuildRequires: gtk+3-devel >= 3.22
39BuildRequires: gtkmm3-devel >= 3.22
203f0a40 40BuildRequires: gtksourceview4-devel
48ae4e95 41BuildRequires: harfbuzz-devel
6feea007 42BuildRequires: lcms2-devel >= 2
b24745a2 43BuildRequires: lib2geom-devel >= 1.3
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
0ed466fa 51BuildRequires: libsoup-devel >= 2.42
41394cda 52BuildRequires: libstdc++-devel >= 6:4.7
41394cda 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
2172f454 59BuildRequires: perl-tools-pod
35f78de7 60BuildRequires: pkgconfig
41394cda 61BuildRequires: poppler-glib-devel >= 0.29.0
efb4548f 62BuildRequires: popt-devel
41394cda 63BuildRequires: potrace-devel
203f0a40 64BuildRequires: ragel
a22100b3 65BuildRequires: rpm-build >= 4.6
ee6d403c 66BuildRequires: rpm-pythonprov
283c18ba 67BuildRequires: rpmbuild(macros) >= 1.752
fa7e1cfb 68BuildRequires: sed >= 4.0
664228f4 69BuildRequires: tar >= 1:1.22
48ae4e95 70BuildRequires: xorg-lib-libX11-devel
664228f4 71BuildRequires: xz
91f416f3 72BuildRequires: zlib-devel
fa7e1cfb 73Requires(post,postun): desktop-file-utils
4bf7aceb 74Requires(post,postun): gtk-update-icon-cache
41394cda
JB
75Requires: cairo >= 1.10
76Requires: cairomm >= 1.9.8
77Requires: gc >= 7.2
48ae4e95 78Requires: gdl >= 3.6
41394cda
JB
79Requires: glib2 >= 1:2.28
80Requires: glibmm >= 2.28
48ae4e95
JB
81Requires: gtk+3 >= 3.22
82Requires: gtkmm3 >= 3.22
4bf7aceb 83Requires: hicolor-icon-theme
6feea007
JB
84Requires: libsigc++ >= 2.0.17
85Requires: libxml2 >= 1:2.6.26
86Requires: libxslt >= 1.1.17
41394cda 87Requires: pango >= 1:1.24
e5d3652d 88Requires: perl-XML-XQL
41394cda 89Requires: poppler-glib >= 0.29.0
8ccd877c 90Suggests: python-lxml
2478b7d2 91BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
597867c7 92
93%description
efb4548f
JB
94Inkscape is a program for viewing, making, and editing two-dimensional
95vector drawings.
597867c7 96
ab944b4b
JR
97%description -l pl.UTF-8
98Inkscape jest programem do przeglądania, tworzenia i edycji
efb4548f 99dwuwymiarowej grafiki wektorowej.
597867c7 100
283c18ba
JB
101%package -n bash-completion-inkscape
102Summary: Bash completion for inkscape arguments
103Summary(pl.UTF-8): Bashowe dopełnianie argumentów programu inkscape
104Group: Applications/Shells
105Requires: %{name} = %{version}-%{release}
28f55e6e 106Requires: bash-completion >= 1:2.0
45e9cb58 107BuildArch: noarch
283c18ba
JB
108
109%description -n bash-completion-inkscape
110Bash completion for inkscape arguments.
111
112%description -n bash-completion-inkscape -l pl.UTF-8
113Bashowe dopełnianie argumentów programu inkscape.
114
597867c7 115%prep
4149b625 116%setup -q -n %{name}-%{version}_2023-11-25_091e20ef0f
a88b21ba 117%patch0 -p1
c58cbea3 118
5700ea5c
JB
119# python3-only
120%{__sed} -i -e '1s,/usr/bin/env python3,%{__python3},' \
121 CMakeScripts/cmake_consistency_check.py \
122 buildtools/check_license_headers.py \
123 share/extensions/*.py \
124 share/extensions/tests/add_pylint.py \
125 share/*/i18n.py
c58cbea3 126
5700ea5c
JB
127# look python2/3 compatible
128%{__sed} -i -e '1s,/usr/bin/env python$,%{__python3},' \
129 buildtools/msys2checkdeps.py \
130 share/extensions/*.py \
131 share/extensions/inkex/tester/inx.py \
132 share/extensions/tests/test_*.py \
133
134# python2-only
135%{__sed} -i -e '1s,/usr/bin/python$,%{__python},' \
136 packaging/scripts/lp-mark-bugs-released
137
138%{__sed} -i -e '1s,/usr/bin/env perl$,%{__perl},' \
139 share/attributes/genMapDataCSS.pl \
140 share/attributes/genMapDataSVG.pl
c58cbea3 141
597867c7 142%build
695e9cbe
JR
143mkdir -p build
144cd build
145
48ae4e95 146%cmake .. \
695e9cbe
JR
147 -DBUILD_SHARED_LIBS:BOOL=OFF \
148 %{cmake_on_off relocation ENABLE_BINRELOC} \
48ae4e95 149 %{cmake_on_off imagick WITH_IMAGE_MAGICK}
35f78de7
JB
150
151%{__make}
597867c7 152
153%install
154rm -rf $RPM_BUILD_ROOT
597867c7 155
695e9cbe 156%{__make} -C build install \
35f78de7 157 DESTDIR=$RPM_BUILD_ROOT
597867c7 158
41394cda
JB
159# unify locale name, overwrite outdated bn
160%{__mv} $RPM_BUILD_ROOT%{_localedir}/{bn_BD,bn}/LC_MESSAGES/inkscape.mo
41394cda
JB
161# unify names
162%{__mv} $RPM_BUILD_ROOT%{_localedir}/{ks@aran,ks}
163%{__mv} $RPM_BUILD_ROOT%{_localedir}/{ks@deva,ks@devanagari}
164%{__mv} $RPM_BUILD_ROOT%{_localedir}/{sd@deva,sd@devanagari}
165# unsupported variants
166%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{kok@latin,mni@beng,sat@deva}
6a74624a 167
203f0a40 168%{__rm} $RPM_BUILD_ROOT%{_datadir}/inkscape/extensions/{.darglint,.pre-commit-config.yaml,.pylintrc,CONTRIBUTING.md,LICENSE.txt,MANIFEST.in,README.md,TESTING.md,doxygen-main.dox,package-readme.md,poetry.lock,pyproject.toml,tox.ini}
5d9130ff 169%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/inkscape/extensions/docs
283c18ba 170
401cfdca
JB
171%find_lang %{name}
172
597867c7 173%clean
174rm -rf $RPM_BUILD_ROOT
175
22c15797 176%post
fa7e1cfb 177%update_desktop_database_post
4bf7aceb 178%update_icon_cache hicolor
22c15797 179
180%postun
fa7e1cfb 181%update_desktop_database_postun
4bf7aceb 182%update_icon_cache hicolor
22c15797 183
401cfdca 184%files -f %{name}.lang
597867c7 185%defattr(644,root,root,755)
695e9cbe 186%doc AUTHORS CONTRIBUTING.md NEWS.md README.md
fa7e1cfb
MB
187%attr(755,root,root) %{_bindir}/inkscape
188%attr(755,root,root) %{_bindir}/inkview
60fad862 189%dir %{_datadir}/inkscape
190%{_datadir}/inkscape/[!e]*
191%{_datadir}/inkscape/examples
192%dir %{_datadir}/inkscape/extensions
203f0a40 193%dir %{_datadir}/inkscape/extensions/icons
41394cda
JB
194%{_datadir}/inkscape/extensions/Poly3DObjects
195%{_datadir}/inkscape/extensions/alphabet_soup
695e9cbe
JR
196%{_datadir}/inkscape/extensions/barcode
197%{_datadir}/inkscape/extensions/ink2canvas_lib
198%{_datadir}/inkscape/extensions/inkex
a118350e
JR
199%{_datadir}/inkscape/extensions/inkman
200%{_datadir}/inkscape/extensions/other
695e9cbe
JR
201%{_datadir}/inkscape/extensions/svg_fonts
202%{_datadir}/inkscape/extensions/tools
41394cda 203%attr(755,root,root) %{_datadir}/inkscape/extensions/*.py
283c18ba 204%{_datadir}/inkscape/extensions/dxf14_*.txt
60fad862 205%{_datadir}/inkscape/extensions/*.inx
a52a6383 206%{_datadir}/inkscape/extensions/*.js
41394cda 207%{_datadir}/inkscape/extensions/*.svg
34cd2370
PZ
208%{_datadir}/inkscape/extensions/*.xml
209%{_datadir}/inkscape/extensions/*.xsl
d0824210 210%{_datadir}/inkscape/extensions/*.xslt
a5d5a7c6 211%{_datadir}/inkscape/extensions/fontfix.conf
203f0a40 212%{_datadir}/inkscape/extensions/icons/*.svg
695e9cbe
JR
213%{_datadir}/metainfo/org.inkscape.Inkscape.appdata.xml
214%{_iconsdir}/hicolor/*/apps/org.inkscape.Inkscape.png
0ed466fa
JR
215%{_iconsdir}/hicolor/scalable/apps/org.inkscape.Inkscape.svg
216%{_iconsdir}/hicolor/symbolic/apps/org.inkscape.Inkscape-symbolic.svg
695e9cbe 217%{_desktopdir}/org.inkscape.Inkscape.desktop
41394cda
JB
218%{_mandir}/man1/inkscape.1*
219%{_mandir}/man1/inkview.1*
220%lang(de) %{_mandir}/de/man1/inkscape.1*
41394cda 221%lang(fr) %{_mandir}/fr/man1/inkscape.1*
a88b21ba 222%lang(hr) %{_mandir}/hr/man1/inkscape.1*
695e9cbe 223%lang(hu) %{_mandir}/hu/man1/inkscape.1*
203f0a40 224%lang(ko) %{_mandir}/ko/man1/inkscape.1*
26dd9c99 225%lang(zh_TW) %{_mandir}/zh_TW/man1/inkscape.1*
695e9cbe
JR
226%lang(de) %{_mandir}/de/man1/inkview.1*
227%lang(es) %{_mandir}/es/man1/inkview.1*
228%lang(fr) %{_mandir}/fr/man1/inkview.1*
229%lang(hr) %{_mandir}/hr/man1/inkview.1*
230%lang(hu) %{_mandir}/hu/man1/inkview.1*
203f0a40 231%lang(ko) %{_mandir}/ko/man1/inkview.1*
695e9cbe 232%lang(pt_BR) %{_mandir}/pt_BR/man1/inkview.1*
26dd9c99 233%lang(zh_TW) %{_mandir}/zh_TW/man1/inkview.1*
283c18ba
JB
234
235%files -n bash-completion-inkscape
236%defattr(644,root,root,755)
237%{bash_compdir}/inkscape
This page took 0.551441 seconds and 4 git commands to generate.