]> git.pld-linux.org Git - packages/dcdflib.c.git/blob - dcdflib.c.spec
df5215e528da4e554958477197e917dd94a433f5
[packages/dcdflib.c.git] / dcdflib.c.spec
1 Summary:        Library of C Routines for Cumulative Distribution Functions, Inverses etc.
2 Summary(pl.UTF-8):      Biblioteka funkcji C do dystrybuant, odwrotności i innych parametrów
3 Name:           dcdflib.c
4 Version:        1.1
5 Release:        4
6 # partially public domain, but ACM implementations are non-commercial
7 License:        non-commercial distribution and use
8 Group:          Libraries
9 Source0:        ftp://odin.mda.uth.tmc.edu/pub/source/%{name}-%{version}.tar.gz
10 # Source0-md5:  6e31235713c284b77809e10dd4c7c56b
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
18 %description -l pl.UTF-8
19 Biblioteka funkcji C do dystrybuant, odwrotności i innych parametrów.
20
21 %package devel
22 Summary:        DCDFLIB.C header files
23 Summary(pl.UTF-8):      Pliki nagłówkowe DCDFLIB.C
24 Group:          Development/Libraries
25 Requires:       %{name} = %{version}-%{release}
26
27 %description devel
28 DCDFLIB.C header files.
29
30 %description devel -l pl.UTF-8
31 Pliki nagłówkowe DCDFLIB.C.
32
33 %package static
34 Summary:        DCDFLIB.C static library
35 Summary(pl.UTF-8):      Biblioteka statyczna DCDFLIB.C
36 Group:          Development/Libraries
37 Requires:       %{name}-devel = %{version}-%{release}
38
39 %description static
40 DCDFLIB.C static library.
41
42 %description static -l pl.UTF-8
43 Biblioteka statyczna DCDFLIB.C.
44
45 %prep
46 %setup -q -n %{name}
47
48 %build
49 cd src
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} \
53         ipmpar.lo dcdflib.lo -lm
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}}
58
59 cd src
60 libtool --mode=install install libcdflib.la $RPM_BUILD_ROOT%{_libdir}
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
72 %attr(755,root,root) %{_libdir}/libcdflib.so.*.*.*
73 %attr(755,root,root) %ghost %{_libdir}/libcdflib.so.0
74
75 %files devel
76 %defattr(644,root,root,755)
77 %doc doc/*
78 %attr(755,root,root) %{_libdir}/libcdflib.so
79 %{_libdir}/libcdflib.la
80 %{_includedir}/cdflib.h
81
82 %files static
83 %defattr(644,root,root,755)
84 %{_libdir}/libcdflib.a
This page took 0.131638 seconds and 3 git commands to generate.