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