]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_with gnome2 # build with support for GNOME2 wm-properties | |
4 | # | |
5 | Summary: Window and compositing manager based on Clutter | |
6 | Name: mutter | |
7 | Version: 3.2.1 | |
8 | Release: 1 | |
9 | License: GPL v2+ | |
10 | Group: X11/Window Managers | |
11 | Source0: http://ftp.gnome.org/pub/GNOME/sources/mutter/3.2/%{name}-%{version}.tar.xz | |
12 | # Source0-md5: 7cbe2f903096c2271c76f656e0a7db03 | |
13 | URL: http://git.gnome.org/cgit/mutter | |
14 | BuildRequires: GConf2-devel >= 1.2.0 | |
15 | BuildRequires: autoconf >= 2.50 | |
16 | BuildRequires: automake >= 1:1.11 | |
17 | BuildRequires: cairo-devel >= 1.10 | |
18 | BuildRequires: clutter-devel >= 1.8.0 | |
19 | BuildRequires: gdk-pixbuf2-devel | |
20 | BuildRequires: gettext-devel | |
21 | BuildRequires: glib2-devel >= 1:2.28.0 | |
22 | BuildRequires: gnome-common | |
23 | BuildRequires: gnome-doc-utils >= 0.8.0 | |
24 | BuildRequires: gobject-introspection-devel >= 0.10.0 | |
25 | BuildRequires: gtk+3-devel >= 3.0.0 | |
26 | BuildRequires: intltool >= 0.35.0 | |
27 | BuildRequires: libcanberra-gtk3-devel >= 0.26 | |
28 | BuildRequires: libtool | |
29 | BuildRequires: pango-devel >= 1.2.0 | |
30 | BuildRequires: pkgconfig | |
31 | # only in configure.in | |
32 | BuildRequires: python >= 2.5 | |
33 | BuildRequires: startup-notification-devel >= 0.7 | |
34 | BuildRequires: tar >= 1:1.22 | |
35 | BuildRequires: xorg-lib-libICE-devel | |
36 | BuildRequires: xorg-lib-libSM-devel | |
37 | BuildRequires: xorg-lib-libX11-devel | |
38 | BuildRequires: xorg-lib-libXcomposite-devel >= 0.2 | |
39 | BuildRequires: xorg-lib-libXcursor-devel | |
40 | BuildRequires: xorg-lib-libXdamage-devel | |
41 | BuildRequires: xorg-lib-libXext-devel | |
42 | BuildRequires: xorg-lib-libXfixes-devel | |
43 | BuildRequires: xorg-lib-libXinerama-devel | |
44 | BuildRequires: xorg-lib-libXrandr-devel | |
45 | BuildRequires: xorg-lib-libXrender-devel | |
46 | BuildRequires: xz | |
47 | BuildRequires: zenity | |
48 | Requires(post,preun): GConf2 | |
49 | Requires: zenity | |
50 | Provides: gnome-wm | |
51 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
52 | ||
53 | %description | |
54 | Mutter is a window and compositing manager that displays and manages | |
55 | your desktop via OpenGL. Mutter combines a sophisticated display | |
56 | engine using the Clutter toolkit with solid window-management logic | |
57 | inherited from the Metacity window manager. | |
58 | ||
59 | %package devel | |
60 | Summary: Development package for Mutter | |
61 | Group: X11/Development/Libraries | |
62 | Requires: %{name} = %{version}-%{release} | |
63 | Requires: clutter-devel >= 1.8.0 | |
64 | Requires: gtk+3-devel >= 3.0.0 | |
65 | ||
66 | %description devel | |
67 | Header files and libraries for developing Mutter plugins. | |
68 | ||
69 | %prep | |
70 | %setup -q | |
71 | ||
72 | %build | |
73 | %{__intltoolize} | |
74 | %{__libtoolize} | |
75 | %{__aclocal} | |
76 | %{__autoconf} | |
77 | %{__autoheader} | |
78 | %{__automake} | |
79 | %configure \ | |
80 | --disable-schemas-install \ | |
81 | --disable-silent-rules \ | |
82 | --disable-static | |
83 | %{__make} | |
84 | ||
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %{__make} install \ | |
89 | DESTDIR=$RPM_BUILD_ROOT | |
90 | ||
91 | %{!?with_gnome2:%{__rm} $RPM_BUILD_ROOT%{_datadir}/gnome/wm-properties/mutter-wm.desktop} | |
92 | ||
93 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
94 | ||
95 | %find_lang %{name} | |
96 | ||
97 | %clean | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %post | |
101 | %gconf_schema_install mutter.schemas | |
102 | /sbin/ldconfig | |
103 | ||
104 | %preun | |
105 | %gconf_schema_uninstall mutter.schemas | |
106 | ||
107 | %postun -p /sbin/ldconfig | |
108 | ||
109 | %files -f %{name}.lang | |
110 | %defattr(644,root,root,755) | |
111 | %doc README AUTHORS NEWS HACKING doc/theme-format.txt rationales.txt | |
112 | %attr(755,root,root) %{_bindir}/mutter | |
113 | %attr(755,root,root) %{_bindir}/mutter-message | |
114 | %attr(755,root,root) %{_bindir}/mutter-theme-viewer | |
115 | %attr(755,root,root) %{_bindir}/mutter-window-demo | |
116 | %attr(755,root,root) %{_libdir}/libmutter.so.*.*.* | |
117 | %attr(755,root,root) %ghost %{_libdir}/libmutter.so.0 | |
118 | %dir %{_libdir}/mutter | |
119 | %dir %{_libdir}/mutter/plugins | |
120 | %attr(755,root,root) %{_libdir}/mutter/plugins/default.so | |
121 | # intentionally installed in package-private dir | |
122 | %{_libdir}/mutter/Meta-*.typelib | |
123 | %{_desktopdir}/mutter.desktop | |
124 | %{?with_gnome2:%{_datadir}/gnome/wm-properties/mutter-wm.desktop} | |
125 | %{_sysconfdir}/gconf/schemas/mutter.schemas | |
126 | %{_datadir}/mutter | |
127 | %{_mandir}/man1/mutter.1* | |
128 | %{_mandir}/man1/mutter-message.1* | |
129 | %{_mandir}/man1/mutter-theme-viewer.1* | |
130 | %{_mandir}/man1/mutter-window-demo.1* | |
131 | ||
132 | %files devel | |
133 | %defattr(644,root,root,755) | |
134 | %{_includedir}/mutter | |
135 | %attr(755,root,root) %{_libdir}/libmutter.so | |
136 | # intentionally installed in package-private dir | |
137 | %{_libdir}/mutter/Meta-*.gir | |
138 | %{_pkgconfigdir}/libmutter.pc | |
139 | %{_pkgconfigdir}/mutter-plugins.pc |