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