mate-calc-vl.spec 3.5 KB

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