-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinkscape.spec
134 lines (117 loc) · 3.73 KB
/
inkscape.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
%ifarch %{ix86}
%define _disable_lto 1
%endif
%define Werror_cflags %nil
%define beta %nil
%define devname %mklibname -d -s 2geom
Summary: A vector-based drawing program using SVG
Name: inkscape
Version: 1.4
Release: 5
License: GPLv2+
Group: Graphics
Url: https://inkscape.org/
Source0: https://inkscape.org/gallery/item/53679/inkscape-%{version}.tar.xz
Source1: %{name}-icons.tar.bz2
Source100: inkscape.rpmlintrc
BuildRequires: desktop-file-utils
BuildRequires: gdk-pixbuf2.0
BuildRequires: intltool
BuildRequires: perl-XML-Parser
BuildRequires: boost-devel
BuildRequires: boost-core-devel
BuildRequires: boost-align-devel
BuildRequires: perl-devel
BuildRequires: pkgconfig(bdw-gc) >= 6.4
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(expat)
BuildRequires: pkgconfig(gsl)
BuildRequires: pkgconfig(gtkspell-2.0)
BuildRequires: pkgconfig(gtksourceview-4)
BuildRequires: pkgconfig(gspell-1)
BuildRequires: pkgconfig(harfbuzz)
BuildRequires: pkgconfig(pangocairo)
BuildRequires: pkgconfig(pangoft2)
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(gmodule-2.0)
BuildRequires: pkgconfig(libsoup-2.4) >= 2.42
BuildRequires: pkgconfig(gtkmm-3.0) >= 3.22
BuildRequires: pkgconfig(gdkmm-3.0) >= 3.22
BuildRequires: pkgconfig(gtk+-3.0) >= 3.22
BuildRequires: pkgconfig(gdk-3.0) >= 3.22
BuildRequires: pkgconfig(gdl-3.0) >= 3.4
BuildRequires: pkgconfig(libunwind-llvm)
BuildRequires: pkgconfig(GraphicsMagick)
BuildRequires: pkgconfig(lcms2)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(libwpg-0.3)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(libxslt)
BuildRequires: pkgconfig(loudmouth-1.0)
BuildRequires: pkgconfig(poppler-glib)
BuildRequires: pkgconfig(popt)
BuildRequires: pkgconfig(python)
BuildRequires: pkgconfig(poppler)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(atomic_ops)
BuildRequires: cmake(double-conversion)
BuildRequires: cmake ninja
BuildRequires: potrace-devel
Requires(post,postun): desktop-file-utils
Requires: gdk-pixbuf2.0
Requires: pstoedit
Requires: python-lxml
Requires: python3dist(numpy)
Suggests: uniconvertor
%patchlist
inkscape-1.4-compile.patch
inkscape-1.4-poppler-24.10.patch
inkscape-1.4-poppler-24.11.patch
inkscape-1.4-poppler-25.01.patch
%description
Inkscape is a generic SVG-based vector-drawing program.
Inkscape uses the W3C SVG (= "Scalable Vector Graphics") standard as its
native file format. Therefore, it is a very useful tool for web designers
and can be used as an interchange format for desktop publishing.
%package -n %{devname}
Summary: Static library and header files for the 2geom library
Group: Development/Libraries
%description -n %{devname}
Static library and header files for the 2geom library
%prep
%autosetup -p1 -a1 -n %{name}-%{version}_2024-10-09_e7c3feb100
CXXFLAGS="%{optflags} -std=gnu++20" %cmake \
-DBUILD_STATIC_LIBS:BOOL=ON \
-DBUILD_SHARED_LIBS:BOOL=OFF \
-DWITH_DBUS:BOOL=ON \
-DWITH_IMAGE_MAGICK:BOOL=ON \
-DWITH_OPENMP:BOOL=ON \
-G Ninja
%build
export CC=gcc
export CXX=g++
%ninja_build -C build
%install
%ninja_install -C build
perl -i -lne 'print unless m{^\[Drawing Shortcut Group\]}..1' %{buildroot}%{_datadir}/applications/*
desktop-file-install --vendor="" \
--add-category="X-MandrivaLinux-CrossDesktop" \
--dir %{buildroot}%{_datadir}/applications \
%{buildroot}%{_datadir}/applications/*
%find_lang %{name}
%files -f %{name}.lang
%doc AUTHORS
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/inkscape/
%{_iconsdir}/hicolor/*/apps/*
%{_mandir}/man1/*
%{_mandir}/*/man1/*
%{_datadir}/metainfo/org.inkscape.Inkscape.appdata.xml
%{_datadir}/bash-completion/completions/inkscape
%files -n %{devname}
%{_libdir}/lib2geom.a
%{_libdir}/cmake/2Geom
%{_includedir}/2geom-*
%{_libdir}/pkgconfig/2geom.pc