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