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