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