3 %bcond_without apidocs # do not build and package API docs
4 %bcond_without static_libs # don't build static libraries
6 Summary: A library for using real 3D models within a Clutter scene
7 Summary(pl.UTF-8): Biblioteka pozwalająca na używanie prawdziwych modeli 3D wewnątrz sceny Clutter
13 Source0: http://source.clutter-project.org/sources/mash/0.2/%{name}-%{version}.tar.xz
14 # Source0-md5: 9eda552784291707e667be4d55917794
15 URL: http://wiki.clutter-project.org/wiki/Mash
16 BuildRequires: autoconf >= 2.50
17 BuildRequires: automake >= 1:1.9
18 BuildRequires: clutter-devel >= 1.6.0
19 BuildRequires: glib2-devel >= 1:2.16.0
20 BuildRequires: gobject-introspection-devel >= 0.10.0
21 BuildRequires: gtk-doc >= 1.14
22 BuildRequires: libtool
23 BuildRequires: pkgconfig
24 BuildRequires: tar >= 1:1.22
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 Mash is a small library for using real 3D models within a Clutter
30 scene. Models can be exported from Blender or other 3D modeling
31 software as PLY files and then used as actors. It also supports a
32 lighting model with animatable lights.
34 %description -l pl.UTF-8
35 Mash to mała biblioteka pozwalająca na używanie prawdziwych modeli 3D
36 wewnątrz sceny Clutter. Modele można eksportować z Blendera lub innego
37 programu do modelowania 3D w postaci plików PLY, a następnie używać
38 ich jako aktorów. Obsługiwane są także modele oświetlenia z ruchomymi
42 Summary: Header files for mash library
43 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki mash
44 Group: X11/Development/Libraries
45 Requires: %{name} = %{version}-%{release}
46 Requires: clutter-devel >= 1.6.0
49 Header files for mash library.
51 %description devel -l pl.UTF-8
52 Pliki nagłówkowe biblioteki mash.
55 Summary: Static mash library
56 Summary(pl.UTF-8): Statyczna biblioteka mash
57 Group: Development/Libraries
58 Requires: %{name}-devel = %{version}-%{release}
63 %description static -l pl.UTF-8
64 Statyczna biblioteka mash.
67 Summary: mash API documentation
68 Summary(pl.UTF-8): Dokumentacja API biblioteki mash
70 Requires: gtk-doc-common
73 API and internal documentation for mash library.
75 %description apidocs -l pl.UTF-8
76 Dokumentacja API biblioteki mash.
88 %{__enable_disable static_libs static} \
89 %{__enable_disable apidocs gtk-doc} \
90 --with-html-dir=%{_gtkdocdir} \
91 --disable-silent-rules
95 rm -rf $RPM_BUILD_ROOT
98 DESTDIR=$RPM_BUILD_ROOT
100 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
103 rm -rf $RPM_BUILD_ROOT
105 %post -p /sbin/ldconfig
106 %postun -p /sbin/ldconfig
109 %defattr(644,root,root,755)
110 %doc AUTHORS ChangeLog NEWS README
111 %attr(755,root,root) %{_libdir}/libmash-0.2.so.*.*.*
112 %attr(755,root,root) %ghost %{_libdir}/libmash-0.2.so.0
113 %{_libdir}/girepository-1.0/Mash-0.2.typelib
116 %defattr(644,root,root,755)
117 %attr(755,root,root) %{_libdir}/libmash-0.2.so
118 %{_datadir}/gir-1.0/Mash-0.2.gir
119 %{_includedir}/mash-0.2
120 %{_pkgconfigdir}/mash-0.2.pc
122 %if %{with static_libs}
124 %defattr(644,root,root,755)
125 %{_libdir}/libmash-0.2.a
130 %defattr(644,root,root,755)