]>
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 | |
ee0a693e | 70 | %if "%{_rpmversion}" >= "4.6" |
9e9cd809 JB |
71 | BuildArch: noarch |
72 | %endif | |
73 | ||
74 | %description apidocs | |
75 | cluttermm API documentation. | |
76 | ||
77 | %description apidocs -l pl.UTF-8 | |
78 | Dokumentacja API cluttermm. | |
79 | ||
80 | %prep | |
81 | %setup -q | |
82 | ||
83 | %build | |
ee0a693e JB |
84 | %{__libtoolize} |
85 | %{__aclocal} -I build | |
86 | %{__autoconf} | |
87 | %{__autoheader} | |
88 | %{__automake} | |
9e9cd809 JB |
89 | %configure \ |
90 | --disable-silent-rules \ | |
91 | --enable-gtk-doc \ | |
ee0a693e | 92 | %{?with_static_libs:--enable-static} \ |
9e9cd809 JB |
93 | --with-html-dir=%{_gtkdocdir} |
94 | ||
95 | %{__make} | |
96 | ||
97 | %install | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %{__make} install \ | |
101 | DESTDIR=$RPM_BUILD_ROOT | |
102 | ||
103 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
104 | ||
105 | %clean | |
106 | rm -rf $RPM_BUILD_ROOT | |
107 | ||
108 | %post -p /sbin/ldconfig | |
109 | %postun -p /sbin/ldconfig | |
110 | ||
111 | %files | |
112 | %defattr(644,root,root,755) | |
113 | %doc ChangeLog NEWS README TODO | |
114 | %attr(755,root,root) %{_libdir}/libcluttermm-1.0.so.*.*.* | |
115 | %attr(755,root,root) %ghost %{_libdir}/libcluttermm-1.0.so.1 | |
116 | ||
117 | %files devel | |
118 | %defattr(644,root,root,755) | |
119 | %attr(755,root,root) %{_libdir}/libcluttermm-1.0.so | |
120 | %dir %{_libdir}/cluttermm-1.0 | |
121 | %{_libdir}/cluttermm-1.0/include | |
122 | %{_includedir}/cluttermm-1.0 | |
123 | %{_datadir}/cluttermm-1.0 | |
124 | %{_pkgconfigdir}/cluttermm-1.0.pc | |
125 | ||
ee0a693e | 126 | %if %{with static_libs} |
9e9cd809 JB |
127 | %files static |
128 | %defattr(644,root,root,755) | |
129 | %{_libdir}/libcluttermm-1.0.a | |
ee0a693e | 130 | %endif |
9e9cd809 JB |
131 | |
132 | %files apidocs | |
133 | %defattr(644,root,root,755) | |
134 | %{_docdir}/cluttermm-1.0 | |
135 | %{_datadir}/devhelp/books/cluttermm-1.0 |