qhull-vl.spec 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. %define name qhull
  2. %define version 2012.1
  3. Summary: General dimension convex hull programs
  4. Name: %{name}
  5. Version: %{version}
  6. Release: 2%{?_dist_release}
  7. License: Distributable
  8. Group: System Environment/Libraries
  9. URL: http://www.qhull.org
  10. Source0: http://www.qhull.org/download/qhull-%{version}-src.tgz
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. %ifarch %{ix86}
  13. Provides: libqhull.so
  14. Provides: libqhull_p.so
  15. %endif
  16. %ifarch x86_64
  17. Provides: libqhull.so()(64bit)
  18. Provides: libqhull_p.so()(64bit)
  19. %endif
  20. %description
  21. Qhull is a general dimension convex hull program that reads a set
  22. of points from stdin, and outputs the smallest convex set that contains
  23. the points to stdout. It also generates Delaunay triangulations, Voronoi
  24. diagrams, furthest-site Voronoi diagrams, and halfspace intersections
  25. about a point.
  26. %package devel
  27. Summary: Development files for qhull
  28. Group: Development/Libraries
  29. Requires: %{name} = %{version}-%{release}
  30. %description devel
  31. Qhull is a general dimension convex hull program that reads a set
  32. of points from stdin, and outputs the smallest convex set that contains
  33. the points to stdout. It also generates Delaunay triangulations, Voronoi
  34. diagrams, furthest-site Voronoi diagrams, and halfspace intersections
  35. about a point.
  36. %prep
  37. %setup -q -n %{name}-%{version}
  38. sed -i "s|\$(DESTDIR)/bin|\$(DESTDIR)%{_bindir}|g" Makefile
  39. sed -i "s|\$(DESTDIR)/include|\$(DESTDIR)%{_includedir}|g" Makefile
  40. sed -i "s|\$(DESTDIR)/lib|\$(DESTDIR)%{_libdir}|g" Makefile
  41. sed -i "s|\$(DESTDIR)/share|\$(DESTDIR)%{_datadir}|g" Makefile
  42. %build
  43. make
  44. %install
  45. rm -rf $RPM_BUILD_ROOT
  46. make DESTDIR=$RPM_BUILD_ROOT install
  47. ## remove unuse files
  48. rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
  49. rm -rf $RPM_BUILD_ROOT%{_libdir}/*.a
  50. %clean
  51. rm -rf $RPM_BUILD_ROOT
  52. %post -p /sbin/ldconfig
  53. %postun -p /sbin/ldconfig
  54. %files
  55. %defattr(-,root,root)
  56. %doc %{_docdir}/%{name}
  57. %{_bindir}/*
  58. %{_libdir}/libqhull.so.*
  59. %{_libdir}/libqhull_p.so.*
  60. %{_mandir}/man1/*
  61. %files devel
  62. %defattr(-,root,root)
  63. %{_includedir}/libqhull
  64. %{_includedir}/libqhullcpp
  65. %{_libdir}/libqhull.so
  66. %{_libdir}/libqhull_p.so
  67. %changelog
  68. * Tue Apr 12 2016 Toshiaki Ara <ara_t@384.jp> 2012.1-2
  69. - add Provides: libqhull.so
  70. - add Provides: libqhull_p.so
  71. * Sun Jan 11 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2012.1-1
  72. - update to 2012.1
  73. * Sat Feb 19 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2003.1-2
  74. - added Patch0 from upstream
  75. - added --disable-static to %%configure
  76. * Sat Sep 20 2008 Shu KONNO <owa@bg.wakwak.com> 2003.1-1vl5
  77. - applied new versioning policy
  78. - removed *.la
  79. *Thu Jan 03 2008 NAKAMURA Kenta <kenta@vinelinux.org> 2003.1-0vl2
  80. - rebuild on VineSeed
  81. *Thu Oct 6 2005 g-staff <g-staff@math.sci.hokudai.ac.jp> 2003.1-0vl1
  82. - taken from FC
  83. - rebuild on Vine Linux 3.2
  84. * Sun Aug 08 2004 Ralf Corsepius <ralf[AT]links2linux.de> - 2003.1-0.fdr.2
  85. - Use default documentation installation scheme.
  86. * Fri Jul 16 2004 Ralf Corsepius <ralf[AT]links2linux.de> - 2003.1-0.fdr.1
  87. - Initial Fedora RPM.