]>
Commit | Line | Data |
---|---|---|
ad92460f ER |
1 | # TODO |
2 | # - subpackages for themes (see metacity.spec) | |
39cadd2d | 3 | # - find proper packages for %files |
ad92460f ER |
4 | Summary: MATE Desktop window manager |
5 | Name: mate-window-manager | |
3f0ec508 | 6 | Version: 1.5.3 |
0af0c20f | 7 | Release: 0.5 |
3f0ec508 | 8 | License: LGPL v2+ and GPL v2+ |
ad92460f | 9 | Group: X11/Window Managers |
ad92460f | 10 | Source0: http://pub.mate-desktop.org/releases/1.5/%{name}-%{version}.tar.xz |
3f0ec508 | 11 | # Source0-md5: b3ce71f9db8563db1571f8ed80a543e3 |
ad92460f ER |
12 | # https://bugzilla.gnome.org/show_bug.cgi?id=622517 |
13 | Patch0: Allow-breaking-out-from-maximization-during-mouse.patch | |
14 | # https://bugs.launchpad.net/ubuntu/+source/metacity/+bug/583847 | |
15 | Patch1: initialise_all_workspace_names.patch | |
3f0ec508 | 16 | URL: http://wiki.mate-desktop.org/mate-window-manager |
ad92460f | 17 | BuildRequires: desktop-file-utils |
3f0ec508 ER |
18 | BuildRequires: gsettings-desktop-schemas-devel |
19 | BuildRequires: gtk+2-devel | |
20 | BuildRequires: libcanberra-devel | |
21 | BuildRequires: libcanberra-gtk-devel | |
22 | BuildRequires: libsoup-devel | |
ad92460f | 23 | BuildRequires: mate-common |
3f0ec508 ER |
24 | BuildRequires: mate-doc-utils |
25 | BuildRequires: startup-notification-devel | |
91ab70d8 | 26 | BuildRequires: tar >= 1:1.22 |
3f0ec508 ER |
27 | BuildRequires: xorg-lib-libICE-devel |
28 | BuildRequires: xorg-lib-libSM-devel | |
29 | BuildRequires: xorg-lib-libXdamage-devel | |
91ab70d8 | 30 | BuildRequires: xz |
0af0c20f | 31 | Requires: %{name}-libs = %{version}-%{release} |
ad92460f ER |
32 | Requires: glib2 >= 1:2.26.0 |
33 | Requires: gsettings-desktop-schemas | |
8446ed7d | 34 | Suggests: mate-control-center |
39cadd2d ER |
35 | # can use any gtk+2 themes nicely, Adwaita specially |
36 | Suggests: %{name}-themes | |
ad92460f ER |
37 | Requires(post): /sbin/ldconfig |
38 | Obsoletes: mate-window-manager-libs < 1.4.1-2 | |
39 | # http://bugzilla.redhat.com/873342 | |
40 | #Provides: firstboot(windowmanager) = mate-window-manager | |
0af0c20f | 41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ad92460f ER |
42 | |
43 | %description | |
3f0ec508 | 44 | MATE Desktop window manager. |
ad92460f | 45 | |
0af0c20f ER |
46 | %package libs |
47 | Summary: marco library | |
48 | Summary(pl.UTF-8): marco biblioteka | |
49 | Group: X11/Libraries | |
50 | ||
51 | %description libs | |
52 | This package contains libraries for MATE window manager. | |
53 | ||
54 | %description libs -l pl.UTF-8 | |
55 | Pakiet zawierający biblioteki zarządcy okien MATE. | |
56 | ||
ad92460f ER |
57 | %package devel |
58 | Summary: Development files for mate-window-manager | |
59 | Group: Development/Libraries | |
0af0c20f | 60 | Requires: %{name}-libs = %{version}-%{release} |
ad92460f ER |
61 | |
62 | %description devel | |
63 | Development files for mate-window-manager | |
64 | ||
39cadd2d ER |
65 | %package themes |
66 | Summary: Themes for Mate Window Manager | |
67 | Group: Themes/GTK+ | |
68 | Requires: %{name} = %{version}-%{release} | |
69 | ||
70 | %description themes | |
71 | Themes for Mate Window Manager. | |
72 | ||
ad92460f ER |
73 | %prep |
74 | %setup -q | |
75 | %patch0 -p1 | |
76 | #patch1 -p1 | |
ad92460f ER |
77 | |
78 | %build | |
08d66458 | 79 | NOCONFIGURE=1 ./autogen.sh |
ad92460f | 80 | %configure \ |
3f0ec508 | 81 | MATEDIALOG=%{_bindir}/matedialog \ |
ad92460f ER |
82 | --disable-static \ |
83 | --disable-scrollkeeper \ | |
84 | --with-gnu-ld \ | |
85 | --with-gtk=2.0 \ | |
86 | --with-x | |
87 | ||
88 | %{__make} \ | |
89 | V=1 | |
90 | ||
91 | %install | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | %{__make} install \ | |
94 | DESTDIR=$RPM_BUILD_ROOT | |
95 | ||
96 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -vf {} ';' | |
97 | ||
98 | desktop-file-install \ | |
99 | --remove-category="MATE" \ | |
100 | --delete-original \ | |
101 | --dir=$RPM_BUILD_ROOT%{_desktopdir} \ | |
102 | $RPM_BUILD_ROOT%{_desktopdir}/marco.desktop | |
103 | ||
104 | %find_lang %{name} --all-name | |
105 | ||
106 | %clean | |
107 | rm -rf $RPM_BUILD_ROOT | |
108 | ||
109 | %post | |
110 | /sbin/ldconfig | |
111 | %glib_compile_schemas | |
112 | ||
113 | %postun | |
114 | /sbin/ldconfig | |
115 | %glib_compile_schemas | |
116 | ||
117 | %files -f %{name}.lang | |
118 | %defattr(644,root,root,755) | |
119 | %doc AUTHORS COPYING README | |
120 | %attr(755,root,root) %{_bindir}/marco | |
121 | %attr(755,root,root) %{_bindir}/marco-message | |
122 | %{_desktopdir}/marco.desktop | |
39cadd2d ER |
123 | %{_datadir}/marco |
124 | %{_datadir}/mate-control-center/keybindings/50-marco*.xml | |
125 | %{_datadir}/mate/help/creating-marco-themes/C/creating-marco-themes.xml | |
126 | %{_datadir}/mate/wm-properties | |
127 | %{_datadir}/glib-2.0/schemas/org.mate.marco.gschema.xml | |
128 | %{_datadir}/MateConf/gsettings/marco.convert | |
129 | %{_mandir}/man1/marco.1.* | |
130 | %{_mandir}/man1/marco-message.1.* | |
131 | ||
132 | %files themes | |
133 | %defattr(644,root,root,755) | |
ad92460f ER |
134 | %{_datadir}/themes/ClearlooksRe |
135 | %{_datadir}/themes/Dopple-Left | |
136 | %{_datadir}/themes/Dopple | |
137 | %{_datadir}/themes/DustBlue | |
138 | %{_datadir}/themes/Spidey-Left | |
139 | %{_datadir}/themes/Spidey | |
140 | %{_datadir}/themes/Splint-Left | |
141 | %{_datadir}/themes/Splint | |
142 | %{_datadir}/themes/WinMe | |
143 | %{_datadir}/themes/eOS | |
ad92460f | 144 | |
ad92460f ER |
145 | # XXX find proper packages |
146 | %dir %{_datadir}/mate-control-center | |
147 | %dir %{_datadir}/mate-control-center/keybindings | |
148 | %dir %{_datadir}/mate/help/creating-marco-themes | |
149 | %dir %{_datadir}/mate/help/creating-marco-themes/C | |
150 | ||
0af0c20f ER |
151 | %files libs |
152 | %defattr(644,root,root,755) | |
153 | %attr(755,root,root) %{_libdir}/libmarco-private.so.*.*.* | |
154 | %ghost %{_libdir}/libmarco-private.so.0 | |
155 | ||
ad92460f ER |
156 | %files devel |
157 | %defattr(644,root,root,755) | |
158 | %attr(755,root,root) %{_bindir}/marco-theme-viewer | |
159 | %attr(755,root,root) %{_bindir}/marco-window-demo | |
160 | %{_includedir}/marco-1 | |
161 | %{_libdir}/libmarco-private.so | |
162 | %{_pkgconfigdir}/libmarco-private.pc | |
163 | %{_mandir}/man1/marco-theme-viewer.1.* | |
164 | %{_mandir}/man1/marco-window-demo.1.* |