[9475] | 1 | %define cogl_version 1.20.0 |
---|
[9569] | 2 | %define cogl_release 2%{?_dist_release} |
---|
[4616] | 3 | |
---|
| 4 | Name: cogl |
---|
| 5 | Version: %{cogl_version} |
---|
| 6 | Release: %{cogl_release} |
---|
| 7 | Summary: A small open source library for using 3D graphics hardware to draw pretty pictures |
---|
| 8 | |
---|
| 9 | Group: System Environment/Libraries |
---|
| 10 | License: LGPLv2+ |
---|
| 11 | URL: http://www.clutter-project.org/ |
---|
[9475] | 12 | Source0: http://www.clutter-project.org/sources/%{name}/1.20/%{name}-%{version}.tar.xz |
---|
[4616] | 13 | |
---|
[9569] | 14 | Patch0: cogl-1.20.0-git20150508.patch |
---|
| 15 | |
---|
[4616] | 16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 17 | |
---|
| 18 | BuildRequires: gobject-introspection-devel |
---|
| 19 | BuildRequires: libXcomposite-devel |
---|
[7633] | 20 | BuildRequires: libXrandr-devel |
---|
[4616] | 21 | BuildRequires: mesa-libGL-devel |
---|
[9073] | 22 | BuildRequires: mesa-libEGL-devel |
---|
[9569] | 23 | BuildRequires: mesa-libgbm-devel |
---|
[4616] | 24 | BuildRequires: pango-devel |
---|
[6890] | 25 | BuildRequires: gdk-pixbuf2-devel |
---|
[7938] | 26 | BuildRequires: gstreamer1-plugins-base-devel |
---|
[4616] | 27 | BuildRequires: gtk-doc |
---|
| 28 | |
---|
[4732] | 29 | Vendor: Project Vine |
---|
| 30 | Distribution: Vine Linux |
---|
| 31 | Packager: Takemikaduchi |
---|
[4616] | 32 | |
---|
| 33 | %description |
---|
| 34 | Cogl is a small open source library for using 3D graphics hardware to draw |
---|
| 35 | pretty pictures. The API departs from the flat state machine style of |
---|
| 36 | OpenGL and is designed to make it easy to write orthogonal components that |
---|
| 37 | can render without stepping on each others toes. |
---|
| 38 | |
---|
[7938] | 39 | |
---|
| 40 | %package devel |
---|
[4616] | 41 | Summary: Development tools for cogl |
---|
| 42 | Summary(ja): cogl の開発環境 |
---|
| 43 | Group: Development/Libraries |
---|
| 44 | Requires: %{name} = %{version}-%{release} |
---|
| 45 | Requires: pkgconfig |
---|
| 46 | |
---|
[7938] | 47 | %description devel |
---|
[4616] | 48 | Header files and libraries for building a extension library for the |
---|
| 49 | cogl. |
---|
| 50 | |
---|
| 51 | |
---|
[7938] | 52 | %package gstreamer |
---|
| 53 | Summary: Cogl GStreamer library |
---|
| 54 | Summary(ja): cogl gstreamer ライブラリ |
---|
| 55 | Group: System Environment/Libraries |
---|
| 56 | Requires: %{name} = %{version}-%{release} |
---|
| 57 | |
---|
| 58 | %description gstreamer |
---|
| 59 | %{summary} |
---|
| 60 | |
---|
| 61 | |
---|
| 62 | %package docs |
---|
[4616] | 63 | Summary: Documentation for cogl |
---|
| 64 | Summary(ja): cogl 用のドキュメント |
---|
| 65 | Group: Documentation |
---|
[7938] | 66 | Provides: %{name}-doc = %{version}-%{release} |
---|
| 67 | BuildArch: noarch |
---|
[4616] | 68 | |
---|
| 69 | |
---|
[7938] | 70 | %description docs |
---|
[4616] | 71 | This package contains documentation for cogl. |
---|
| 72 | |
---|
| 73 | |
---|
| 74 | %prep |
---|
| 75 | %setup -q |
---|
[9569] | 76 | %patch0 -p1 |
---|
[4616] | 77 | |
---|
[6890] | 78 | for i in `grep -rl "<note>" ./`; |
---|
| 79 | do |
---|
| 80 | sed -i 's/<note>//' $i |
---|
| 81 | done |
---|
| 82 | |
---|
| 83 | for i in `grep -rl "<\/note>" ./`; |
---|
| 84 | do |
---|
| 85 | sed -i 's/<\/note>//' $i |
---|
| 86 | done |
---|
| 87 | |
---|
[4616] | 88 | %build |
---|
[6890] | 89 | |
---|
| 90 | %configure \ |
---|
| 91 | --enable-gtk-doc \ |
---|
[4616] | 92 | --disable-static \ |
---|
| 93 | --enable-cairo=yes \ |
---|
| 94 | --enable-gdk-pixbuf=yes \ |
---|
[7938] | 95 | --enable-cogl-gst=yes \ |
---|
[4616] | 96 | --enable-cogl-pango=yes \ |
---|
| 97 | --enable-glx=yes \ |
---|
[9073] | 98 | --enable-introspection=yes \ |
---|
[9569] | 99 | --enable-kms-egl-platform=yes \ |
---|
[9073] | 100 | --enable-xlib-egl-platform=yes |
---|
[4616] | 101 | |
---|
[4650] | 102 | make V=1 |
---|
[4616] | 103 | |
---|
| 104 | %install |
---|
| 105 | rm -rf $RPM_BUILD_ROOT |
---|
| 106 | #make DESTDIR=$RPM_BUILD_ROOT install |
---|
| 107 | make DESTDIR=$RPM_BUILD_ROOT install INSTALL="%{__install} -p -c" |
---|
| 108 | |
---|
[7938] | 109 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
[4616] | 110 | |
---|
| 111 | %find_lang %{name} |
---|
| 112 | |
---|
| 113 | %clean |
---|
| 114 | rm -rf $RPM_BUILD_ROOT |
---|
| 115 | |
---|
| 116 | %post -p /sbin/ldconfig |
---|
| 117 | %postun -p /sbin/ldconfig |
---|
| 118 | |
---|
| 119 | %files -f %{name}.lang |
---|
| 120 | %defattr(-,root,root,-) |
---|
| 121 | %doc ChangeLog AUTHORS COPYING NEWS README |
---|
| 122 | %{_libdir}/*.so.* |
---|
| 123 | %{_libdir}/girepository-1.0/*.typelib |
---|
[6011] | 124 | %{_datadir}/%{name}/examples-data/crate.jpg |
---|
[4616] | 125 | |
---|
| 126 | %files devel |
---|
[7938] | 127 | %defattr(-,root,root,-) |
---|
[4616] | 128 | %{_includedir}/cogl |
---|
| 129 | %{_libdir}/*.so |
---|
| 130 | %{_libdir}/pkgconfig/*.pc |
---|
| 131 | %{_datadir}/gir-1.0/*.gir |
---|
| 132 | |
---|
[7938] | 133 | %files gstreamer |
---|
| 134 | %defattr(-,root,root,-) |
---|
| 135 | %{_libdir}/gstreamer-1.0/libgstcogl.so |
---|
| 136 | |
---|
| 137 | %files docs |
---|
| 138 | %defattr(-,root,root,-) |
---|
[4616] | 139 | %{_datadir}/gtk-doc/html/cogl |
---|
[7938] | 140 | %{_datadir}/gtk-doc/html/cogl-gst |
---|
[4616] | 141 | %{_datadir}/gtk-doc/html/cogl-2.0-experimental |
---|
| 142 | |
---|
| 143 | %changelog |
---|
[9569] | 144 | * Wed May 20 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.20.0-2 |
---|
| 145 | - add Patch0 (cogl-1.20.0-git20150508.patch) |
---|
| 146 | - add BuildRequires: mesa-libgbm-devel |
---|
| 147 | |
---|
[9475] | 148 | * Sun Mar 29 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.20.0-1 |
---|
| 149 | - new upstream release |
---|
| 150 | |
---|
[9073] | 151 | * Sun Oct 26 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.18.2-1 |
---|
| 152 | - new upstream release |
---|
| 153 | - add BuildRequires: mesa-libEGL-devel |
---|
| 154 | |
---|
[8353] | 155 | * Sat Mar 29 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.18.0-1 |
---|
| 156 | - new upstream release |
---|
| 157 | |
---|
[8219] | 158 | * Sat Jan 25 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.16.2-1 |
---|
| 159 | - new upstream release |
---|
| 160 | |
---|
[8085] | 161 | * Tue Dec 31 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.16.0-2 |
---|
| 162 | - rebuild with VineSeed environment |
---|
| 163 | |
---|
[7938] | 164 | * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.16.0-1 |
---|
| 165 | - new upstream release |
---|
| 166 | - add BuildRequire: gstreamer1-plugins-base-devel |
---|
| 167 | |
---|
[7633] | 168 | * Thu Apr 18 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.14.0-1 |
---|
| 169 | - new upstream release |
---|
| 170 | - add BuildRequires: libXrandr-devel |
---|
| 171 | |
---|
[7294] | 172 | * Sun Jan 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.2-1 |
---|
| 173 | - new upstream release |
---|
| 174 | |
---|
[6890] | 175 | * Fri Sep 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.0-1 |
---|
| 176 | - new upstream release |
---|
| 177 | - remove Patch0 (04_fix_crash_on_free.patch) |
---|
| 178 | |
---|
[6619] | 179 | * Sun Jul 22 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.4-1 |
---|
| 180 | - new upstream release |
---|
| 181 | |
---|
[6581] | 182 | * Mon Jul 16 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.2-2 |
---|
| 183 | - add Patch0 (04_fix_crash_on_free.patch) |
---|
| 184 | |
---|
[6078] | 185 | * Sun Apr 22 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.2-1 |
---|
[6011] | 186 | - new upstream release |
---|
| 187 | |
---|
[5038] | 188 | * Fri Oct 21 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.2-1 |
---|
| 189 | - new upstream release |
---|
| 190 | |
---|
[4812] | 191 | * Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-1 |
---|
| 192 | - new upstream release |
---|
| 193 | |
---|
[4732] | 194 | * Tue Sep 06 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.7.8-1 |
---|
| 195 | - new upstream release |
---|
| 196 | - remove Patch0 |
---|
| 197 | |
---|
[4650] | 198 | * Sun Aug 21 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.7.6-1 |
---|
| 199 | - new upstream release |
---|
| 200 | - add Patch0 (cogl-1.7.6-configure.patch) |
---|
| 201 | |
---|
[4616] | 202 | * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.7.4-1 |
---|
| 203 | - initial build for Vine Linux |
---|
| 204 | |
---|