mate-calc-vl.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. %define major_ver 1.18
  2. %define ver %{major_ver}.0
  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.0-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. * Sat Apr 8 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 1.18.0-1
  79. - update 1.18.0
  80. - move to GTK3+
  81. - update ja.po patch (Patch1001)
  82. - update Packager
  83. - drop BR: mate-doc-utils
  84. - add appdata file
  85. * Sun Jun 08 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-2
  86. - add Patch1001 (mate-calc-1.8.0-ja.po.patch)
  87. * Tue Apr 15 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.8.0-1
  88. - new upstream release
  89. - add BuildRequires: itstool
  90. * Sun Dec 29 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.0-2
  91. - rebuild with VineSeed environment
  92. * Sun May 19 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.0-1
  93. - new upstream release
  94. - remove BuildRequires: mate-conf-devel
  95. * Thu Aug 02 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.4.0-1
  96. - new upstream release
  97. * Sat May 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.0-1
  98. - new upstream release
  99. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-2
  100. - change category
  101. * Fri Dec 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.0-1
  102. - initial build for Vine Linux