]> git.pld-linux.org Git - packages/marco.git/blame - marco.spec
up to 1.12.0
[packages/marco.git] / marco.spec
CommitLineData
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 8Summary: MATE Desktop window manager
ccc00ddb 9Summary(pl.UTF-8): Zarządca okien środowiska MATE Desktop
3a49286f 10Name: marco
0bbebcfe 11Version: 1.12.0
5ac9c40b 12Release: 1
3f0ec508 13License: LGPL v2+ and GPL v2+
ad92460f 14Group: X11/Window Managers
0bbebcfe
JP
15Source0: http://pub.mate-desktop.org/releases/1.12/%{name}-%{version}.tar.xz
16# Source0-md5: da8360bbc27ae45014fec900b48d2984
ad92460f
ER
17# https://bugzilla.gnome.org/show_bug.cgi?id=622517
18Patch0: Allow-breaking-out-from-maximization-during-mouse.patch
19# https://bugs.launchpad.net/ubuntu/+source/metacity/+bug/583847
20Patch1: initialise_all_workspace_names.patch
3f0ec508 21URL: http://wiki.mate-desktop.org/mate-window-manager
3a49286f
JP
22BuildRequires: autoconf >= 2.50
23BuildRequires: automake
ad92460f 24BuildRequires: desktop-file-utils
ccc00ddb 25BuildRequires: gdk-pixbuf2-devel >= 2.0
bf628d36 26BuildRequires: gettext-tools >= 0.10.40
5ac9c40b
JB
27BuildRequires: glib2-devel >= 1:2.32.0
28%{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.24.0}
ccc00ddb 29%{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0.0}
0bbebcfe 30BuildRequires: intltool >= 0.50.1
ccc00ddb
JB
31%{!?with_gtk3:BuildRequires: libcanberra-gtk-devel}
32%{?with_gtk3:BuildRequires: libcanberra-gtk3-devel}
33BuildRequires: libgtop-devel
ad92460f 34BuildRequires: mate-common
5ac9c40b 35%{?with_gtk3:BuildRequires: mate-desktop-devel >= 1.9.3}
ccc00ddb 36BuildRequires: pango-devel >= 1:1.2.0
e0444e6a 37BuildRequires: rpmbuild(find_lang) >= 1.36
ccc00ddb 38BuildRequires: startup-notification-devel >= 0.7
91ab70d8 39BuildRequires: tar >= 1:1.22
3f0ec508
ER
40BuildRequires: xorg-lib-libICE-devel
41BuildRequires: xorg-lib-libSM-devel
ccc00ddb
JB
42BuildRequires: xorg-lib-libX11-devel
43BuildRequires: xorg-lib-libXcomposite-devel >= 0.2
44BuildRequires: xorg-lib-libXcursor-devel
45BuildRequires: xorg-lib-libXext-devel
3f0ec508 46BuildRequires: xorg-lib-libXdamage-devel
ccc00ddb
JB
47BuildRequires: xorg-lib-libXinerama-devel
48BuildRequires: xorg-lib-libXrandr-devel
49BuildRequires: xorg-lib-libXrender-devel
91ab70d8 50BuildRequires: xz
5ac9c40b 51BuildRequires: yelp-tools
0af0c20f 52Requires: %{name}-libs = %{version}-%{release}
5ac9c40b 53Requires: glib2 >= 1:2.32.0
ad92460f 54Requires: gsettings-desktop-schemas
ccc00ddb
JB
55Requires: mate-icon-theme
56Requires: mate-settings-daemon
cfe3620b 57Requires: zenity
8446ed7d 58Suggests: mate-control-center
39cadd2d
ER
59# can use any gtk+2 themes nicely, Adwaita specially
60Suggests: %{name}-themes
3a49286f 61Obsoletes: mate-window-manager
ad92460f 62Obsoletes: mate-window-manager-libs < 1.4.1-2
0af0c20f 63BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
ad92460f
ER
64
65%description
ccc00ddb
JB
66MATE Desktop window manager. MATE Marco is a fork of GNOME Metacity.
67
68%description -l pl.UTF-8
69Zarządca okien środowiska MATE Desktop. MATE Marco to odgałęzienie
70pakietu GNOME Metacity.
ad92460f 71
0af0c20f 72%package libs
ccc00ddb
JB
73Summary: Marco (MATE window manager) library
74Summary(pl.UTF-8): Biblioteka Macro (zarządcy okien MATE)
0af0c20f 75Group: X11/Libraries
5ac9c40b
JB
76Requires: glib2 >= 1:2.32.0
77%{!?with_gtk3:Requires: gtk+2 >= 2:2.24.0}
ccc00ddb 78%{?with_gtk3:Requires: gtk+3 >= 3.0.0}
5ac9c40b 79%{?with_gtk3:Requires: mate-desktop-libs >= 1.9.3}
ccc00ddb
JB
80Requires: pango >= 1:1.2.0
81Requires: startup-notification >= 0.7
82Requires: xorg-lib-libXcomposite >= 0.2
3a49286f 83Obsoletes: mate-window-manager-libs >= 1.4.1-2
0af0c20f
ER
84
85%description libs
ccc00ddb
JB
86This package contains the shared library for Marco, the MATE window
87manager.
0af0c20f
ER
88
89%description libs -l pl.UTF-8
ccc00ddb
JB
90Pakiet zawierający bibliotekę współdzieloną Marco (zarządcy okien
91MATE).
0af0c20f 92
ad92460f 93%package devel
ccc00ddb
JB
94Summary: Development files for Marco (Mate window manager)
95Summary(pl.UTF-8): Pliki programistyczne Marco (zarządcy okien MATE)
ad92460f 96Group: Development/Libraries
0af0c20f 97Requires: %{name}-libs = %{version}-%{release}
5ac9c40b
JB
98Requires: glib2-devel >= 1:2.32.0
99%{!?with_gtk3:Requires: gtk+2-devel >= 2:2.24.0}
ccc00ddb 100%{?with_gtk3:Requires: gtk+3-devel >= 3.0.0}
5ac9c40b 101%{?with_gtk3:Requires: mate-desktop-devel >= 1.9.3}
3a49286f 102Obsoletes: mate-window-manager-devel
ad92460f
ER
103
104%description devel
ccc00ddb
JB
105Development files for Marco (Mate window manager).
106
107%description devel -l pl.UTF-8
108Pliki programistyczne Marco (zarządcy okien MATE).
ad92460f 109
39cadd2d 110%package themes
ccc00ddb
JB
111Summary: Themes for MATE Window Manager
112Summary(pl.UTF-8): Motywy dla zarządcy okien MATE
39cadd2d
ER
113Group: Themes/GTK+
114Requires: %{name} = %{version}-%{release}
3a49286f 115Obsoletes: mate-window-manager-themes
39cadd2d
ER
116
117%description themes
ccc00ddb
JB
118Themes for MATE Window Manager.
119
120%description themes -l pl.UTF-8
121Motywy dla zarządcy okien MATE
39cadd2d 122
ad92460f
ER
123%prep
124%setup -q
125%patch0 -p1
126#patch1 -p1
ad92460f
ER
127
128%build
3a49286f
JP
129%{__libtoolize}
130%{__aclocal} -I m4
131%{__autoconf}
132%{__autoheader}
133%{__automake}
ad92460f 134%configure \
e7311a42 135 ZENITY=%{_bindir}/zenity \
ccc00ddb 136 --disable-scrollkeeper \
e0444e6a 137 --disable-silent-rules \
ad92460f 138 --disable-static \
ad92460f 139 --with-gnu-ld \
ccc00ddb 140 %{?with_gtk3:--with-gtk=3.0} \
ad92460f
ER
141 --with-x
142
e0444e6a 143%{__make}
ad92460f
ER
144
145%install
146rm -rf $RPM_BUILD_ROOT
147%{__make} install \
148 DESTDIR=$RPM_BUILD_ROOT
149
5e1a3c42
ER
150%{__rm} $RPM_BUILD_ROOT%{_libdir}/libmarco-private.la
151
152# mate < 1.5 did not exist in pld, avoid dependency on mate-conf
153%{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/marco.convert
ad92460f
ER
154
155desktop-file-install \
156 --remove-category="MATE" \
157 --delete-original \
ccc00ddb
JB
158 --dir=$RPM_BUILD_ROOT%{_desktopdir} \
159 $RPM_BUILD_ROOT%{_desktopdir}/marco.desktop
ad92460f 160
e0444e6a 161%find_lang %{name} --all-name --with-mate
ad92460f
ER
162
163%clean
164rm -rf $RPM_BUILD_ROOT
165
166%post
ad92460f
ER
167%glib_compile_schemas
168
169%postun
ad92460f
ER
170%glib_compile_schemas
171
ccc00ddb
JB
172%post libs -p /sbin/ldconfig
173%postun libs -p /sbin/ldconfig
174
ad92460f
ER
175%files -f %{name}.lang
176%defattr(644,root,root,755)
ccc00ddb 177%doc AUTHORS ChangeLog NEWS README
ad92460f
ER
178%attr(755,root,root) %{_bindir}/marco
179%attr(755,root,root) %{_bindir}/marco-message
3a49286f 180%{_datadir}/marco
39cadd2d 181%{_datadir}/mate-control-center/keybindings/50-marco*.xml
ccc00ddb
JB
182%dir %{_datadir}/mate/wm-properties
183%{_datadir}/mate/wm-properties/marco-wm.desktop
39cadd2d 184%{_datadir}/glib-2.0/schemas/org.mate.marco.gschema.xml
ccc00ddb
JB
185%{_desktopdir}/marco.desktop
186%{_mandir}/man1/marco.1*
187%{_mandir}/man1/marco-message.1*
39cadd2d 188
ccc00ddb 189# TODO: find better packages
5e1a3c42
ER
190%dir %{_datadir}/mate-control-center
191%dir %{_datadir}/mate-control-center/keybindings
5e1a3c42 192
ccc00ddb
JB
193%files libs
194%defattr(644,root,root,755)
195%attr(755,root,root) %{_libdir}/libmarco-private.so.*.*.*
196%attr(755,root,root) %ghost %{_libdir}/libmarco-private.so.0
197
198%files devel
199%defattr(644,root,root,755)
200%attr(755,root,root) %{_bindir}/marco-theme-viewer
201%attr(755,root,root) %{_bindir}/marco-window-demo
202%attr(755,root,root) %{_libdir}/libmarco-private.so
203%{_includedir}/marco-1
204%{_pkgconfigdir}/libmarco-private.pc
205%{_mandir}/man1/marco-theme-viewer.1*
206%{_mandir}/man1/marco-window-demo.1*
207
39cadd2d
ER
208%files themes
209%defattr(644,root,root,755)
ad92460f
ER
210%{_datadir}/themes/ClearlooksRe
211%{_datadir}/themes/Dopple-Left
212%{_datadir}/themes/Dopple
213%{_datadir}/themes/DustBlue
214%{_datadir}/themes/Spidey-Left
215%{_datadir}/themes/Spidey
216%{_datadir}/themes/Splint-Left
217%{_datadir}/themes/Splint
218%{_datadir}/themes/WinMe
219%{_datadir}/themes/eOS
This page took 0.088011 seconds and 4 git commands to generate.