source: projects/specs/trunk/q/qhull/qhull-vl.spec @ 10164

Revision 10164, 2.9 KB checked in by ara_t, 8 years ago (diff)

add Provides:libqhull.so

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