1 |
%define url_ver %(echo %{version} | cut -d. -f1,2) |
2 |
|
3 |
%define lib_major 0 |
4 |
%define api 3.0 |
5 |
%define libname %mklibname %{name}-private %{lib_major} |
6 |
%define libnamedev %mklibname -d %{name}-private |
7 |
|
8 |
Summary: Mutter window manager |
9 |
Name: mutter |
10 |
Version: 3.3.2 |
11 |
Release: %mkrel 1 |
12 |
URL: http://ftp.gnome.org/pub/gnome/sources/mutter/ |
13 |
Source0: http://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz |
14 |
License: GPLv2+ |
15 |
Group: Graphical desktop/GNOME |
16 |
BuildRequires: pkgconfig(glib-2.0) >= 2.14.0 |
17 |
BuildRequires: pkgconfig(gio-2.0) >= 2.25.10 |
18 |
BuildRequires: pkgconfig(gsettings-desktop-schemas) |
19 |
BuildRequires: pkgconfig(gtk+-3.0) >= 3.3.3 |
20 |
BuildRequires: pkgconfig(sm) |
21 |
BuildRequires: pkgconfig(libstartup-notification-1.0) >= 0.7 |
22 |
BuildRequires: pkgconfig(libcanberra-gtk3) >= 0.26 |
23 |
BuildRequires: pkgconfig(xcomposite) >= 0.2 |
24 |
BuildRequires: pkgconfig(clutter-1.0) >= 1.7.5 |
25 |
BuildRequires: pkgconfig(xcursor) |
26 |
BuildRequires: pkgconfig(pango) >= 1.2.0 |
27 |
BuildRequires: pkgconfig(cairo) >= 1.10.0 |
28 |
BuildRequires: pkgconfig(xfixes) |
29 |
BuildRequires: pkgconfig(xrender) |
30 |
BuildRequires: pkgconfig(xdamage) |
31 |
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 0.9.5 |
32 |
BuildRequires: cogl-devel |
33 |
BuildRequires: libxtst-devel |
34 |
BuildRequires: libmesaglu-devel |
35 |
BuildRequires: zenity |
36 |
BuildRequires: intltool |
37 |
BuildRequires: gnome-doc-utils |
38 |
BuildRequires: gir-repository |
39 |
BuildRequires: gnome-common |
40 |
Requires: zenity |
41 |
|
42 |
%description |
43 |
Mutter is a simple window manager that integrates nicely with |
44 |
GNOME 3. |
45 |
|
46 |
%package -n %{libname} |
47 |
Summary: Libraries for Mutter |
48 |
Group: System/Libraries |
49 |
|
50 |
%description -n %{libname} |
51 |
This package contains libraries used by Mutter. |
52 |
|
53 |
%package -n %{libnamedev} |
54 |
Summary: Libraries and include files with Mutter |
55 |
Group: Development/GNOME and GTK+ |
56 |
Requires: %{name} = %{version} |
57 |
Requires: %{libname} = %{version} |
58 |
Provides: %{name}-devel = %{version}-%{release} |
59 |
Provides: lib%{name}-private-devel = %{version}-%{release} |
60 |
Obsoletes: %mklibname -d %{name}-private 0 |
61 |
|
62 |
%description -n %{libnamedev} |
63 |
This package provides the necessary development libraries and include |
64 |
files to allow you to develop with Mutter. |
65 |
|
66 |
%prep |
67 |
%setup -q |
68 |
|
69 |
%build |
70 |
%configure2_5x --disable-static |
71 |
%make |
72 |
|
73 |
%install |
74 |
rm -rf %{buildroot} |
75 |
%makeinstall_std |
76 |
|
77 |
%find_lang %{name} |
78 |
|
79 |
#Remove libtool archives. |
80 |
rm -rf %{buildroot}/%{_libdir}/*.la |
81 |
|
82 |
%clean |
83 |
rm -rf %{buildroot} |
84 |
|
85 |
%define schemas %{name} |
86 |
|
87 |
%files -f %{name}.lang |
88 |
%defattr(-,root,root) |
89 |
%doc README COPYING NEWS HACKING |
90 |
%{_bindir}/* |
91 |
%{_datadir}/applications/%{name}.desktop |
92 |
%{_datadir}/gnome/wm-properties/%{name}-wm.desktop |
93 |
%{_datadir}/%{name} |
94 |
%dir %{_libdir}/%{name} |
95 |
%dir %{_libdir}/%{name}/plugins |
96 |
%{_libdir}/%{name}/plugins/default.so |
97 |
%{_mandir}/man1/* |
98 |
|
99 |
%files -n %{libname} |
100 |
%defattr(-,root,root) |
101 |
%{_libdir}/*.so.%{lib_major}* |
102 |
%{_libdir}/%{name}/Meta-%{api}.typelib |
103 |
|
104 |
%files -n %{libnamedev} |
105 |
%defattr(-,root,root) |
106 |
%{_libdir}/*.so |
107 |
%{_includedir}/* |
108 |
%{_libdir}/pkgconfig/* |
109 |
%{_libdir}/%name/Meta-%{api}.gir |