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