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