]>
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 |
ad92460f | 10 | Name: mate-window-manager |
e0444e6a | 11 | Version: 1.6.2 |
28587c32 | 12 | Release: 2 |
3f0ec508 | 13 | License: LGPL v2+ and GPL v2+ |
ad92460f | 14 | Group: X11/Window Managers |
680a06a4 | 15 | Source0: http://pub.mate-desktop.org/releases/1.6/%{name}-%{version}.tar.xz |
e0444e6a | 16 | # Source0-md5: 8f6ef12e31d74840aa3db7275149907d |
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 |
ad92460f | 22 | BuildRequires: desktop-file-utils |
ccc00ddb JB |
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 | |
ad92460f | 32 | BuildRequires: mate-common |
ccc00ddb JB |
33 | BuildRequires: mate-doc-utils >= 0.8.0 |
34 | BuildRequires: pango-devel >= 1:1.2.0 | |
e0444e6a | 35 | BuildRequires: rpmbuild(find_lang) >= 1.36 |
ccc00ddb | 36 | BuildRequires: startup-notification-devel >= 0.7 |
91ab70d8 | 37 | BuildRequires: tar >= 1:1.22 |
3f0ec508 ER |
38 | BuildRequires: xorg-lib-libICE-devel |
39 | BuildRequires: xorg-lib-libSM-devel | |
ccc00ddb JB |
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 | |
3f0ec508 | 44 | BuildRequires: xorg-lib-libXdamage-devel |
ccc00ddb JB |
45 | BuildRequires: xorg-lib-libXinerama-devel |
46 | BuildRequires: xorg-lib-libXrandr-devel | |
47 | BuildRequires: xorg-lib-libXrender-devel | |
91ab70d8 | 48 | BuildRequires: xz |
0af0c20f | 49 | Requires: %{name}-libs = %{version}-%{release} |
ad92460f ER |
50 | Requires: glib2 >= 1:2.26.0 |
51 | Requires: gsettings-desktop-schemas | |
ccc00ddb JB |
52 | Requires: mate-icon-theme |
53 | Requires: mate-settings-daemon | |
8446ed7d | 54 | Suggests: mate-control-center |
ccc00ddb | 55 | Suggests: mate-dialogs |
39cadd2d ER |
56 | # can use any gtk+2 themes nicely, Adwaita specially |
57 | Suggests: %{name}-themes | |
ad92460f | 58 | Obsoletes: mate-window-manager-libs < 1.4.1-2 |
0af0c20f | 59 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ad92460f ER |
60 | |
61 | %description | |
ccc00ddb JB |
62 | MATE Desktop window manager. MATE Marco is a fork of GNOME Metacity. |
63 | ||
64 | %description -l pl.UTF-8 | |
65 | Zarządca okien środowiska MATE Desktop. MATE Marco to odgałęzienie | |
66 | pakietu GNOME Metacity. | |
ad92460f | 67 | |
0af0c20f | 68 | %package libs |
ccc00ddb JB |
69 | Summary: Marco (MATE window manager) library |
70 | Summary(pl.UTF-8): Biblioteka Macro (zarządcy okien MATE) | |
0af0c20f | 71 | Group: X11/Libraries |
ccc00ddb JB |
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 | |
0af0c20f ER |
78 | |
79 | %description libs | |
ccc00ddb JB |
80 | This package contains the shared library for Marco, the MATE window |
81 | manager. | |
0af0c20f ER |
82 | |
83 | %description libs -l pl.UTF-8 | |
ccc00ddb JB |
84 | Pakiet zawierający bibliotekę współdzieloną Marco (zarządcy okien |
85 | MATE). | |
0af0c20f | 86 | |
ad92460f | 87 | %package devel |
ccc00ddb JB |
88 | Summary: Development files for Marco (Mate window manager) |
89 | Summary(pl.UTF-8): Pliki programistyczne Marco (zarządcy okien MATE) | |
ad92460f | 90 | Group: Development/Libraries |
0af0c20f | 91 | Requires: %{name}-libs = %{version}-%{release} |
ccc00ddb JB |
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} | |
ad92460f ER |
95 | |
96 | %description devel | |
ccc00ddb JB |
97 | Development files for Marco (Mate window manager). |
98 | ||
99 | %description devel -l pl.UTF-8 | |
100 | Pliki programistyczne Marco (zarządcy okien MATE). | |
ad92460f | 101 | |
39cadd2d | 102 | %package themes |
ccc00ddb JB |
103 | Summary: Themes for MATE Window Manager |
104 | Summary(pl.UTF-8): Motywy dla zarządcy okien MATE | |
39cadd2d ER |
105 | Group: Themes/GTK+ |
106 | Requires: %{name} = %{version}-%{release} | |
107 | ||
108 | %description themes | |
ccc00ddb JB |
109 | Themes for MATE Window Manager. |
110 | ||
111 | %description themes -l pl.UTF-8 | |
112 | Motywy dla zarządcy okien MATE | |
39cadd2d | 113 | |
ad92460f ER |
114 | %prep |
115 | %setup -q | |
116 | %patch0 -p1 | |
117 | #patch1 -p1 | |
ad92460f ER |
118 | |
119 | %build | |
120 | %configure \ | |
3f0ec508 | 121 | MATEDIALOG=%{_bindir}/matedialog \ |
ccc00ddb | 122 | --disable-scrollkeeper \ |
e0444e6a | 123 | --disable-silent-rules \ |
ad92460f | 124 | --disable-static \ |
ad92460f | 125 | --with-gnu-ld \ |
ccc00ddb | 126 | %{?with_gtk3:--with-gtk=3.0} \ |
ad92460f ER |
127 | --with-x |
128 | ||
e0444e6a | 129 | %{__make} |
ad92460f ER |
130 | |
131 | %install | |
132 | rm -rf $RPM_BUILD_ROOT | |
133 | %{__make} install \ | |
134 | DESTDIR=$RPM_BUILD_ROOT | |
135 | ||
5e1a3c42 ER |
136 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmarco-private.la |
137 | ||
138 | # mate < 1.5 did not exist in pld, avoid dependency on mate-conf | |
139 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/marco.convert | |
ad92460f ER |
140 | |
141 | desktop-file-install \ | |
142 | --remove-category="MATE" \ | |
143 | --delete-original \ | |
ccc00ddb JB |
144 | --dir=$RPM_BUILD_ROOT%{_desktopdir} \ |
145 | $RPM_BUILD_ROOT%{_desktopdir}/marco.desktop | |
ad92460f | 146 | |
e0444e6a | 147 | %find_lang %{name} --all-name --with-mate |
ad92460f ER |
148 | |
149 | %clean | |
150 | rm -rf $RPM_BUILD_ROOT | |
151 | ||
152 | %post | |
ad92460f ER |
153 | %glib_compile_schemas |
154 | ||
155 | %postun | |
ad92460f ER |
156 | %glib_compile_schemas |
157 | ||
ccc00ddb JB |
158 | %post libs -p /sbin/ldconfig |
159 | %postun libs -p /sbin/ldconfig | |
160 | ||
ad92460f ER |
161 | %files -f %{name}.lang |
162 | %defattr(644,root,root,755) | |
ccc00ddb | 163 | %doc AUTHORS ChangeLog NEWS README |
ad92460f ER |
164 | %attr(755,root,root) %{_bindir}/marco |
165 | %attr(755,root,root) %{_bindir}/marco-message | |
e0444e6a | 166 | %{_datadir}/mate-window-manager |
39cadd2d | 167 | %{_datadir}/mate-control-center/keybindings/50-marco*.xml |
ccc00ddb JB |
168 | %dir %{_datadir}/mate/wm-properties |
169 | %{_datadir}/mate/wm-properties/marco-wm.desktop | |
39cadd2d | 170 | %{_datadir}/glib-2.0/schemas/org.mate.marco.gschema.xml |
ccc00ddb JB |
171 | %{_desktopdir}/marco.desktop |
172 | %{_mandir}/man1/marco.1* | |
173 | %{_mandir}/man1/marco-message.1* | |
39cadd2d | 174 | |
ccc00ddb | 175 | # TODO: find better packages |
5e1a3c42 ER |
176 | %dir %{_datadir}/mate-control-center |
177 | %dir %{_datadir}/mate-control-center/keybindings | |
5e1a3c42 | 178 | |
ccc00ddb JB |
179 | %files libs |
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 | |
183 | ||
184 | %files devel | |
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* | |
193 | ||
39cadd2d ER |
194 | %files themes |
195 | %defattr(644,root,root,755) | |
ad92460f ER |
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 |