spread-sheet-wigget-vl.spec 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. %define pkg_name spread-sheet-widget
  2. %define pkg_version 0.3
  3. %define pkg_release 1%{?_dist_release}
  4. Summary: A library for Gtk+ which provides a widget for viewing and manipulating 2 dimensional tabular data
  5. Name: %{pkg_name}
  6. Version: %{pkg_version}
  7. Release: %{pkg_release}
  8. License: LGPv3+
  9. Group: System Environment/Libraries
  10. URL: https://www.gnu.org/software/ssw/
  11. Source0: http://alpha.gnu.org/gnu/ssw/%{name}-%{version}.tar.gz
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  13. BuildRequires: gtk3-devel
  14. Vendor: Project Vine
  15. Distribution: Vine Linux
  16. %description
  17. GNU Spread Sheet Widget is a library for Gtk+ which provides a widget
  18. for viewing and manipulating 2 dimensional tabular data in a manner
  19. similar to many popular spread sheet programs.
  20. The design follows the model-view-controller paradigm and is of
  21. complexity O(1) in both time and space. This means that it is
  22. efficient and fast even for very large data.
  23. Features commonly found in graphical user interfaces such as cut and paste,
  24. drag and drop and row/column labelling are also included.
  25. %package devel
  26. Summary: Development files for %{name}
  27. Summary(ja): %{name} の開発ファイル
  28. Group: Development/Libraries
  29. Requires: %{name} = %{version}-%{release}
  30. %description devel
  31. This package contains the libraries and header files needed for
  32. developing with %{name}.
  33. %prep
  34. %setup -q %{name}-%{version}
  35. %build
  36. %{configure} --disable-static
  37. %{__make} %{?_smp_mflags}
  38. %install
  39. %{__rm} -rf ${RPM_BUILD_ROOT}
  40. %{makeinstall}
  41. find ${RPM_BUILD_ROOT} -name '*.la' -delete
  42. %{__rm} -rf ${RPM_BUILD_ROOT}%{_infodir}/dir
  43. %clean
  44. %{__rm} -rf ${RPM_BUILD_ROOT}
  45. %post
  46. file=%{_infodir}/%{name}.info.gz
  47. if [ -e ${file} ]; then
  48. /sbin/install-info ${file} %{_infodir}/dir 2>/dev/null
  49. fi
  50. %{_syssbindir}/ldconfig
  51. %preun
  52. if [ $1 = 0 ]; then
  53. file=%{_infodir}/%{name}.info.gz
  54. if [ -e ${file} ]; then
  55. /sbin/install-info --delete ${file} %{_infodir}/dir 2>/dev/null
  56. fi
  57. fi
  58. %postun -p %{_syssbindir}/ldconfig
  59. %files
  60. %defattr(-, root, root, -)
  61. %doc AUTHORS COPYING ChangeLog NEWS README TODO
  62. %{_libdir}/lib%{name}.so.*
  63. %{_infodir}/%{name}.info.gz
  64. %files devel
  65. %defattr(-, root, root, -)
  66. %{_includedir}/
  67. %{_libdir}/pkgconfig/%{name}.pc
  68. %{_libdir}/lib%{name}.so
  69. %changelog
  70. * Sun Oct 27 2019 Toshiaki Ara <ara_t@384.jp> 0.3-1
  71. - initial build