]>
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 | |
0f4ca44a | 8 | Version: 1.8.1 |
47c87f79 | 9 | Release: 2 |
db874592 | 10 | License: GPL v3 |
c5ee8a66 | 11 | Group: X11/Applications |
d82642f4 | 12 | Source0: http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz |
0f4ca44a | 13 | # Source0-md5: 12d58c28b3616af9bd1657c4fbb5081a |
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 |
c5ee8a66 | 18 | BuildRequires: glib2-devel >= 2.0 |
65489c23 JB |
19 | %{!?with_gtk3:BuildRequires: gtk+2-devel >= 2.0} |
20 | %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0} | |
c5ee8a66 JB |
21 | BuildRequires: intltool >= 0.34 |
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} | |
28 | BuildRequires: mate-desktop-devel | |
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 | |
35 | Requires(post,postun): glib2 >= 2.0 | |
36 | Requires: mate-panel | |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
38 | ||
39 | %description | |
40 | A simple window management tool which: | |
41 | - allows you to set basic rules for a window type, such as maximise | |
42 | or undecorate | |
43 | - allows exceptions to the rules, based on string matching for window | |
44 | name and window class | |
45 | - allows 'reversing' of rules when the user manually changes | |
46 | something: | |
47 | - re-decorates windows on un-maximise | |
48 | ||
49 | %description -l pl.UTF-8 | |
50 | Proste narzędzie do zarządzania oknami, które: | |
51 | - pozwala na ustawianie podstawowych reguł dla typu okna, takich jak | |
52 | maksymalizacja lub usunięcie dekoracji | |
53 | - pozwala na wyjątki od reguł, w oparciu o dopasowywanie nazwy lub | |
54 | klasy okna | |
55 | - pozwala na odwrócenie reguł, kiedy użytkownik coś zmieni: | |
56 | - ponownie włącza dekoracje okien przy wyłączeniu maksymalizacji | |
57 | ||
58 | %prep | |
59 | %setup -q | |
c5ee8a66 JB |
60 | |
61 | %build | |
62 | %{__intltoolize} | |
63 | %{__libtoolize} | |
64 | %{__aclocal} | |
65 | %{__autoconf} | |
66 | %{__autoheader} | |
67 | %{__automake} | |
68 | %configure \ | |
65489c23 JB |
69 | --disable-silent-rules \ |
70 | %{?with_gtk3:--with-gtk=3.0} | |
c5ee8a66 JB |
71 | |
72 | %{__make} | |
73 | ||
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %{__make} install \ | |
78 | DESTDIR=$RPM_BUILD_ROOT | |
79 | ||
80 | # mate < 1.5 did not exist in PLD, avoid dependency on mate-conf | |
81 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/mate-maximus.convert | |
82 | ||
83 | %find_lang %{name} | |
84 | ||
85 | %clean | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %post | |
89 | %glib_compile_schemas | |
90 | ||
91 | %postun | |
92 | %glib_compile_schemas | |
93 | ||
94 | %files -f %{name}.lang | |
95 | %defattr(644,root,root,755) | |
96 | %doc AUTHORS ChangeLog NEWS README | |
97 | %attr(755,root,root) %{_bindir}/mate-maximus | |
98 | %attr(755,root,root) %{_libexecdir}/mate-window-picker-applet | |
99 | /etc/xdg/autostart/mate-maximus-autostart.desktop | |
100 | %{_datadir}/dbus-1/services/org.mate.panel.applet.MateWindowPickerFactory.service | |
101 | %{_datadir}/glib-2.0/schemas/org.mate.maximus.gschema.xml | |
102 | %{_datadir}/glib-2.0/schemas/org.mate.panel.applet.mate-window-picker-applet.gschema.xml | |
103 | %{_datadir}/mate-panel/applets/org.mate.panel.MateWindowPicker.mate-panel-applet | |
104 | %{_datadir}/mate-panel/ui/mate-window-picker-applet-menu.xml | |
0f4ca44a | 105 | %{_mandir}/man1/mate-maximus.1* |