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