]>
Commit | Line | Data |
---|---|---|
4c52ca8a ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # disable gtk-doc | |
4 | ||
5 | Summary: MATE Desktop Window Navigator Construction Kit libraries | |
6 | Name: libmatewnck | |
fe82d962 | 7 | Version: 1.5.1 |
4c52ca8a | 8 | Release: 1 |
39138c38 | 9 | License: LGPL v2+ and GPL v2+ |
4c52ca8a | 10 | Group: Libraries |
4c52ca8a | 11 | Source0: http://pub.mate-desktop.org/releases/1.5/%{name}-%{version}.tar.xz |
fe82d962 | 12 | # Source0-md5: bf564d92d988ea699453b101fb4ccb4a |
39138c38 ER |
13 | URL: http://wiki.mate-desktop.org/roadmap:transition_to_libmatewnck |
14 | BuildRequires: cairo-gobject-devel | |
2d4b6a53 ER |
15 | BuildRequires: docbook-dtd412-xml |
16 | BuildRequires: gettext-devel | |
39138c38 ER |
17 | BuildRequires: gobject-introspection-devel |
18 | BuildRequires: gtk+2-devel | |
4c52ca8a ER |
19 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.9} |
20 | BuildRequires: mate-common | |
271c84c9 | 21 | BuildRequires: pkgconfig >= 0.14.0 |
39138c38 | 22 | BuildRequires: startup-notification-devel |
5c93f44b | 23 | BuildRequires: tar >= 1:1.22 |
39138c38 ER |
24 | BuildRequires: xorg-lib-libX11-devel |
25 | BuildRequires: xorg-lib-libXres-devel | |
5c93f44b | 26 | BuildRequires: xz |
4c52ca8a ER |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
29 | %description | |
30 | Window navigator construction Kit for MATE Desktop | |
31 | ||
32 | %package devel | |
33 | Summary: Development libraries and headers for libmatewnck | |
61aa7804 | 34 | Group: Development/Libraries |
4c52ca8a ER |
35 | Requires: %{name} = %{version}-%{release} |
36 | ||
37 | %description devel | |
38 | Development libraries and headers for libmatewnck | |
39 | ||
40 | %package apidocs | |
41 | Summary: libmatewnck API documentation | |
42 | Summary(pl.UTF-8): Dokumentacja API libmatewnck | |
43 | Group: Documentation | |
44 | Requires: gtk-doc-common | |
45 | ||
46 | %description apidocs | |
47 | libmatewnck API documentation. | |
48 | ||
49 | %description apidocs -l pl.UTF-8 | |
50 | Dokumentacja API libmatewnck. | |
51 | ||
52 | %prep | |
53 | %setup -q | |
4c52ca8a ER |
54 | |
55 | %build | |
3512b3dd | 56 | NOCONFIGURE=1 ./autogen.sh |
4c52ca8a | 57 | %configure \ |
fe82d962 | 58 | --disable-silent-rules \ |
4c52ca8a ER |
59 | %{__enable_disable apidocs gtk-doc} \ |
60 | --with-html-dir=%{_gtkdocdir} \ | |
61 | --disable-static \ | |
62 | ||
4c52ca8a ER |
63 | %install |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | %{__make} install \ | |
66 | DESTDIR=$RPM_BUILD_ROOT | |
67 | ||
68 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmatewnck.la | |
69 | ||
70 | %find_lang %{name} | |
71 | ||
72 | %clean | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %post -p /sbin/ldconfig | |
76 | %postun -p /sbin/ldconfig | |
77 | ||
78 | %files -f %{name}.lang | |
79 | %defattr(644,root,root,755) | |
80 | %doc AUTHORS COPYING README | |
81 | %attr(755,root,root) %{_bindir}/matewnck-urgency-monitor | |
82 | %attr(755,root,root) %{_bindir}/matewnckprop | |
83 | %attr(755,root,root) %{_libdir}/libmatewnck.so.*.*.* | |
84 | %ghost %{_libdir}/libmatewnck.so.0 | |
85 | %{_libdir}/girepository-1.0/Matewnck-1.0.typelib | |
86 | ||
87 | %files devel | |
88 | %defattr(644,root,root,755) | |
89 | %{_libdir}/libmatewnck.so | |
90 | %{_pkgconfigdir}/libmatewnck.pc | |
91 | %{_includedir}/libmatewnck | |
92 | %{_datadir}/gir-1.0/Matewnck-1.0.gir | |
93 | ||
94 | %if %{with apidocs} | |
95 | %files apidocs | |
96 | %defattr(644,root,root,755) | |
97 | %{_gtkdocdir}/libmatewnck | |
98 | %endif |