]>
Commit | Line | Data |
---|---|---|
d52ca645 | 1 | Summary: Library of C Routines for Cumulative Distribution Functions, Inverses etc. |
40f96275 | 2 | Summary(pl.UTF-8): Biblioteka funkcji C do dystrybuant, odwrotności i innych parametrów |
d52ca645 JB |
3 | Name: dcdflib.c |
4 | Version: 1.1 | |
5cc9284a | 5 | Release: 5 |
d52ca645 | 6 | # partially public domain, but ACM implementations are non-commercial |
f30194ca | 7 | License: non-commercial distribution and use |
d52ca645 JB |
8 | Group: Libraries |
9 | Source0: ftp://odin.mda.uth.tmc.edu/pub/source/%{name}-%{version}.tar.gz | |
2e8a20ea | 10 | # Source0-md5: 6e31235713c284b77809e10dd4c7c56b |
d52ca645 JB |
11 | BuildRequires: libtool |
12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
13 | ||
14 | %description | |
15 | Library of C Routines for Cumulative Distribution Functions, Inverses | |
16 | and Other Parameters. | |
17 | ||
72e7274b JR |
18 | %description -l pl.UTF-8 |
19 | Biblioteka funkcji C do dystrybuant, odwrotności i innych parametrów. | |
d52ca645 JB |
20 | |
21 | %package devel | |
22 | Summary: DCDFLIB.C header files | |
40f96275 | 23 | Summary(pl.UTF-8): Pliki nagłówkowe DCDFLIB.C |
d52ca645 | 24 | Group: Development/Libraries |
44e0071a | 25 | Requires: %{name} = %{version}-%{release} |
d52ca645 JB |
26 | |
27 | %description devel | |
28 | DCDFLIB.C header files. | |
29 | ||
72e7274b JR |
30 | %description devel -l pl.UTF-8 |
31 | Pliki nagłówkowe DCDFLIB.C. | |
d52ca645 JB |
32 | |
33 | %package static | |
34 | Summary: DCDFLIB.C static library | |
40f96275 | 35 | Summary(pl.UTF-8): Biblioteka statyczna DCDFLIB.C |
d52ca645 | 36 | Group: Development/Libraries |
44e0071a | 37 | Requires: %{name}-devel = %{version}-%{release} |
d52ca645 JB |
38 | |
39 | %description static | |
40 | DCDFLIB.C static library. | |
41 | ||
72e7274b | 42 | %description static -l pl.UTF-8 |
d52ca645 JB |
43 | Biblioteka statyczna DCDFLIB.C. |
44 | ||
45 | %prep | |
46 | %setup -q -n %{name} | |
47 | ||
48 | %build | |
49 | cd src | |
80a4af3d JB |
50 | libtool --mode=compile %{__cc} %{rpmcflags} %{rpmcppflags} -c ipmpar.c |
51 | libtool --mode=compile %{__cc} %{rpmcflags} %{rpmcppflags} -c dcdflib.c | |
52 | libtool --mode=link %{__cc} %{rpmldflags} %{rpmcflags} -o libcdflib.la -rpath %{_libdir} \ | |
71ee8881 | 53 | ipmpar.lo dcdflib.lo -lm |
d52ca645 JB |
54 | |
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}} | |
58 | ||
59 | cd src | |
abf0498c | 60 | libtool --mode=install install libcdflib.la $RPM_BUILD_ROOT%{_libdir} |
d52ca645 JB |
61 | install cdflib.h $RPM_BUILD_ROOT%{_includedir} |
62 | ||
63 | %clean | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %post -p /sbin/ldconfig | |
67 | %postun -p /sbin/ldconfig | |
68 | ||
69 | %files | |
70 | %defattr(644,root,root,755) | |
71 | %doc HOWTOGET README | |
80a4af3d JB |
72 | %attr(755,root,root) %{_libdir}/libcdflib.so.*.*.* |
73 | %attr(755,root,root) %ghost %{_libdir}/libcdflib.so.0 | |
d52ca645 JB |
74 | |
75 | %files devel | |
76 | %defattr(644,root,root,755) | |
77 | %doc doc/* | |
80a4af3d JB |
78 | %attr(755,root,root) %{_libdir}/libcdflib.so |
79 | %{_libdir}/libcdflib.la | |
80 | %{_includedir}/cdflib.h | |
d52ca645 JB |
81 | |
82 | %files static | |
83 | %defattr(644,root,root,755) | |
80a4af3d | 84 | %{_libdir}/libcdflib.a |