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