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