1 | # Note: this .spec is borrowed from cairo-1.12.14-2.fc19.src.rpm
|
---|
2 |
|
---|
3 | %define pixman_version 0.18.4
|
---|
4 | %define freetype_version 2.1.9
|
---|
5 | %define fontconfig_version 2.2.95
|
---|
6 |
|
---|
7 | Summary: A 2D graphics library
|
---|
8 | Name: cairo
|
---|
9 | Version: 1.12.18
|
---|
10 | Release: 4%{?dist}
|
---|
11 | URL: http://cairographics.org
|
---|
12 | #VCS: git:git://git.freedesktop.org/git/cairo
|
---|
13 | #Source0: http://cairographics.org/releases/%{name}-%{version}.tar.xz
|
---|
14 | License: LGPLv2 or MPLv1.1
|
---|
15 | Group: System Environment/Libraries
|
---|
16 | Vendor: bww bitwise works GmbH
|
---|
17 |
|
---|
18 | %scm_source svn http://svn.netlabs.org/repos/ports/cairo/trunk 1578
|
---|
19 |
|
---|
20 | BuildRequires: gcc make subversion zip
|
---|
21 |
|
---|
22 | BuildRequires: pkgconfig
|
---|
23 | BuildRequires: libpng-devel
|
---|
24 | BuildRequires: libxml2-devel
|
---|
25 | BuildRequires: pixman-devel >= %{pixman_version}
|
---|
26 | BuildRequires: freetype-devel >= %{freetype_version}
|
---|
27 | BuildRequires: fontconfig-devel >= %{fontconfig_version}
|
---|
28 | BuildRequires: glib2-devel
|
---|
29 | #BuildRequires: librsvg2-devel
|
---|
30 | #BuildRequires: mesa-libGL-devel
|
---|
31 | #BuildRequires: mesa-libEGL-devel
|
---|
32 | BuildRequires: libcx-devel
|
---|
33 | BuildRequires: os2tk45-headers
|
---|
34 |
|
---|
35 | %description
|
---|
36 | Cairo is a 2D graphics library designed to provide high-quality display
|
---|
37 | and print output. Currently supported output targets include the X Window
|
---|
38 | System, OpenGL (via glitz), in-memory image buffers, and image files (PDF,
|
---|
39 | PostScript, and SVG).
|
---|
40 |
|
---|
41 | Cairo is designed to produce consistent output on all output media while
|
---|
42 | taking advantage of display hardware acceleration when available (e.g.
|
---|
43 | through the X Render Extension or OpenGL).
|
---|
44 |
|
---|
45 | %package devel
|
---|
46 | Summary: Development files for cairo
|
---|
47 | Group: Development/Libraries
|
---|
48 | Requires: %{name} = %{version}-%{release}
|
---|
49 | Requires: libpng-devel
|
---|
50 | Requires: pixman-devel >= %{pixman_version}
|
---|
51 | Requires: freetype-devel >= %{freetype_version}
|
---|
52 | Requires: fontconfig-devel >= %{fontconfig_version}
|
---|
53 |
|
---|
54 | %description devel
|
---|
55 | Cairo is a 2D graphics library designed to provide high-quality display
|
---|
56 | and print output.
|
---|
57 |
|
---|
58 | This package contains libraries, header files and developer documentation
|
---|
59 | needed for developing software which uses the cairo graphics library.
|
---|
60 |
|
---|
61 | %package gobject
|
---|
62 | Summary: GObject bindings for cairo
|
---|
63 | Group: System Environment/Libraries
|
---|
64 | Requires: %{name} = %{version}-%{release}
|
---|
65 |
|
---|
66 | %description gobject
|
---|
67 | Cairo is a 2D graphics library designed to provide high-quality display
|
---|
68 | and print output.
|
---|
69 |
|
---|
70 | This package contains functionality to make cairo graphics library
|
---|
71 | integrate well with the GObject object system used by GNOME.
|
---|
72 |
|
---|
73 | %package gobject-devel
|
---|
74 | Summary: Development files for cairo-gobject
|
---|
75 | Group: Development/Libraries
|
---|
76 | Requires: %{name}-devel = %{version}-%{release}
|
---|
77 | Requires: %{name}-gobject = %{version}-%{release}
|
---|
78 |
|
---|
79 | %description gobject-devel
|
---|
80 | Cairo is a 2D graphics library designed to provide high-quality display
|
---|
81 | and print output.
|
---|
82 |
|
---|
83 | This package contains libraries, header files and developer documentation
|
---|
84 | needed for developing software which uses the cairo Gobject library.
|
---|
85 |
|
---|
86 | #%package tools
|
---|
87 | #Summary: Development tools for cairo
|
---|
88 | #Group: Development/Tools
|
---|
89 |
|
---|
90 | #%description tools
|
---|
91 | #Cairo is a 2D graphics library designed to provide high-quality display
|
---|
92 | #and print output.
|
---|
93 | #
|
---|
94 | #This package contains tools for working with the cairo graphics library.
|
---|
95 | # * cairo-trace: Record cairo library calls for later playback
|
---|
96 |
|
---|
97 | %debug_package
|
---|
98 |
|
---|
99 | %prep
|
---|
100 | %scm_setup
|
---|
101 |
|
---|
102 | # Generate confuigure and friends
|
---|
103 | NOCONFIGURE=1 autogen.sh
|
---|
104 |
|
---|
105 | %build
|
---|
106 | # We can't add Toolkit includes in _INCS (it will casuse then to be searched
|
---|
107 | # before GCC headers and lead to conflicts), so use -idirafter.
|
---|
108 | export CPPFLAGS="-idirafter %{_includedir}/os2tk45 -DOS2EMX_PLAIN_CHAR"
|
---|
109 | export CPPFLAGS="$CPPFLAGS -DOS2_DYNAMIC_DIVE"
|
---|
110 | export LDFLAGS="-Zhigh-mem"
|
---|
111 | export LIBS="-lcx"
|
---|
112 | %configure --disable-static \
|
---|
113 | --enable-os2 \
|
---|
114 | --enable-ft \
|
---|
115 | --enable-ps \
|
---|
116 | --enable-pdf \
|
---|
117 | --enable-svg \
|
---|
118 | --enable-tee \
|
---|
119 | --enable-gobject \
|
---|
120 | --disable-gtk-doc
|
---|
121 |
|
---|
122 | # --enable-gl
|
---|
123 |
|
---|
124 | make V=1 %{?_smp_mflags}
|
---|
125 |
|
---|
126 | %install
|
---|
127 | make install V=1 DESTDIR=$RPM_BUILD_ROOT
|
---|
128 | rm $RPM_BUILD_ROOT%{_libdir}/*.la
|
---|
129 |
|
---|
130 | %files
|
---|
131 | %doc AUTHORS BIBLIOGRAPHY BUGS COPYING COPYING-LGPL-2.1 COPYING-MPL-1.1 NEWS README
|
---|
132 | %{_libdir}/cairo?.dll
|
---|
133 | %{_libdir}/cairos?.dll
|
---|
134 | #%{_bindir}/cairo-sphinx
|
---|
135 |
|
---|
136 | %files devel
|
---|
137 | %doc ChangeLog PORTING_GUIDE
|
---|
138 | %dir %{_includedir}/cairo/
|
---|
139 | %{_includedir}/cairo/cairo-deprecated.h
|
---|
140 | %{_includedir}/cairo/cairo-features.h
|
---|
141 | %{_includedir}/cairo/cairo-ft.h
|
---|
142 | %{_includedir}/cairo/cairo.h
|
---|
143 | %{_includedir}/cairo/cairo-pdf.h
|
---|
144 | %{_includedir}/cairo/cairo-ps.h
|
---|
145 | %{_includedir}/cairo/cairo-script-interpreter.h
|
---|
146 | %{_includedir}/cairo/cairo-svg.h
|
---|
147 | %{_includedir}/cairo/cairo-tee.h
|
---|
148 | %{_includedir}/cairo/cairo-version.h
|
---|
149 | %{_includedir}/cairo/cairo-os2.h
|
---|
150 | #%{_includedir}/cairo/cairo-gl.h
|
---|
151 | %{_includedir}/cairo/cairo-script.h
|
---|
152 | %{_libdir}/cairo_dll.a
|
---|
153 | %{_libdir}/cairo?_dll.a
|
---|
154 | %{_libdir}/cairo-script-interpreter_dll.a
|
---|
155 | %{_libdir}/cairo-script-interpreter?_dll.a
|
---|
156 | %{_libdir}/pkgconfig/cairo-fc.pc
|
---|
157 | %{_libdir}/pkgconfig/cairo-ft.pc
|
---|
158 | %{_libdir}/pkgconfig/cairo.pc
|
---|
159 | %{_libdir}/pkgconfig/cairo-pdf.pc
|
---|
160 | %{_libdir}/pkgconfig/cairo-png.pc
|
---|
161 | %{_libdir}/pkgconfig/cairo-ps.pc
|
---|
162 | %{_libdir}/pkgconfig/cairo-svg.pc
|
---|
163 | %{_libdir}/pkgconfig/cairo-tee.pc
|
---|
164 | %{_libdir}/pkgconfig/cairo-os2.pc
|
---|
165 | #%{_libdir}/pkgconfig/cairo-egl.pc
|
---|
166 | #%{_libdir}/pkgconfig/cairo-gl.pc
|
---|
167 | #%{_libdir}/pkgconfig/cairo-glx.pc
|
---|
168 | %{_libdir}/pkgconfig/cairo-script.pc
|
---|
169 | # @todo no docs for now as we need gtk-doc for them!
|
---|
170 | #%{_datadir}/gtk-doc/html/cairo
|
---|
171 |
|
---|
172 | %files gobject
|
---|
173 | %{_libdir}/cairog?.dll
|
---|
174 |
|
---|
175 | %files gobject-devel
|
---|
176 | %{_includedir}/cairo/cairo-gobject.h
|
---|
177 | %{_libdir}/cairo-gobject_dll.a
|
---|
178 | %{_libdir}/cairo-gobject?_dll.a
|
---|
179 | %{_libdir}/pkgconfig/cairo-gobject.pc
|
---|
180 |
|
---|
181 | # @todo do we need it at all?
|
---|
182 | #%files tools
|
---|
183 | #%{_bindir}/cairo-trace
|
---|
184 | #%{_libdir}/cairo/
|
---|
185 |
|
---|
186 | %changelog
|
---|
187 | * Tue Aug 21 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.12.18-4
|
---|
188 | - rebuild with latest tool chain
|
---|
189 | - use new scm_ macros
|
---|
190 | - use libcx
|
---|
191 |
|
---|
192 | * Sat Jun 18 2016 yd <yd@os2power.com> 1.12.18-3
|
---|
193 | - rebuild for glib2 2.33.
|
---|
194 |
|
---|
195 | * Thu May 26 2016 Dmitriy Kuminov <coding@dmik.org> 1.12.18-2
|
---|
196 | - Fix assertions and SIGABRT on application termination.
|
---|
197 |
|
---|
198 | * Fri Feb 26 2016 Dmitriy Kuminov <coding@dmik.org> 1.12.18-1
|
---|
199 | - Update to version 1.12.18.
|
---|
200 |
|
---|
201 | * Sat Feb 20 2016 Dmitriy Kuminov <coding@dmik.org> 1.12.0-1
|
---|
202 | - Initial package for version 1.12.0.
|
---|