]>
Commit | Line | Data |
---|---|---|
01dfc256 JR |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with gnome2 # build with support for GNOME2 wm-properties | |
4 | # | |
25d9769d PZ |
5 | Summary: Window and compositing manager based on Clutter |
6 | Name: mutter | |
82218782 ŁK |
7 | Version: 3.2.1 |
8 | Release: 1 | |
25d9769d PZ |
9 | License: GPL v2+ |
10 | Group: X11/Window Managers | |
011c8734 | 11 | Source0: http://ftp.gnome.org/pub/GNOME/sources/mutter/3.2/%{name}-%{version}.tar.xz |
82218782 | 12 | # Source0-md5: 7cbe2f903096c2271c76f656e0a7db03 |
25d9769d | 13 | URL: http://git.gnome.org/cgit/mutter |
d7ee70a8 MB |
14 | BuildRequires: GConf2-devel >= 1.2.0 |
15 | BuildRequires: autoconf >= 2.50 | |
011c8734 | 16 | BuildRequires: automake >= 1:1.11 |
d7ee70a8 | 17 | BuildRequires: cairo-devel >= 1.10 |
011c8734 | 18 | BuildRequires: clutter-devel >= 1.8.0 |
d7ee70a8 MB |
19 | BuildRequires: gdk-pixbuf2-devel |
20 | BuildRequires: gettext-devel | |
21 | BuildRequires: glib2-devel >= 1:2.28.0 | |
25d9769d | 22 | BuildRequires: gnome-common |
d7ee70a8 MB |
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 | |
25d9769d | 28 | BuildRequires: libtool |
d7ee70a8 | 29 | BuildRequires: pango-devel >= 1.2.0 |
25d9769d | 30 | BuildRequires: pkgconfig |
d7ee70a8 MB |
31 | # only in configure.in |
32 | BuildRequires: python >= 2.5 | |
33 | BuildRequires: startup-notification-devel >= 0.7 | |
011c8734 | 34 | BuildRequires: tar >= 1:1.22 |
d7ee70a8 MB |
35 | BuildRequires: xorg-lib-libICE-devel |
36 | BuildRequires: xorg-lib-libSM-devel | |
25d9769d | 37 | BuildRequires: xorg-lib-libX11-devel |
d7ee70a8 | 38 | BuildRequires: xorg-lib-libXcomposite-devel >= 0.2 |
25d9769d PZ |
39 | BuildRequires: xorg-lib-libXcursor-devel |
40 | BuildRequires: xorg-lib-libXdamage-devel | |
41 | BuildRequires: xorg-lib-libXext-devel | |
d7ee70a8 MB |
42 | BuildRequires: xorg-lib-libXfixes-devel |
43 | BuildRequires: xorg-lib-libXinerama-devel | |
25d9769d PZ |
44 | BuildRequires: xorg-lib-libXrandr-devel |
45 | BuildRequires: xorg-lib-libXrender-devel | |
011c8734 | 46 | BuildRequires: xz |
25d9769d | 47 | BuildRequires: zenity |
d7ee70a8 | 48 | Requires(post,preun): GConf2 |
25d9769d | 49 | Requires: zenity |
d7ee70a8 | 50 | Provides: gnome-wm |
25d9769d PZ |
51 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
52 | ||
53 | %description | |
d7ee70a8 MB |
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. | |
25d9769d PZ |
58 | |
59 | %package devel | |
d7ee70a8 MB |
60 | Summary: Development package for Mutter |
61 | Group: X11/Development/Libraries | |
25d9769d | 62 | Requires: %{name} = %{version}-%{release} |
011c8734 | 63 | Requires: clutter-devel >= 1.8.0 |
d7ee70a8 | 64 | Requires: gtk+3-devel >= 3.0.0 |
25d9769d PZ |
65 | |
66 | %description devel | |
d7ee70a8 | 67 | Header files and libraries for developing Mutter plugins. |
25d9769d PZ |
68 | |
69 | %prep | |
70 | %setup -q | |
25d9769d PZ |
71 | |
72 | %build | |
73 | %{__intltoolize} | |
74 | %{__libtoolize} | |
75 | %{__aclocal} | |
76 | %{__autoconf} | |
77 | %{__autoheader} | |
78 | %{__automake} | |
79 | %configure \ | |
80 | --disable-schemas-install \ | |
b4b16ff1 | 81 | --disable-silent-rules \ |
25d9769d PZ |
82 | --disable-static |
83 | %{__make} | |
84 | ||
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
25d9769d PZ |
88 | %{__make} install \ |
89 | DESTDIR=$RPM_BUILD_ROOT | |
90 | ||
4a829738 | 91 | %{!?with_gnome2:%{__rm} $RPM_BUILD_ROOT%{_datadir}/gnome/wm-properties/mutter-wm.desktop} |
01dfc256 | 92 | |
d7ee70a8 | 93 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
25d9769d | 94 | |
d7ee70a8 | 95 | %find_lang %{name} |
25d9769d PZ |
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) | |
d7ee70a8 | 111 | %doc README AUTHORS NEWS HACKING doc/theme-format.txt rationales.txt |
25d9769d PZ |
112 | %attr(755,root,root) %{_bindir}/mutter |
113 | %attr(755,root,root) %{_bindir}/mutter-message | |
d7ee70a8 MB |
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 | |
25d9769d PZ |
118 | %dir %{_libdir}/mutter |
119 | %dir %{_libdir}/mutter/plugins | |
120 | %attr(755,root,root) %{_libdir}/mutter/plugins/default.so | |
d7ee70a8 MB |
121 | # intentionally installed in package-private dir |
122 | %{_libdir}/mutter/Meta-*.typelib | |
123 | %{_desktopdir}/mutter.desktop | |
01dfc256 | 124 | %{?with_gnome2:%{_datadir}/gnome/wm-properties/mutter-wm.desktop} |
d7ee70a8 MB |
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* | |
25d9769d PZ |
131 | |
132 | %files devel | |
133 | %defattr(644,root,root,755) | |
d7ee70a8 MB |
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 |