qhull-vl.spec 2.6 KB

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