]>
Commit | Line | Data |
---|---|---|
7a13231f MB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
4 | %bcond_without static_libs # don't build static libraries | |
5 | # | |
6 | Summary: A library for using real 3D models within a Clutter scene | |
3f91e871 | 7 | Summary(pl.UTF-8): Biblioteka pozwalająca na używanie prawdziwych modeli 3D wewnątrz sceny Clutter |
7a13231f MB |
8 | Name: mash |
9 | Version: 0.2.0 | |
d0a72f39 | 10 | Release: 6 |
7a13231f MB |
11 | License: LGPL v2+ |
12 | Group: X11/Libraries | |
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 | |
3f91e871 | 16 | BuildRequires: autoconf >= 2.50 |
7a13231f MB |
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 | |
25 | BuildRequires: xz | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
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. | |
33 | ||
3f91e871 JB |
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 | |
39 | światłami. | |
40 | ||
7a13231f MB |
41 | %package devel |
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 | |
47 | ||
48 | %description devel | |
49 | Header files for mash library. | |
50 | ||
51 | %description devel -l pl.UTF-8 | |
52 | Pliki nagłówkowe biblioteki mash. | |
53 | ||
54 | %package static | |
55 | Summary: Static mash library | |
56 | Summary(pl.UTF-8): Statyczna biblioteka mash | |
57 | Group: Development/Libraries | |
58 | Requires: %{name}-devel = %{version}-%{release} | |
59 | ||
60 | %description static | |
61 | Static mash library. | |
62 | ||
63 | %description static -l pl.UTF-8 | |
64 | Statyczna biblioteka mash. | |
65 | ||
66 | %package apidocs | |
67 | Summary: mash API documentation | |
68 | Summary(pl.UTF-8): Dokumentacja API biblioteki mash | |
69 | Group: Documentation | |
70 | Requires: gtk-doc-common | |
71 | ||
72 | %description apidocs | |
73 | API and internal documentation for mash library. | |
74 | ||
75 | %description apidocs -l pl.UTF-8 | |
76 | Dokumentacja API biblioteki mash. | |
77 | ||
78 | %prep | |
79 | %setup -q | |
80 | ||
81 | %build | |
82 | %{__libtoolize} | |
83 | %{__aclocal} -I m4 | |
84 | %{__autoconf} | |
85 | %{__autoheader} | |
86 | %{__automake} | |
87 | %configure \ | |
88 | %{__enable_disable static_libs static} \ | |
89 | %{__enable_disable apidocs gtk-doc} \ | |
90 | --with-html-dir=%{_gtkdocdir} \ | |
91 | --disable-silent-rules | |
92 | %{__make} | |
93 | ||
94 | %install | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
97 | %{__make} install \ | |
98 | DESTDIR=$RPM_BUILD_ROOT | |
99 | ||
100 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
101 | ||
102 | %clean | |
103 | rm -rf $RPM_BUILD_ROOT | |
104 | ||
105 | %post -p /sbin/ldconfig | |
106 | %postun -p /sbin/ldconfig | |
107 | ||
108 | %files | |
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 | |
114 | ||
115 | %files devel | |
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 | |
121 | ||
122 | %if %{with static_libs} | |
123 | %files static | |
124 | %defattr(644,root,root,755) | |
125 | %{_libdir}/libmash-0.2.a | |
126 | %endif | |
127 | ||
128 | %if %{with apidocs} | |
129 | %files apidocs | |
130 | %defattr(644,root,root,755) | |
131 | %{_gtkdocdir}/mash | |
132 | %endif |