[6890] | 1 | %define cogl_version 1.12.0 |
---|
[6619] | 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/ |
---|
[6890] | 12 | Source0: http://www.clutter-project.org/sources/%{name}/1.12/%{name}-%{version}.tar.xz |
---|
[4616] | 13 | |
---|
| 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 15 | |
---|
| 16 | BuildRequires: gobject-introspection-devel |
---|
| 17 | BuildRequires: libXcomposite-devel |
---|
| 18 | BuildRequires: mesa-libGL-devel |
---|
| 19 | BuildRequires: pango-devel |
---|
[6890] | 20 | BuildRequires: gdk-pixbuf2-devel |
---|
[4616] | 21 | BuildRequires: gtk-doc |
---|
| 22 | |
---|
[4732] | 23 | Vendor: Project Vine |
---|
| 24 | Distribution: Vine Linux |
---|
| 25 | Packager: Takemikaduchi |
---|
[4616] | 26 | |
---|
| 27 | %description |
---|
| 28 | Cogl is a small open source library for using 3D graphics hardware to draw |
---|
| 29 | pretty pictures. The API departs from the flat state machine style of |
---|
| 30 | OpenGL and is designed to make it easy to write orthogonal components that |
---|
| 31 | can render without stepping on each others toes. |
---|
| 32 | |
---|
| 33 | %package devel |
---|
| 34 | Summary: Development tools for cogl |
---|
| 35 | Summary(ja): cogl の開発環境 |
---|
| 36 | Group: Development/Libraries |
---|
| 37 | Requires: %{name} = %{version}-%{release} |
---|
| 38 | Requires: pkgconfig |
---|
| 39 | |
---|
| 40 | %description devel |
---|
| 41 | Header files and libraries for building a extension library for the |
---|
| 42 | cogl. |
---|
| 43 | |
---|
| 44 | |
---|
| 45 | %package doc |
---|
| 46 | Summary: Documentation for cogl |
---|
| 47 | Summary(ja): cogl 用のドキュメント |
---|
| 48 | Group: Documentation |
---|
| 49 | Requires: %{name} = %{version}-%{release} |
---|
| 50 | BuildArch: noarch |
---|
| 51 | |
---|
| 52 | |
---|
| 53 | %description doc |
---|
| 54 | This package contains documentation for cogl. |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | %prep |
---|
| 58 | %setup -q |
---|
| 59 | |
---|
[6890] | 60 | for i in `grep -rl "<note>" ./`; |
---|
| 61 | do |
---|
| 62 | sed -i 's/<note>//' $i |
---|
| 63 | done |
---|
| 64 | |
---|
| 65 | for i in `grep -rl "<\/note>" ./`; |
---|
| 66 | do |
---|
| 67 | sed -i 's/<\/note>//' $i |
---|
| 68 | done |
---|
| 69 | |
---|
[4616] | 70 | %build |
---|
[6890] | 71 | |
---|
| 72 | %configure \ |
---|
| 73 | --enable-gtk-doc \ |
---|
[4616] | 74 | --disable-static \ |
---|
| 75 | --enable-cairo=yes \ |
---|
| 76 | --enable-gdk-pixbuf=yes \ |
---|
| 77 | --enable-cogl-pango=yes \ |
---|
| 78 | --enable-glx=yes \ |
---|
| 79 | --enable-introspection=yes |
---|
| 80 | |
---|
[4650] | 81 | make V=1 |
---|
[4616] | 82 | |
---|
| 83 | %install |
---|
| 84 | rm -rf $RPM_BUILD_ROOT |
---|
| 85 | #make DESTDIR=$RPM_BUILD_ROOT install |
---|
| 86 | make DESTDIR=$RPM_BUILD_ROOT install INSTALL="%{__install} -p -c" |
---|
| 87 | |
---|
| 88 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
| 89 | |
---|
| 90 | %find_lang %{name} |
---|
| 91 | |
---|
| 92 | %clean |
---|
| 93 | rm -rf $RPM_BUILD_ROOT |
---|
| 94 | |
---|
| 95 | %post -p /sbin/ldconfig |
---|
| 96 | %postun -p /sbin/ldconfig |
---|
| 97 | |
---|
| 98 | %files -f %{name}.lang |
---|
| 99 | %defattr(-,root,root,-) |
---|
| 100 | %doc ChangeLog AUTHORS COPYING NEWS README |
---|
| 101 | %{_libdir}/*.so.* |
---|
| 102 | %{_libdir}/girepository-1.0/*.typelib |
---|
[6011] | 103 | %{_datadir}/%{name}/examples-data/crate.jpg |
---|
[4616] | 104 | |
---|
| 105 | %files devel |
---|
| 106 | %defattr(-, root, root) |
---|
| 107 | %{_includedir}/cogl |
---|
| 108 | %{_libdir}/*.so |
---|
| 109 | %{_libdir}/pkgconfig/*.pc |
---|
| 110 | %{_datadir}/gir-1.0/*.gir |
---|
| 111 | |
---|
| 112 | %files doc |
---|
| 113 | %defattr(-, root, root) |
---|
| 114 | %{_datadir}/gtk-doc/html/cogl |
---|
| 115 | %{_datadir}/gtk-doc/html/cogl-2.0-experimental |
---|
| 116 | |
---|
| 117 | %changelog |
---|
[6890] | 118 | * Fri Sep 28 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.0-1 |
---|
| 119 | - new upstream release |
---|
| 120 | - remove Patch0 (04_fix_crash_on_free.patch) |
---|
| 121 | |
---|
[6619] | 122 | * Sun Jul 22 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.4-1 |
---|
| 123 | - new upstream release |
---|
| 124 | |
---|
[6581] | 125 | * Mon Jul 16 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.2-2 |
---|
| 126 | - add Patch0 (04_fix_crash_on_free.patch) |
---|
| 127 | |
---|
[6078] | 128 | * Sun Apr 22 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.2-1 |
---|
[6011] | 129 | - new upstream release |
---|
| 130 | |
---|
[5038] | 131 | * Fri Oct 21 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.2-1 |
---|
| 132 | - new upstream release |
---|
| 133 | |
---|
[4812] | 134 | * Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-1 |
---|
| 135 | - new upstream release |
---|
| 136 | |
---|
[4732] | 137 | * Tue Sep 06 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.7.8-1 |
---|
| 138 | - new upstream release |
---|
| 139 | - remove Patch0 |
---|
| 140 | |
---|
[4650] | 141 | * Sun Aug 21 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.7.6-1 |
---|
| 142 | - new upstream release |
---|
| 143 | - add Patch0 (cogl-1.7.6-configure.patch) |
---|
| 144 | |
---|
[4616] | 145 | * Sun Aug 14 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.7.4-1 |
---|
| 146 | - initial build for Vine Linux |
---|
| 147 | |
---|