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