1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
Summary: Displays menus for MATE Desktop
Summary(pl.UTF-8): Wyświetlanie menu w środowisku MATE Desktop
Name: mate-menus
Version: 1.26.1
Release: 1
# only (unpackaged) python example is GPL
License: LGPL v2+
Group: X11/Applications
Source0: https://pub.mate-desktop.org/releases/1.26/%{name}-%{version}.tar.xz
# Source0-md5: e7deb070463ad3d1ccbbf576efdd8267
URL: https://wiki.mate-desktop.org/mate-desktop/components/mate-menus/
BuildRequires: autoconf >= 2.62
BuildRequires: automake >= 1:1.9
BuildRequires: gettext-tools >= 0.19.8
BuildRequires: glib2-devel >= 1:2.50.0
BuildRequires: gobject-introspection-devel >= 0.6.7
BuildRequires: libtool >= 1:1.4.3
BuildRequires: mate-common >= 1.5
BuildRequires: pkgconfig
BuildRequires: tar >= 1:1.22
BuildRequires: xz
Requires: %{name}-libs = %{version}-%{release}
Obsoletes: python-matemenu < 1.22.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Displays menus for MATE Desktop.
%description -l pl.UTF-8
Wyświetlanie menu w środowisku MATE Desktop.
%package libs
Summary: Shared libmate-menu library
Summary(pl.UTF-8): Biblioteka współdzielona libmate-menu
Group: Libraries
Requires: glib2 >= 1:2.50.0
%description libs
Shared libmate-menu library.
%description libs -l pl.UTF-8
Biblioteka współdzielona libmate-menu.
%package devel
Summary: Development files for libmate-menu library
Summary(pl.UTF-8): Pliki programistyczne biblioteki libmate-menu
Group: Development/Libraries
Requires: %{name}-libs = %{version}-%{release}
Requires: glib2-devel >= 1:2.50.0
%description devel
Development files for libmate-menu library.
%description devel -l pl.UTF-8
Pliki programistyczne biblioteki libmate-menu.
%prep
%setup -q
%build
%{__libtoolize}
%{__aclocal} -I m4
%{__autoconf}
%{__autoheader}
%{__automake}
%configure \
--enable-introspection \
--disable-silent-rules \
--disable-static
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
%{__rm} $RPM_BUILD_ROOT%{_libdir}/libmate-menu.la
# just example
%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/mate-menus/examples
# empty dir
rmdir $RPM_BUILD_ROOT%{_datadir}/mate-menus
# not supported by glibc
%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{es_ES,frp,ie,jv,ku_IQ,nah,pms}
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post libs -p /sbin/ldconfig
%postun libs -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog README
%{_sysconfdir}/xdg/menus/mate-applications.menu
%{_sysconfdir}/xdg/menus/mate-preferences-categories.menu
%{_sysconfdir}/xdg/menus/mate-settings.menu
%{_datadir}/mate/desktop-directories
%files libs
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libmate-menu.so.*.*.*
%attr(755,root,root) %ghost %{_libdir}/libmate-menu.so.2
%{_libdir}/girepository-1.0/MateMenu-2.0.typelib
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libmate-menu.so
%{_datadir}/gir-1.0/MateMenu-2.0.gir
%{_includedir}/mate-menus
%{_pkgconfigdir}/libmate-menu.pc
|