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