[11671] | 1 | %define major_ver 1.20 |
---|
[11018] | 2 | %define ver %{major_ver}.0 |
---|
| 3 | %define rel 1 |
---|
| 4 | |
---|
[8359] | 5 | Summary: The MATE menu editor |
---|
| 6 | Name: mozo |
---|
[11018] | 7 | Version: %{ver} |
---|
| 8 | Release: %{rel}%{?_dist_release} |
---|
[8359] | 9 | |
---|
[11018] | 10 | Source0: http://pub.mate-desktop.org/releases/%{major_ver}/%{name}-%{version}.tar.xz |
---|
[8359] | 11 | |
---|
[10903] | 12 | License: LGPLv2.1 |
---|
[8359] | 13 | Group: User Interface/Desktops |
---|
| 14 | URL: http://mate-desktop.org/ |
---|
| 15 | |
---|
| 16 | BuildRequires: mate-common |
---|
| 17 | BuildRequires: mate-menus-devel |
---|
[10255] | 18 | BuildRequires: pygobject3-devel >= 2.13.0 |
---|
[8359] | 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 |
---|
[10903] | 37 | Packager: Takemikaduchi, iwaim |
---|
[8359] | 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 |
---|
[11671] | 99 | * Sun May 20 2018 IWAI, Masaharu <iwaim.sub@gmail.com> 1.20.0-1 |
---|
| 100 | - update to 1.20.0 |
---|
| 101 | |
---|
[11018] | 102 | * Sat Apr 8 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 1.18.0-1 |
---|
| 103 | - update to 1.18.0 |
---|
| 104 | - drop BR: pygtk2-devel |
---|
| 105 | |
---|
[10903] | 106 | * Sun Nov 27 2016 IWAI, Masaharu <iwaim.sub@gmail.com> 1.16.0-1 |
---|
| 107 | - new upstream release |
---|
| 108 | - update License |
---|
| 109 | - update Packager |
---|
| 110 | |
---|
[10255] | 111 | * Sun May 08 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.14.0-1 |
---|
| 112 | - new upstream release |
---|
| 113 | - change BuildRequires: pygobject3-devel instead of pygobject-devel |
---|
| 114 | |
---|
[9797] | 115 | * Sat Nov 07 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.0-1 |
---|
| 116 | - new upstream release |
---|
| 117 | |
---|
[9705] | 118 | * Sun Aug 16 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.1-1 |
---|
| 119 | - new upstream release |
---|
| 120 | |
---|
[9573] | 121 | * Sat May 23 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.0-1 |
---|
| 122 | - new upstream release |
---|
| 123 | |
---|
[8359] | 124 | * Thu Apr 17 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-1 |
---|
| 125 | - new upstream release |
---|
| 126 | - rename package |
---|
| 127 | |
---|
| 128 | * Sun Dec 29 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.0-2 |
---|
| 129 | - rebuild with VineSeed environment |
---|
| 130 | |
---|
| 131 | * Mon Sep 23 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.0-1 |
---|
| 132 | - initial build |
---|
| 133 | |
---|