]>
Commit | Line | Data |
---|---|---|
65489c23 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with gtk3 # use GTK+ 3.x instead of 2.x | |
4 | ||
c5ee8a66 JB |
5 | Summary: Simple window management tool |
6 | Summary(pl.UTF-8): Proste narzędzie do zarządzania oknami | |
7 | Name: mate-netbook | |
65f3de8f | 8 | Version: 1.14.0 |
04f921a4 | 9 | Release: 1 |
db874592 | 10 | License: GPL v3 |
c5ee8a66 | 11 | Group: X11/Applications |
65f3de8f JP |
12 | Source0: http://pub.mate-desktop.org/releases/1.14/%{name}-%{version}.tar.xz |
13 | # Source0-md5: b4610466829f28e95e47d5662f97d2f9 | |
c5ee8a66 JB |
14 | URL: http://mate-desktop.org/ |
15 | BuildRequires: autoconf >= 2.53 | |
16 | BuildRequires: automake >= 1:1.9 | |
645e1132 | 17 | BuildRequires: gettext-tools >= 0.10.40 |
91c046d1 | 18 | BuildRequires: glib2-devel >= 1:2.36.0 |
65489c23 JB |
19 | %{!?with_gtk3:BuildRequires: gtk+2-devel >= 2.0} |
20 | %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0} | |
1932573a | 21 | BuildRequires: intltool >= 0.50.1 |
c5ee8a66 JB |
22 | BuildRequires: libfakekey-devel |
23 | BuildRequires: libtool >= 1:1.4.3 | |
65489c23 JB |
24 | %{!?with_gtk3:BuildRequires: libunique-devel >= 1.0} |
25 | %{?with_gtk3:BuildRequires: libunique3-devel >= 3.0} | |
26 | %{?with_gtk3:BuildRequires: libwnck-devel >= 3.0} | |
27 | %{!?with_gtk3:BuildRequires: libwnck2-devel >= 1.0} | |
91c046d1 | 28 | BuildRequires: mate-desktop-devel >= 1.9.0 |
c5ee8a66 JB |
29 | BuildRequires: mate-panel-devel |
30 | BuildRequires: pkgconfig | |
31 | BuildRequires: rpmbuild(find_lang) >= 1.36 | |
32 | BuildRequires: tar >= 1:1.22 | |
33 | BuildRequires: xorg-lib-libXtst-devel | |
34 | BuildRequires: xz | |
91c046d1 JB |
35 | Requires(post,postun): glib2 >= 1:2.36.0 |
36 | Requires: glib2 >= 1:2.36.0 | |
37 | Requires: mate-desktop-libs >= 1.9.0 | |
c5ee8a66 JB |
38 | Requires: mate-panel |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
40 | ||
41 | %description | |
42 | A simple window management tool which: | |
43 | - allows you to set basic rules for a window type, such as maximise | |
44 | or undecorate | |
45 | - allows exceptions to the rules, based on string matching for window | |
46 | name and window class | |
47 | - allows 'reversing' of rules when the user manually changes | |
48 | something: | |
49 | - re-decorates windows on un-maximise | |
50 | ||
51 | %description -l pl.UTF-8 | |
52 | Proste narzędzie do zarządzania oknami, które: | |
53 | - pozwala na ustawianie podstawowych reguł dla typu okna, takich jak | |
54 | maksymalizacja lub usunięcie dekoracji | |
55 | - pozwala na wyjątki od reguł, w oparciu o dopasowywanie nazwy lub | |
56 | klasy okna | |
57 | - pozwala na odwrócenie reguł, kiedy użytkownik coś zmieni: | |
58 | - ponownie włącza dekoracje okien przy wyłączeniu maksymalizacji | |
59 | ||
60 | %prep | |
61 | %setup -q | |
c5ee8a66 JB |
62 | |
63 | %build | |
64 | %{__intltoolize} | |
65 | %{__libtoolize} | |
66 | %{__aclocal} | |
67 | %{__autoconf} | |
68 | %{__autoheader} | |
69 | %{__automake} | |
70 | %configure \ | |
65489c23 JB |
71 | --disable-silent-rules \ |
72 | %{?with_gtk3:--with-gtk=3.0} | |
c5ee8a66 JB |
73 | |
74 | %{__make} | |
75 | ||
76 | %install | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %{__make} install \ | |
80 | DESTDIR=$RPM_BUILD_ROOT | |
81 | ||
65f3de8f | 82 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{frp,jv} |
c5ee8a66 JB |
83 | |
84 | %find_lang %{name} | |
85 | ||
86 | %clean | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
89 | %post | |
90 | %glib_compile_schemas | |
91 | ||
92 | %postun | |
93 | %glib_compile_schemas | |
94 | ||
95 | %files -f %{name}.lang | |
96 | %defattr(644,root,root,755) | |
97 | %doc AUTHORS ChangeLog NEWS README | |
98 | %attr(755,root,root) %{_bindir}/mate-maximus | |
99 | %attr(755,root,root) %{_libexecdir}/mate-window-picker-applet | |
100 | /etc/xdg/autostart/mate-maximus-autostart.desktop | |
101 | %{_datadir}/dbus-1/services/org.mate.panel.applet.MateWindowPickerFactory.service | |
102 | %{_datadir}/glib-2.0/schemas/org.mate.maximus.gschema.xml | |
103 | %{_datadir}/glib-2.0/schemas/org.mate.panel.applet.mate-window-picker-applet.gschema.xml | |
104 | %{_datadir}/mate-panel/applets/org.mate.panel.MateWindowPicker.mate-panel-applet | |
105 | %{_datadir}/mate-panel/ui/mate-window-picker-applet-menu.xml | |
0f4ca44a | 106 | %{_mandir}/man1/mate-maximus.1* |