1 | %define major_ver 1.18 |
---|
2 | %define ver %{major_ver}.0 |
---|
3 | %define rel 1 |
---|
4 | |
---|
5 | Summary: The MATE menu editor |
---|
6 | Name: mozo |
---|
7 | Version: %{ver} |
---|
8 | Release: %{rel}%{?_dist_release} |
---|
9 | |
---|
10 | Source0: http://pub.mate-desktop.org/releases/%{major_ver}/%{name}-%{version}.tar.xz |
---|
11 | |
---|
12 | License: LGPLv2.1 |
---|
13 | Group: User Interface/Desktops |
---|
14 | URL: http://mate-desktop.org/ |
---|
15 | |
---|
16 | BuildRequires: mate-common |
---|
17 | BuildRequires: mate-menus-devel |
---|
18 | BuildRequires: pygobject3-devel >= 2.13.0 |
---|
19 | BuildRequires: gtk-doc |
---|
20 | BuildRequires: autoconf |
---|
21 | BuildRequires: automake |
---|
22 | |
---|
23 | Requires: pygtk2 |
---|
24 | Requires: pygobject |
---|
25 | Requires: mate-menus-python |
---|
26 | Requires(post,postun): desktop-file-utils |
---|
27 | |
---|
28 | Obsoletes: mate-menu-editor < 1.8.0 |
---|
29 | Provides: mate-menu-editor = %{version}-%{name} |
---|
30 | |
---|
31 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
32 | |
---|
33 | BuildArch: noarch |
---|
34 | |
---|
35 | Vendor: Project Vine |
---|
36 | Distribution: Vine Linux |
---|
37 | Packager: Takemikaduchi, iwaim |
---|
38 | |
---|
39 | |
---|
40 | %description |
---|
41 | Mozo(mate-menu-editor) is a menu editor for MATE using the |
---|
42 | freedesktop.org menu specification. |
---|
43 | |
---|
44 | %prep |
---|
45 | %setup -q |
---|
46 | |
---|
47 | |
---|
48 | %build |
---|
49 | (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi) |
---|
50 | %configure \ |
---|
51 | --disable-static |
---|
52 | |
---|
53 | %{__make} %{?_smp_mflags} |
---|
54 | |
---|
55 | |
---|
56 | %install |
---|
57 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
58 | |
---|
59 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
60 | |
---|
61 | find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \; |
---|
62 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
63 | |
---|
64 | %find_lang %{name} |
---|
65 | |
---|
66 | |
---|
67 | %clean |
---|
68 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
69 | |
---|
70 | %post |
---|
71 | /sbin/ldconfig |
---|
72 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
73 | touch --no-create %{_datadir}/icons/hicolor > /dev/null || : |
---|
74 | |
---|
75 | %postun |
---|
76 | /sbin/ldconfig |
---|
77 | if [ $1 -eq 0 ]; then |
---|
78 | touch --no-create %{_datadir}/icons/hicolor > /dev/null || : |
---|
79 | gtk-update-icon-cache -q %{_datadir}/icons/hicolor > /dev/null || : |
---|
80 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
81 | fi |
---|
82 | |
---|
83 | %posttrans |
---|
84 | gtk-update-icon-cache -q %{_datadir}/icons/hicolor > /dev/null || : |
---|
85 | |
---|
86 | |
---|
87 | %files -f %{name}.lang |
---|
88 | %defattr(-,root,root,-) |
---|
89 | %doc COPYING ChangeLog NEWS README |
---|
90 | %{_bindir}/%{name} |
---|
91 | %{python_sitelib}/Mozo |
---|
92 | %{_datadir}/applications/%{name}.desktop |
---|
93 | %{_datadir}/icons/*/*/* |
---|
94 | %{_datadir}/%{name}/%{name}.ui |
---|
95 | %{_mandir}/man1/%{name}.1.gz |
---|
96 | |
---|
97 | |
---|
98 | %changelog |
---|
99 | * Sat Apr 8 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 1.18.0-1 |
---|
100 | - update to 1.18.0 |
---|
101 | - drop BR: pygtk2-devel |
---|
102 | |
---|
103 | * Sun Nov 27 2016 IWAI, Masaharu <iwaim.sub@gmail.com> 1.16.0-1 |
---|
104 | - new upstream release |
---|
105 | - update License |
---|
106 | - update Packager |
---|
107 | |
---|
108 | * Sun May 08 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.14.0-1 |
---|
109 | - new upstream release |
---|
110 | - change BuildRequires: pygobject3-devel instead of pygobject-devel |
---|
111 | |
---|
112 | * Sat Nov 07 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.0-1 |
---|
113 | - new upstream release |
---|
114 | |
---|
115 | * Sun Aug 16 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.1-1 |
---|
116 | - new upstream release |
---|
117 | |
---|
118 | * Sat May 23 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.0-1 |
---|
119 | - new upstream release |
---|
120 | |
---|
121 | * Thu Apr 17 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-1 |
---|
122 | - new upstream release |
---|
123 | - rename package |
---|
124 | |
---|
125 | * Sun Dec 29 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.0-2 |
---|
126 | - rebuild with VineSeed environment |
---|
127 | |
---|
128 | * Mon Sep 23 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.0-1 |
---|
129 | - initial build |
---|
130 | |
---|