]> git.pld-linux.org Git - packages/mozo.git/blob - mozo.spec
f4d64c5a28875d1fa1cbb685bf6db18fd138b948
[packages/mozo.git] / mozo.spec
1 Summary:        Mozo - menu editor for MATE desktop
2 Summary(pl.UTF-8):      Mozo - edytor menu dla środowiska MATE
3 Name:           mozo
4 Version:        1.26.1
5 Release:        1
6 License:        GPL v2
7 Group:          X11/Applications
8 Source0:        https://pub.mate-desktop.org/releases/1.26/%{name}-%{version}.tar.xz
9 # Source0-md5:  d409f9f8b98309d62aae81f60dbba78f
10 Patch0:         %{name}-noarch.patch
11 URL:            https://wiki.mate-desktop.org/mate-desktop/applications/mozo/
12 BuildRequires:  autoconf >= 2.53
13 BuildRequires:  automake >= 1:1.7
14 BuildRequires:  gettext-tools >= 0.19.8
15 BuildRequires:  mate-menus-devel >= 1.21.0
16 BuildRequires:  pkgconfig >= 1:0.21
17 BuildRequires:  python3 >= 1:3.5
18 BuildRequires:  python3-pygobject3 >= 3.0
19 BuildRequires:  python-pygobject3-common-devel >= 3.0
20 BuildRequires:  rpm-pythonprov
21 BuildRequires:  rpmbuild(macros) >= 1.596
22 BuildRequires:  tar >= 1:1.22
23 BuildRequires:  xz
24 Requires(post,postun):  gtk-update-icon-cache
25 Requires(post,postun):  hicolor-icon-theme >= 0.10-3
26 Requires:       gdk-pixbuf2
27 Requires:       gobject-introspection
28 Requires:       gtk+3 >= 3.0
29 Requires:       mate-menus-libs >= 1.21.0
30 Requires:       python3 >= 1:3.5
31 Requires:       python3-pygobject3 >= 3.0
32 Obsoletes:      mate-menu-editor < 1.8.0
33 BuildArch:      noarch
34 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36 %description
37 Mozo is a menu editor for MATE using the freedesktop.org menu
38 specification.
39
40 Mozo is a fork of Alacarte.
41
42 %description -l pl.UTF-8
43 Mozo to edytor menu dla środowiska MATE, wykorzystujący specyfikację
44 menu freedesktop.org.
45
46 Mozo to odgałęzienie projektu Alacarte.
47
48 %prep
49 %setup -q
50 %patch0 -p1
51
52 %build
53 %{__aclocal}
54 %{__autoconf}
55 %{__autoheader}
56 %{__automake}
57 %configure \
58         PYTHON=/usr/bin/python3 \
59         am_cv_python_pythondir=%{py3_sitescriptdir} \
60         --disable-icon-update \
61         --disable-silent-rules
62 %{__make}
63
64 %install
65 rm -rf $RPM_BUILD_ROOT
66
67 %{__make} install \
68         DESTDIR=$RPM_BUILD_ROOT
69
70 # not supported by glibc
71 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/locale/{es_ES,frp,ie,ku_IQ,pms,nah,nqo,ur_PK}
72
73 %find_lang mozo
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %post
79 %update_icon_cache hicolor
80
81 %postun
82 %update_icon_cache hicolor
83
84 %files -f mozo.lang
85 %defattr(644,root,root,755)
86 %doc AUTHORS ChangeLog NEWS README
87 %attr(755,root,root) %{_bindir}/mozo
88 %dir %{py3_sitescriptdir}/Mozo
89 %{py3_sitescriptdir}/Mozo/*.py
90 %dir %{py3_sitescriptdir}/Mozo/__pycache__
91 %{py3_sitescriptdir}/Mozo/__pycache__/*.py[co]
92 %{_datadir}/mozo
93 %{_desktopdir}/mozo.desktop
94 %{_iconsdir}/hicolor/*x*/apps/mozo.png
95 %{_mandir}/man1/mozo.1*
This page took 0.088783 seconds and 2 git commands to generate.