]>
Commit | Line | Data |
---|---|---|
ee0a693e JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs | |
4 | ||
9e9cd809 JB |
5 | Summary: C++ wrappers for Clutter library |
6 | Summary(pl.UTF-8): Obudowanie C++ do biblioteki Clutter | |
7 | Name: cluttermm | |
8 | Version: 1.17.3 | |
ee0a693e | 9 | Release: 3 |
9e9cd809 JB |
10 | License: LGPL v2.1+ |
11 | Group: X11/Libraries | |
12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/cluttermm/1.17/%{name}-%{version}.tar.xz | |
13 | # Source0-md5: 429fa3a4ee1fad9ca2bc46b174165dfd | |
14 | URL: https://developer.gnome.org/cluttermm/ | |
15 | BuildRequires: atkmm-devel >= 2.22.2 | |
ee0a693e JB |
16 | BuildRequires: autoconf >= 2.59 |
17 | BuildRequires: automake >= 1:1.9 | |
9e9cd809 JB |
18 | BuildRequires: clutter-devel >= 1.18.0 |
19 | # for examples | |
20 | BuildRequires: gtkmm3-devel >= 3.10 | |
21 | BuildRequires: libstdc++-devel | |
ee0a693e | 22 | BuildRequires: libtool >= 2:1.5 |
9e9cd809 JB |
23 | BuildRequires: mm-common >= 0.8 |
24 | BuildRequires: pangomm-devel >= 2.27.1 | |
25 | BuildRequires: pkgconfig | |
26 | BuildRequires: tar >= 1:1.22 | |
27 | BuildRequires: xz | |
28 | Requires: atkmm >= 2.22.2 | |
29 | Requires: clutter >= 1.18.0 | |
30 | Requires: pangomm >= 2.27.1 | |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
32 | ||
33 | %description | |
34 | C++ wrappers for Clutter library. | |
35 | ||
36 | %description -l pl.UTF-8 | |
37 | Obudowanie C++ do biblioteki Clutter. | |
38 | ||
39 | %package devel | |
40 | Summary: Header files for cluttermm library | |
41 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki cluttermm | |
42 | Group: X11/Development/Libraries | |
43 | Requires: %{name} = %{version}-%{release} | |
44 | Requires: atkmm-devel >= 2.22.2 | |
45 | Requires: clutter-devel >= 1.18.0 | |
46 | Requires: pangomm-devel >= 2.27.1 | |
47 | ||
48 | %description devel | |
49 | Header files for cluttermm library. | |
50 | ||
51 | %description devel -l pl.UTF-8 | |
52 | Pliki nagłówkowe biblioteki cluttermm. | |
53 | ||
54 | %package static | |
55 | Summary: Static cluttermm library | |
56 | Summary(pl.UTF-8): Statyczna biblioteka cluttermm | |
57 | Group: X11/Development/Libraries | |
58 | Requires: %{name}-devel = %{version}-%{release} | |
59 | ||
60 | %description static | |
61 | Static cluttermm library. | |
62 | ||
63 | %description static -l pl.UTF-8 | |
64 | Statyczna biblioteka cluttermm. | |
65 | ||
66 | %package apidocs | |
67 | Summary: cluttermm API documentation | |
68 | Summary(pl.UTF-8): Dokumentacja API cluttermm | |
69 | Group: Documentation | |
9e9cd809 | 70 | BuildArch: noarch |
9e9cd809 JB |
71 | |
72 | %description apidocs | |
73 | cluttermm API documentation. | |
74 | ||
75 | %description apidocs -l pl.UTF-8 | |
76 | Dokumentacja API cluttermm. | |
77 | ||
78 | %prep | |
79 | %setup -q | |
80 | ||
81 | %build | |
ee0a693e JB |
82 | %{__libtoolize} |
83 | %{__aclocal} -I build | |
84 | %{__autoconf} | |
85 | %{__autoheader} | |
86 | %{__automake} | |
9e9cd809 JB |
87 | %configure \ |
88 | --disable-silent-rules \ | |
89 | --enable-gtk-doc \ | |
ee0a693e | 90 | %{?with_static_libs:--enable-static} \ |
9e9cd809 JB |
91 | --with-html-dir=%{_gtkdocdir} |
92 | ||
93 | %{__make} | |
94 | ||
95 | %install | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | %{__make} install \ | |
99 | DESTDIR=$RPM_BUILD_ROOT | |
100 | ||
101 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
102 | ||
103 | %clean | |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
106 | %post -p /sbin/ldconfig | |
107 | %postun -p /sbin/ldconfig | |
108 | ||
109 | %files | |
110 | %defattr(644,root,root,755) | |
111 | %doc ChangeLog NEWS README TODO | |
112 | %attr(755,root,root) %{_libdir}/libcluttermm-1.0.so.*.*.* | |
113 | %attr(755,root,root) %ghost %{_libdir}/libcluttermm-1.0.so.1 | |
114 | ||
115 | %files devel | |
116 | %defattr(644,root,root,755) | |
117 | %attr(755,root,root) %{_libdir}/libcluttermm-1.0.so | |
118 | %dir %{_libdir}/cluttermm-1.0 | |
119 | %{_libdir}/cluttermm-1.0/include | |
120 | %{_includedir}/cluttermm-1.0 | |
121 | %{_datadir}/cluttermm-1.0 | |
122 | %{_pkgconfigdir}/cluttermm-1.0.pc | |
123 | ||
ee0a693e | 124 | %if %{with static_libs} |
9e9cd809 JB |
125 | %files static |
126 | %defattr(644,root,root,755) | |
127 | %{_libdir}/libcluttermm-1.0.a | |
ee0a693e | 128 | %endif |
9e9cd809 JB |
129 | |
130 | %files apidocs | |
131 | %defattr(644,root,root,755) | |
132 | %{_docdir}/cluttermm-1.0 | |
133 | %{_datadir}/devhelp/books/cluttermm-1.0 |