/[packages]/cauldron/clutter/current/SPECS/clutter.spec
ViewVC logotype

Contents of /cauldron/clutter/current/SPECS/clutter.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 127753 - (show annotations) (download)
Thu Jul 21 15:07:01 2011 UTC (12 years, 8 months ago) by fwang
File size: 5075 byte(s)
add upstream patch to build with cogl 1.7.4
1 %define name clutter
2 %define version 1.7.4
3 %define git 0
4 %define rel 5
5
6 %if ! %git
7 %define release %mkrel %{rel}
8 %else
9 %define release %mkrel -c %{git} %{rel}
10 %endif
11
12 %define api 1.0
13 %define major 0
14 %define girmajor 1.0
15
16 %define libname %mklibname %{name}-glx %{api} %{major}
17 %define libnamedevel %mklibname -d %{name}-glx %{api}
18 %define girname %mklibname %{name}-glx-gir %{girmajor}
19
20 Summary: Software library for fast, visually rich GUIs
21 Name: %{name}
22 Version: %{version}
23 Release: %{release}
24 %if %git
25 Source0: %{name}-%{git}.tar.bz2
26 %else
27 Source0: ftp://ftp.gnome.org/pub/GNOME/sources/clutter/1.7/%{name}-%{version}.tar.xz
28 %endif
29 Patch0: clutter-1.7.4-cogl-1.7.4.patch
30 License: LGPLv2+
31 Group: Graphics
32 Url: http://clutter-project.org/
33 BuildRequires: libx11-devel
34 BuildRequires: libxext-devel
35 BuildRequires: libxcomposite-devel >= 0.4
36 BuildRequires: libxdamage-devel
37 BuildRequires: libxfixes-devel >= 3
38 BuildRequires: GL-devel
39 BuildRequires: atk-devel >= 1.17
40 BuildRequires: pango-devel >= 1.20
41 BuildRequires: glib2-devel >= 2.26.0
42 BuildRequires: libgdk_pixbuf2.0-devel >= 2.0
43 BuildRequires: libjson-glib-devel >= 0.12.0
44 BuildRequires: gobject-introspection-devel >= 0.9.5
45 BuildRequires: gtk-doc
46 BuildRequires: docbook-dtd412-xml
47 BuildRequires: x11-server-xvfb
48 BuildRequires: cogl-devel
49
50 %description
51 Clutter is an open source software library for creating fast, visually rich
52 graphical user interfaces. The most obvious example of potential usage is in
53 media center type applications. We hope however it can be used for a lot more.
54
55 Clutter uses OpenGL (and soon optionally OpenGL ES) for rendering but with an
56 API which hides the underlying GL complexity from the developer. The Clutter
57 API is intended to be easy to use, efficient and flexible.
58
59 #--------------------------------------------------------------------
60
61 %package i18n
62 Summary: Translations for %{name}
63 Group: System/Internationalization
64
65 %description i18n
66 This contains the translation data for %{name}.
67
68 %files i18n -f %{name}-%{api}.lang
69
70 #--------------------------------------------------------------------
71
72 %package -n %{libname}
73 Summary: Software library for fast, visually rich GUIs
74 Group: System/Libraries
75 Requires: %{name}-i18n >= %{version}-%{release}
76 Requires: %{girname}
77 Provides: %{mklibname %{name} %{api} %{major}} = %{version}-%{release}
78 Obsoletes: %{mklibname %{name} %{api} %{major}} < 1.7.4
79
80 %description -n %{libname}
81 Clutter is an open source software library for creating fast, visually rich
82 graphical user interfaces. The most obvious example of potential usage is in
83 media center type applications. We hope however it can be used for a lot more.
84
85 Clutter uses OpenGL (and soon optionally OpenGL ES) for rendering but with an
86 API which hides the underlying GL complexity from the developer. The Clutter
87 API is intended to be easy to use, efficient and flexible.
88
89 %files -n %{libname}
90 %{_libdir}/lib%{name}-glx-%{api}.so.%{major}*
91
92 #--------------------------------------------------------------------
93
94 %package -n %{libnamedevel}
95 Summary: Development headers/libraries for %{name}
96 Group: Development/X11
97 Provides: %{name}-devel = %{version}-%{release}
98 Provides: %{name}-glx-devel = %{version}-%{release}
99 Provides: %{mklibname -d %{name} %{api}} = %{version}-%{release}
100 Obsoletes: %{mklibname -d %{name} %{api}} < 1.7.4
101 Requires: %{libname} = %{version}-%{release}
102
103 %description -n %{libnamedevel}
104 Development headers/libraries for %{name} (see %{libname} package)
105
106 %files -n %{libnamedevel}
107 %{_libdir}/pkgconfig/cally-%{api}.pc
108 %{_libdir}/pkgconfig/%{name}-%{api}.pc
109 %{_libdir}/pkgconfig/%{name}-glx-%{api}.pc
110 %{_libdir}/pkgconfig/%{name}-cogl-%{api}.pc
111 %{_libdir}/pkgconfig/%{name}-x11-%{api}.pc
112 %{_libdir}/lib%{name}-glx-%{api}.so
113 %dir %{_includedir}/%{name}-%{api}
114 %{_includedir}/%{name}-%{api}/cally
115 %{_includedir}/%{name}-%{api}/%{name}
116 %{_datadir}/gir-1.0/Cally-%{girmajor}.gir
117 %{_datadir}/gir-1.0/Clutter-%{girmajor}.gir
118 %{_datadir}/gir-1.0/ClutterX11-%{girmajor}.gir
119 %{_datadir}/gtk-doc/html/cally
120 %{_datadir}/gtk-doc/html/%{name}
121
122 #--------------------------------------------------------------------
123
124 %package -n %{girname}
125 Summary: GObject Introspection interface description for %{name}
126 Group: System/Libraries
127 Requires: %{libname} = %{version}-%{release}
128 Conflicts: %{mklibname %{name}-glx1.0-gir 1.0} < 1.7.4-3
129
130 %description -n %{girname}
131 GObject Introspection interface description for %{name}.
132
133 %files -n %{girname}
134 %{_libdir}/girepository-1.0/Cally-%{girmajor}.typelib
135 %{_libdir}/girepository-1.0/Clutter-%{girmajor}.typelib
136 %{_libdir}/girepository-1.0/ClutterX11-%{girmajor}.typelib
137
138
139 #--------------------------------------------------------------------
140
141 %prep
142 %if %{git}
143 %setup -q -n %{name}
144 ./autogen.sh -V
145 %else
146 %setup -q
147 %endif
148 %apply_patches
149 #autoreconf -fi
150
151 %build
152 %configure2_5x --enable-gtk-doc
153
154 #git from 20090602 does not work with parallel make
155 xvfb-run %make V=1
156
157 %install
158 rm -rf %{buildroot}
159
160 %makeinstall_std
161 %find_lang %{name}-%{api}
162
163 # we don't want these
164 find %{buildroot} -name '*.la' -exec rm -f {} ';'
165

  ViewVC Help
Powered by ViewVC 1.1.30