]>
Commit | Line | Data |
---|---|---|
ad92460f ER |
1 | # TODO |
2 | # - subpackages for themes (see metacity.spec) | |
39cadd2d | 3 | # - find proper packages for %files |
ccc00ddb JB |
4 | # |
5 | # Conditional build: | |
6 | %bcond_with gtk3 # use GTK 3.x instead of 2.x | |
7 | # | |
ad92460f | 8 | Summary: MATE Desktop window manager |
ccc00ddb | 9 | Summary(pl.UTF-8): Zarządca okien środowiska MATE Desktop |
3a49286f | 10 | Name: marco |
0bbebcfe | 11 | Version: 1.12.0 |
5ac9c40b | 12 | Release: 1 |
3f0ec508 | 13 | License: LGPL v2+ and GPL v2+ |
ad92460f | 14 | Group: X11/Window Managers |
0bbebcfe JP |
15 | Source0: http://pub.mate-desktop.org/releases/1.12/%{name}-%{version}.tar.xz |
16 | # Source0-md5: da8360bbc27ae45014fec900b48d2984 | |
ad92460f ER |
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 | |
3f0ec508 | 21 | URL: http://wiki.mate-desktop.org/mate-window-manager |
3a49286f JP |
22 | BuildRequires: autoconf >= 2.50 |
23 | BuildRequires: automake | |
ad92460f | 24 | BuildRequires: desktop-file-utils |
ccc00ddb | 25 | BuildRequires: gdk-pixbuf2-devel >= 2.0 |
bf628d36 | 26 | BuildRequires: gettext-tools >= 0.10.40 |
5ac9c40b JB |
27 | BuildRequires: glib2-devel >= 1:2.32.0 |
28 | %{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.24.0} | |
ccc00ddb | 29 | %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0.0} |
0bbebcfe | 30 | BuildRequires: intltool >= 0.50.1 |
ccc00ddb JB |
31 | %{!?with_gtk3:BuildRequires: libcanberra-gtk-devel} |
32 | %{?with_gtk3:BuildRequires: libcanberra-gtk3-devel} | |
33 | BuildRequires: libgtop-devel | |
ad92460f | 34 | BuildRequires: mate-common |
5ac9c40b | 35 | %{?with_gtk3:BuildRequires: mate-desktop-devel >= 1.9.3} |
ccc00ddb | 36 | BuildRequires: pango-devel >= 1:1.2.0 |
e0444e6a | 37 | BuildRequires: rpmbuild(find_lang) >= 1.36 |
ccc00ddb | 38 | BuildRequires: startup-notification-devel >= 0.7 |
91ab70d8 | 39 | BuildRequires: tar >= 1:1.22 |
3f0ec508 ER |
40 | BuildRequires: xorg-lib-libICE-devel |
41 | BuildRequires: xorg-lib-libSM-devel | |
ccc00ddb JB |
42 | BuildRequires: xorg-lib-libX11-devel |
43 | BuildRequires: xorg-lib-libXcomposite-devel >= 0.2 | |
44 | BuildRequires: xorg-lib-libXcursor-devel | |
45 | BuildRequires: xorg-lib-libXext-devel | |
3f0ec508 | 46 | BuildRequires: xorg-lib-libXdamage-devel |
ccc00ddb JB |
47 | BuildRequires: xorg-lib-libXinerama-devel |
48 | BuildRequires: xorg-lib-libXrandr-devel | |
49 | BuildRequires: xorg-lib-libXrender-devel | |
91ab70d8 | 50 | BuildRequires: xz |
5ac9c40b | 51 | BuildRequires: yelp-tools |
0af0c20f | 52 | Requires: %{name}-libs = %{version}-%{release} |
5ac9c40b | 53 | Requires: glib2 >= 1:2.32.0 |
ad92460f | 54 | Requires: gsettings-desktop-schemas |
ccc00ddb JB |
55 | Requires: mate-icon-theme |
56 | Requires: mate-settings-daemon | |
cfe3620b | 57 | Requires: zenity |
8446ed7d | 58 | Suggests: mate-control-center |
39cadd2d ER |
59 | # can use any gtk+2 themes nicely, Adwaita specially |
60 | Suggests: %{name}-themes | |
3a49286f | 61 | Obsoletes: mate-window-manager |
ad92460f | 62 | Obsoletes: mate-window-manager-libs < 1.4.1-2 |
0af0c20f | 63 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ad92460f ER |
64 | |
65 | %description | |
ccc00ddb JB |
66 | MATE Desktop window manager. MATE Marco is a fork of GNOME Metacity. |
67 | ||
68 | %description -l pl.UTF-8 | |
69 | Zarządca okien środowiska MATE Desktop. MATE Marco to odgałęzienie | |
70 | pakietu GNOME Metacity. | |
ad92460f | 71 | |
0af0c20f | 72 | %package libs |
ccc00ddb JB |
73 | Summary: Marco (MATE window manager) library |
74 | Summary(pl.UTF-8): Biblioteka Macro (zarządcy okien MATE) | |
0af0c20f | 75 | Group: X11/Libraries |
5ac9c40b JB |
76 | Requires: glib2 >= 1:2.32.0 |
77 | %{!?with_gtk3:Requires: gtk+2 >= 2:2.24.0} | |
ccc00ddb | 78 | %{?with_gtk3:Requires: gtk+3 >= 3.0.0} |
5ac9c40b | 79 | %{?with_gtk3:Requires: mate-desktop-libs >= 1.9.3} |
ccc00ddb JB |
80 | Requires: pango >= 1:1.2.0 |
81 | Requires: startup-notification >= 0.7 | |
82 | Requires: xorg-lib-libXcomposite >= 0.2 | |
3a49286f | 83 | Obsoletes: mate-window-manager-libs >= 1.4.1-2 |
0af0c20f ER |
84 | |
85 | %description libs | |
ccc00ddb JB |
86 | This package contains the shared library for Marco, the MATE window |
87 | manager. | |
0af0c20f ER |
88 | |
89 | %description libs -l pl.UTF-8 | |
ccc00ddb JB |
90 | Pakiet zawierający bibliotekę współdzieloną Marco (zarządcy okien |
91 | MATE). | |
0af0c20f | 92 | |
ad92460f | 93 | %package devel |
ccc00ddb JB |
94 | Summary: Development files for Marco (Mate window manager) |
95 | Summary(pl.UTF-8): Pliki programistyczne Marco (zarządcy okien MATE) | |
ad92460f | 96 | Group: Development/Libraries |
0af0c20f | 97 | Requires: %{name}-libs = %{version}-%{release} |
5ac9c40b JB |
98 | Requires: glib2-devel >= 1:2.32.0 |
99 | %{!?with_gtk3:Requires: gtk+2-devel >= 2:2.24.0} | |
ccc00ddb | 100 | %{?with_gtk3:Requires: gtk+3-devel >= 3.0.0} |
5ac9c40b | 101 | %{?with_gtk3:Requires: mate-desktop-devel >= 1.9.3} |
3a49286f | 102 | Obsoletes: mate-window-manager-devel |
ad92460f ER |
103 | |
104 | %description devel | |
ccc00ddb JB |
105 | Development files for Marco (Mate window manager). |
106 | ||
107 | %description devel -l pl.UTF-8 | |
108 | Pliki programistyczne Marco (zarządcy okien MATE). | |
ad92460f | 109 | |
39cadd2d | 110 | %package themes |
ccc00ddb JB |
111 | Summary: Themes for MATE Window Manager |
112 | Summary(pl.UTF-8): Motywy dla zarządcy okien MATE | |
39cadd2d ER |
113 | Group: Themes/GTK+ |
114 | Requires: %{name} = %{version}-%{release} | |
3a49286f | 115 | Obsoletes: mate-window-manager-themes |
39cadd2d ER |
116 | |
117 | %description themes | |
ccc00ddb JB |
118 | Themes for MATE Window Manager. |
119 | ||
120 | %description themes -l pl.UTF-8 | |
121 | Motywy dla zarządcy okien MATE | |
39cadd2d | 122 | |
ad92460f ER |
123 | %prep |
124 | %setup -q | |
125 | %patch0 -p1 | |
126 | #patch1 -p1 | |
ad92460f ER |
127 | |
128 | %build | |
3a49286f JP |
129 | %{__libtoolize} |
130 | %{__aclocal} -I m4 | |
131 | %{__autoconf} | |
132 | %{__autoheader} | |
133 | %{__automake} | |
ad92460f | 134 | %configure \ |
e7311a42 | 135 | ZENITY=%{_bindir}/zenity \ |
ccc00ddb | 136 | --disable-scrollkeeper \ |
e0444e6a | 137 | --disable-silent-rules \ |
ad92460f | 138 | --disable-static \ |
ad92460f | 139 | --with-gnu-ld \ |
ccc00ddb | 140 | %{?with_gtk3:--with-gtk=3.0} \ |
ad92460f ER |
141 | --with-x |
142 | ||
e0444e6a | 143 | %{__make} |
ad92460f ER |
144 | |
145 | %install | |
146 | rm -rf $RPM_BUILD_ROOT | |
147 | %{__make} install \ | |
148 | DESTDIR=$RPM_BUILD_ROOT | |
149 | ||
5e1a3c42 ER |
150 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmarco-private.la |
151 | ||
152 | # mate < 1.5 did not exist in pld, avoid dependency on mate-conf | |
153 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/marco.convert | |
ad92460f ER |
154 | |
155 | desktop-file-install \ | |
156 | --remove-category="MATE" \ | |
157 | --delete-original \ | |
ccc00ddb JB |
158 | --dir=$RPM_BUILD_ROOT%{_desktopdir} \ |
159 | $RPM_BUILD_ROOT%{_desktopdir}/marco.desktop | |
ad92460f | 160 | |
e0444e6a | 161 | %find_lang %{name} --all-name --with-mate |
ad92460f ER |
162 | |
163 | %clean | |
164 | rm -rf $RPM_BUILD_ROOT | |
165 | ||
166 | %post | |
ad92460f ER |
167 | %glib_compile_schemas |
168 | ||
169 | %postun | |
ad92460f ER |
170 | %glib_compile_schemas |
171 | ||
ccc00ddb JB |
172 | %post libs -p /sbin/ldconfig |
173 | %postun libs -p /sbin/ldconfig | |
174 | ||
ad92460f ER |
175 | %files -f %{name}.lang |
176 | %defattr(644,root,root,755) | |
ccc00ddb | 177 | %doc AUTHORS ChangeLog NEWS README |
ad92460f ER |
178 | %attr(755,root,root) %{_bindir}/marco |
179 | %attr(755,root,root) %{_bindir}/marco-message | |
3a49286f | 180 | %{_datadir}/marco |
39cadd2d | 181 | %{_datadir}/mate-control-center/keybindings/50-marco*.xml |
ccc00ddb JB |
182 | %dir %{_datadir}/mate/wm-properties |
183 | %{_datadir}/mate/wm-properties/marco-wm.desktop | |
39cadd2d | 184 | %{_datadir}/glib-2.0/schemas/org.mate.marco.gschema.xml |
ccc00ddb JB |
185 | %{_desktopdir}/marco.desktop |
186 | %{_mandir}/man1/marco.1* | |
187 | %{_mandir}/man1/marco-message.1* | |
39cadd2d | 188 | |
ccc00ddb | 189 | # TODO: find better packages |
5e1a3c42 ER |
190 | %dir %{_datadir}/mate-control-center |
191 | %dir %{_datadir}/mate-control-center/keybindings | |
5e1a3c42 | 192 | |
ccc00ddb JB |
193 | %files libs |
194 | %defattr(644,root,root,755) | |
195 | %attr(755,root,root) %{_libdir}/libmarco-private.so.*.*.* | |
196 | %attr(755,root,root) %ghost %{_libdir}/libmarco-private.so.0 | |
197 | ||
198 | %files devel | |
199 | %defattr(644,root,root,755) | |
200 | %attr(755,root,root) %{_bindir}/marco-theme-viewer | |
201 | %attr(755,root,root) %{_bindir}/marco-window-demo | |
202 | %attr(755,root,root) %{_libdir}/libmarco-private.so | |
203 | %{_includedir}/marco-1 | |
204 | %{_pkgconfigdir}/libmarco-private.pc | |
205 | %{_mandir}/man1/marco-theme-viewer.1* | |
206 | %{_mandir}/man1/marco-window-demo.1* | |
207 | ||
39cadd2d ER |
208 | %files themes |
209 | %defattr(644,root,root,755) | |
ad92460f ER |
210 | %{_datadir}/themes/ClearlooksRe |
211 | %{_datadir}/themes/Dopple-Left | |
212 | %{_datadir}/themes/Dopple | |
213 | %{_datadir}/themes/DustBlue | |
214 | %{_datadir}/themes/Spidey-Left | |
215 | %{_datadir}/themes/Spidey | |
216 | %{_datadir}/themes/Splint-Left | |
217 | %{_datadir}/themes/Splint | |
218 | %{_datadir}/themes/WinMe | |
219 | %{_datadir}/themes/eOS |