]>
Commit | Line | Data |
---|---|---|
ad92460f ER |
1 | # TODO |
2 | # - subpackages for themes (see metacity.spec) | |
3 | # - -libs subpackage | |
8446ed7d ER |
4 | #rpm -Uhv mate-window-manager-devel-1.5.2-0.4.i686.rpm |
5 | # libmarco-private.so.0 is needed by mate-window-manager-devel-1.5.2-0.4.i686 | |
6 | # mate-window-manager = 1.5.2-0.4 is needed by mate-window-manager-devel-1.5.2-0.4.i686 | |
ad92460f ER |
7 | Summary: MATE Desktop window manager |
8 | Name: mate-window-manager | |
9 | Version: 1.5.2 | |
10 | Release: 0.4 | |
11 | License: LGPLv2+ and GPLv2+ | |
12 | Group: X11/Window Managers | |
13 | URL: http://mate-desktop.org/ | |
14 | Source0: http://pub.mate-desktop.org/releases/1.5/%{name}-%{version}.tar.xz | |
15 | # https://bugzilla.gnome.org/show_bug.cgi?id=622517 | |
16 | Patch0: Allow-breaking-out-from-maximization-during-mouse.patch | |
17 | # https://bugs.launchpad.net/ubuntu/+source/metacity/+bug/583847 | |
18 | Patch1: initialise_all_workspace_names.patch | |
19 | # upstream patch | |
20 | # https://github.com/mate-desktop/mate-window-manager/commit/6404a98fb79e7bb4c3e9c5ca9919e12c946679d7 | |
21 | Patch2: 0001-fix-startup-rendering-effect-with-composite-enabled.patch | |
22 | BuildRequires: desktop-file-utils | |
23 | BuildRequires: mate-common | |
24 | BuildRequires: mate-dialogs | |
25 | BuildRequires: pkgconfig(MateCORBA-2.0) | |
26 | BuildRequires: pkgconfig(gsettings-desktop-schemas) | |
27 | BuildRequires: pkgconfig(gtk+-2.0) | |
28 | BuildRequires: pkgconfig(ice) | |
29 | BuildRequires: pkgconfig(libcanberra) | |
30 | BuildRequires: pkgconfig(libcanberra-gtk) | |
31 | BuildRequires: pkgconfig(libsoup-2.4) | |
32 | BuildRequires: pkgconfig(libstartup-notification-1.0) | |
33 | BuildRequires: pkgconfig(mate-doc-utils) | |
34 | BuildRequires: pkgconfig(sm) | |
35 | BuildRequires: pkgconfig(xdamage) | |
36 | Requires: glib2 >= 1:2.26.0 | |
37 | Requires: gsettings-desktop-schemas | |
8446ed7d | 38 | Suggests: mate-control-center |
ad92460f ER |
39 | Requires(post): /sbin/ldconfig |
40 | Obsoletes: mate-window-manager-libs < 1.4.1-2 | |
41 | # http://bugzilla.redhat.com/873342 | |
42 | #Provides: firstboot(windowmanager) = mate-window-manager | |
43 | ||
44 | #filter_from_requires /^libmarco-private.so/d; | |
45 | ||
46 | %description | |
47 | MATE Desktop window manager | |
48 | ||
49 | %package devel | |
50 | Summary: Development files for mate-window-manager | |
51 | Group: Development/Libraries | |
52 | Requires: %{name} = %{version}-%{release} | |
53 | ||
54 | %description devel | |
55 | Development files for mate-window-manager | |
56 | ||
57 | %prep | |
58 | %setup -q | |
59 | %patch0 -p1 | |
60 | #patch1 -p1 | |
61 | %patch2 -p1 | |
62 | NOCONFIGURE=1 ./autogen.sh | |
63 | ||
64 | %build | |
65 | %configure \ | |
66 | --disable-static \ | |
67 | --disable-scrollkeeper \ | |
68 | --with-gnu-ld \ | |
69 | --with-gtk=2.0 \ | |
70 | --with-x | |
71 | ||
72 | %{__make} \ | |
73 | V=1 | |
74 | ||
75 | %install | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | %{__make} install \ | |
78 | DESTDIR=$RPM_BUILD_ROOT | |
79 | ||
80 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -vf {} ';' | |
81 | ||
82 | desktop-file-install \ | |
83 | --remove-category="MATE" \ | |
84 | --delete-original \ | |
85 | --dir=$RPM_BUILD_ROOT%{_desktopdir} \ | |
86 | $RPM_BUILD_ROOT%{_desktopdir}/marco.desktop | |
87 | ||
88 | %find_lang %{name} --all-name | |
89 | ||
90 | %clean | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %post | |
94 | /sbin/ldconfig | |
95 | %glib_compile_schemas | |
96 | ||
97 | %postun | |
98 | /sbin/ldconfig | |
99 | %glib_compile_schemas | |
100 | ||
101 | %files -f %{name}.lang | |
102 | %defattr(644,root,root,755) | |
103 | %doc AUTHORS COPYING README | |
104 | %attr(755,root,root) %{_bindir}/marco | |
105 | %attr(755,root,root) %{_bindir}/marco-message | |
106 | %{_desktopdir}/marco.desktop | |
107 | %{_datadir}/themes/ClearlooksRe | |
108 | %{_datadir}/themes/Dopple-Left | |
109 | %{_datadir}/themes/Dopple | |
110 | %{_datadir}/themes/DustBlue | |
111 | %{_datadir}/themes/Spidey-Left | |
112 | %{_datadir}/themes/Spidey | |
113 | %{_datadir}/themes/Splint-Left | |
114 | %{_datadir}/themes/Splint | |
115 | %{_datadir}/themes/WinMe | |
116 | %{_datadir}/themes/eOS | |
117 | %{_datadir}/marco | |
118 | %{_datadir}/mate-control-center/keybindings/50-marco*.xml | |
119 | %{_datadir}/mate/help/creating-marco-themes/C/creating-marco-themes.xml | |
120 | %{_datadir}/mate/wm-properties | |
121 | %{_datadir}/glib-2.0/schemas/org.mate.marco.gschema.xml | |
122 | %{_mandir}/man1/marco.1.* | |
123 | %{_mandir}/man1/marco-message.1.* | |
124 | ||
125 | # -libs | |
126 | %attr(755,root,root) %{_libdir}/libmarco-private.so.*.*.* | |
127 | %ghost %{_libdir}/libmarco-private.so.0 | |
128 | ||
129 | # XXX find proper packages | |
130 | %dir %{_datadir}/mate-control-center | |
131 | %dir %{_datadir}/mate-control-center/keybindings | |
132 | %dir %{_datadir}/mate/help/creating-marco-themes | |
133 | %dir %{_datadir}/mate/help/creating-marco-themes/C | |
134 | ||
135 | %files devel | |
136 | %defattr(644,root,root,755) | |
137 | %attr(755,root,root) %{_bindir}/marco-theme-viewer | |
138 | %attr(755,root,root) %{_bindir}/marco-window-demo | |
139 | %{_includedir}/marco-1 | |
140 | %{_libdir}/libmarco-private.so | |
141 | %{_pkgconfigdir}/libmarco-private.pc | |
142 | %{_mandir}/man1/marco-theme-viewer.1.* | |
143 | %{_mandir}/man1/marco-window-demo.1.* |