[11017] | 1 | %define major_ver 1.18 |
---|
| 2 | %define ver %{major_ver}.0 |
---|
| 3 | %define rel 1 |
---|
| 4 | |
---|
[5311] | 5 | Summary: Calculator for the Mate desktop environment |
---|
| 6 | Name: mate-calc |
---|
[11017] | 7 | Version: %{ver} |
---|
| 8 | Release: %{rel}%{?_dist_release} |
---|
| 9 | Source0: http://pub.mate-desktop.org/releases/%{major_ver}/%{name}-%{version}.tar.xz |
---|
[5311] | 10 | License: GPLv2 |
---|
[5316] | 11 | Group: Applications/Productivity |
---|
[6679] | 12 | URL: http://mate-desktop.org/ |
---|
[5311] | 13 | |
---|
[8537] | 14 | # Vine |
---|
[11017] | 15 | Patch1001: mate-calc-1.18.0-ja.po.patch |
---|
[8537] | 16 | |
---|
[5311] | 17 | BuildRequires: mate-common |
---|
[11017] | 18 | BuildRequires: gtk3-devel |
---|
[5311] | 19 | BuildRequires: libxml2-devel |
---|
| 20 | BuildRequires: bison |
---|
| 21 | BuildRequires: flex |
---|
| 22 | BuildRequires: gtk-doc |
---|
[8359] | 23 | BuildRequires: itstool |
---|
[5311] | 24 | BuildRequires: autoconf |
---|
| 25 | BuildRequires: automake |
---|
| 26 | |
---|
[7697] | 27 | Requires(posttrans,postun): glib2 |
---|
[5311] | 28 | Requires(post,postun): desktop-file-utils |
---|
| 29 | |
---|
| 30 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 31 | |
---|
| 32 | Vendor: Project Vine |
---|
| 33 | Distribution: Vine Linux |
---|
[11017] | 34 | Packager: Takemikaduchi, iwaim |
---|
[5311] | 35 | |
---|
| 36 | |
---|
| 37 | %description |
---|
| 38 | This is v5.32.0 of mate-calc, the calculator application that was previously |
---|
| 39 | in the OpenWindows Deskset of the Solaris 8 operating system. |
---|
| 40 | Sun Microsystems Inc. have kindly given me permission to release it. |
---|
| 41 | |
---|
| 42 | It incorporates a multiple precision arithmetic packages based on the work |
---|
| 43 | of Professor Richard Brent, who has also kindly given me permission to make |
---|
| 44 | it available. |
---|
| 45 | |
---|
| 46 | There is a single graphics driver for Gtk2 included with this release. |
---|
| 47 | |
---|
| 48 | |
---|
| 49 | %prep |
---|
| 50 | %setup -q |
---|
[8537] | 51 | %patch1001 -p1 -b .vine |
---|
[5311] | 52 | |
---|
| 53 | |
---|
| 54 | %build |
---|
| 55 | (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi) |
---|
| 56 | %configure \ |
---|
[7697] | 57 | --disable-static |
---|
[5311] | 58 | |
---|
| 59 | %{__make} %{?_smp_mflags} |
---|
| 60 | |
---|
| 61 | |
---|
| 62 | %install |
---|
| 63 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 64 | |
---|
| 65 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
| 66 | |
---|
| 67 | find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \; |
---|
| 68 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
| 69 | |
---|
| 70 | %find_lang %{name} |
---|
| 71 | |
---|
| 72 | |
---|
| 73 | %clean |
---|
| 74 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 75 | |
---|
| 76 | %post |
---|
| 77 | /sbin/ldconfig |
---|
| 78 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
| 79 | |
---|
| 80 | %postun |
---|
| 81 | /sbin/ldconfig |
---|
| 82 | update-desktop-database %{_datadir}/applications >& /dev/null ||: |
---|
| 83 | if [ $1 -eq 0 ]; then |
---|
| 84 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
| 85 | fi |
---|
| 86 | |
---|
| 87 | %posttrans |
---|
| 88 | glib-compile-schemas %{_datadir}/glib-2.0/schemas ||: |
---|
| 89 | |
---|
| 90 | |
---|
| 91 | %files -f %{name}.lang |
---|
| 92 | %defattr(-,root,root,-) |
---|
| 93 | %doc COPYING ChangeLog NEWS README |
---|
[8537] | 94 | %{_bindir}/%{name} |
---|
| 95 | %{_bindir}/%{name}-cmd |
---|
[5311] | 96 | %{_bindir}/mate-calculator |
---|
[8537] | 97 | %{_datadir}/applications/%{name}.desktop |
---|
[7697] | 98 | %{_datadir}/glib-2.0/schemas/org.mate.calc.gschema.xml |
---|
[11017] | 99 | %{_datadir}/appdata/mate-calc.appdata.xml |
---|
[5311] | 100 | %{_datadir}/%{name} |
---|
[8359] | 101 | %{_datadir}/help/* |
---|
[8537] | 102 | %{_mandir}/man1/%{name}.1.gz |
---|
| 103 | %{_mandir}/man1/%{name}-cmd.1.gz |
---|
[5311] | 104 | |
---|
| 105 | |
---|
| 106 | %changelog |
---|
[11017] | 107 | * Sat Apr 8 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 1.18.0-1 |
---|
| 108 | - update 1.18.0 |
---|
| 109 | - move to GTK3+ |
---|
| 110 | - update ja.po patch (Patch1001) |
---|
| 111 | - update Packager |
---|
| 112 | - drop BR: mate-doc-utils |
---|
| 113 | - add appdata file |
---|
| 114 | |
---|
[8537] | 115 | * Sun Jun 08 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-2 |
---|
| 116 | - add Patch1001 (mate-calc-1.8.0-ja.po.patch) |
---|
| 117 | |
---|
[8359] | 118 | * Tue Apr 15 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-1 |
---|
| 119 | - new upstream release |
---|
| 120 | - add BuildRequires: itstool |
---|
| 121 | |
---|
[8068] | 122 | * Sun Dec 29 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.0-2 |
---|
| 123 | - rebuild with VineSeed environment |
---|
| 124 | |
---|
[7697] | 125 | * Sun May 19 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.0-1 |
---|
| 126 | - new upstream release |
---|
| 127 | - remove BuildRequires: mate-conf-devel |
---|
| 128 | |
---|
[6679] | 129 | * Thu Aug 02 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.0-1 |
---|
| 130 | - new upstream release |
---|
| 131 | |
---|
[6172] | 132 | * Sat May 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-1 |
---|
| 133 | - new upstream release |
---|
| 134 | |
---|
[5316] | 135 | * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-2 |
---|
| 136 | - change category |
---|
| 137 | |
---|
[5311] | 138 | * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1 |
---|
| 139 | - initial build for Vine Linux |
---|
| 140 | |
---|