2 # - subpackages for themes (see metacity.spec)
3 # - find proper packages for %files
6 %bcond_with gtk3 # use GTK 3.x instead of 2.x
8 Summary: MATE Desktop window manager
9 Summary(pl.UTF-8): Zarządca okien środowiska MATE Desktop
10 Name: mate-window-manager
13 License: LGPL v2+ and GPL v2+
14 Group: X11/Window Managers
15 Source0: http://pub.mate-desktop.org/releases/1.6/%{name}-%{version}.tar.xz
16 # Source0-md5: 8f6ef12e31d74840aa3db7275149907d
17 # https://bugzilla.gnome.org/show_bug.cgi?id=622517
18 Patch0: Allow-breaking-out-from-maximization-during-mouse.patch
19 # https://bugs.launchpad.net/ubuntu/+source/metacity/+bug/583847
20 Patch1: initialise_all_workspace_names.patch
21 URL: http://wiki.mate-desktop.org/mate-window-manager
22 BuildRequires: desktop-file-utils
23 BuildRequires: gdk-pixbuf2-devel >= 2.0
24 BuildRequires: gettext-devel >= 0.10.40
25 BuildRequires: glib2-devel >= 1:2.26.0
26 %{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.20.0}
27 %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0.0}
28 BuildRequires: intltool >= 0.35.0
29 %{!?with_gtk3:BuildRequires: libcanberra-gtk-devel}
30 %{?with_gtk3:BuildRequires: libcanberra-gtk3-devel}
31 BuildRequires: libgtop-devel
32 BuildRequires: mate-common
33 BuildRequires: mate-doc-utils >= 0.8.0
34 BuildRequires: pango-devel >= 1:1.2.0
35 BuildRequires: rpmbuild(find_lang) >= 1.36
36 BuildRequires: startup-notification-devel >= 0.7
37 BuildRequires: tar >= 1:1.22
38 BuildRequires: xorg-lib-libICE-devel
39 BuildRequires: xorg-lib-libSM-devel
40 BuildRequires: xorg-lib-libX11-devel
41 BuildRequires: xorg-lib-libXcomposite-devel >= 0.2
42 BuildRequires: xorg-lib-libXcursor-devel
43 BuildRequires: xorg-lib-libXext-devel
44 BuildRequires: xorg-lib-libXdamage-devel
45 BuildRequires: xorg-lib-libXinerama-devel
46 BuildRequires: xorg-lib-libXrandr-devel
47 BuildRequires: xorg-lib-libXrender-devel
49 Requires: %{name}-libs = %{version}-%{release}
50 Requires: glib2 >= 1:2.26.0
51 Requires: gsettings-desktop-schemas
52 Requires: mate-icon-theme
53 Requires: mate-settings-daemon
54 Suggests: mate-control-center
55 Suggests: mate-dialogs
56 # can use any gtk+2 themes nicely, Adwaita specially
57 Suggests: %{name}-themes
58 Obsoletes: mate-window-manager-libs < 1.4.1-2
59 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
62 MATE Desktop window manager. MATE Marco is a fork of GNOME Metacity.
64 %description -l pl.UTF-8
65 Zarządca okien środowiska MATE Desktop. MATE Marco to odgałęzienie
66 pakietu GNOME Metacity.
69 Summary: Marco (MATE window manager) library
70 Summary(pl.UTF-8): Biblioteka Macro (zarządcy okien MATE)
72 Requires: glib2 >= 1:2.26.0
73 %{!?with_gtk3:Requires: gtk+2 >= 2:2.20.0}
74 %{?with_gtk3:Requires: gtk+3 >= 3.0.0}
75 Requires: pango >= 1:1.2.0
76 Requires: startup-notification >= 0.7
77 Requires: xorg-lib-libXcomposite >= 0.2
80 This package contains the shared library for Marco, the MATE window
83 %description libs -l pl.UTF-8
84 Pakiet zawierający bibliotekę współdzieloną Marco (zarządcy okien
88 Summary: Development files for Marco (Mate window manager)
89 Summary(pl.UTF-8): Pliki programistyczne Marco (zarządcy okien MATE)
90 Group: Development/Libraries
91 Requires: %{name}-libs = %{version}-%{release}
92 Requires: glib2-devel >= 1:2.26.0
93 %{!?with_gtk3:Requires: gtk+2-devel >= 2:2.20.0}
94 %{?with_gtk3:Requires: gtk+3-devel >= 3.0.0}
97 Development files for Marco (Mate window manager).
99 %description devel -l pl.UTF-8
100 Pliki programistyczne Marco (zarządcy okien MATE).
103 Summary: Themes for MATE Window Manager
104 Summary(pl.UTF-8): Motywy dla zarządcy okien MATE
106 Requires: %{name} = %{version}-%{release}
109 Themes for MATE Window Manager.
111 %description themes -l pl.UTF-8
112 Motywy dla zarządcy okien MATE
121 MATEDIALOG=%{_bindir}/matedialog \
122 --disable-scrollkeeper \
123 --disable-silent-rules \
126 %{?with_gtk3:--with-gtk=3.0} \
132 rm -rf $RPM_BUILD_ROOT
134 DESTDIR=$RPM_BUILD_ROOT
136 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmarco-private.la
138 # mate < 1.5 did not exist in pld, avoid dependency on mate-conf
139 %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/marco.convert
141 desktop-file-install \
142 --remove-category="MATE" \
144 --dir=$RPM_BUILD_ROOT%{_desktopdir} \
145 $RPM_BUILD_ROOT%{_desktopdir}/marco.desktop
147 %find_lang %{name} --all-name --with-mate
150 rm -rf $RPM_BUILD_ROOT
153 %glib_compile_schemas
156 %glib_compile_schemas
158 %post libs -p /sbin/ldconfig
159 %postun libs -p /sbin/ldconfig
161 %files -f %{name}.lang
162 %defattr(644,root,root,755)
163 %doc AUTHORS ChangeLog NEWS README
164 %attr(755,root,root) %{_bindir}/marco
165 %attr(755,root,root) %{_bindir}/marco-message
166 %{_datadir}/mate-window-manager
167 %{_datadir}/mate-control-center/keybindings/50-marco*.xml
168 %dir %{_datadir}/mate/wm-properties
169 %{_datadir}/mate/wm-properties/marco-wm.desktop
170 %{_datadir}/glib-2.0/schemas/org.mate.marco.gschema.xml
171 %{_desktopdir}/marco.desktop
172 %{_mandir}/man1/marco.1*
173 %{_mandir}/man1/marco-message.1*
175 # TODO: find better packages
176 %dir %{_datadir}/mate-control-center
177 %dir %{_datadir}/mate-control-center/keybindings
180 %defattr(644,root,root,755)
181 %attr(755,root,root) %{_libdir}/libmarco-private.so.*.*.*
182 %attr(755,root,root) %ghost %{_libdir}/libmarco-private.so.0
185 %defattr(644,root,root,755)
186 %attr(755,root,root) %{_bindir}/marco-theme-viewer
187 %attr(755,root,root) %{_bindir}/marco-window-demo
188 %attr(755,root,root) %{_libdir}/libmarco-private.so
189 %{_includedir}/marco-1
190 %{_pkgconfigdir}/libmarco-private.pc
191 %{_mandir}/man1/marco-theme-viewer.1*
192 %{_mandir}/man1/marco-window-demo.1*
195 %defattr(644,root,root,755)
196 %{_datadir}/themes/ClearlooksRe
197 %{_datadir}/themes/Dopple-Left
198 %{_datadir}/themes/Dopple
199 %{_datadir}/themes/DustBlue
200 %{_datadir}/themes/Spidey-Left
201 %{_datadir}/themes/Spidey
202 %{_datadir}/themes/Splint-Left
203 %{_datadir}/themes/Splint
204 %{_datadir}/themes/WinMe
205 %{_datadir}/themes/eOS