]> git.pld-linux.org Git - packages/cln.git/blob - cln.spec
- BR: automake (only for _aclocaldir macro expansion)
[packages/cln.git] / cln.spec
1 Summary:        C++ Class Library for Numbers
2 Summary(pl):    Biblioteka klas C++ dla liczb
3 Name:           cln
4 Version:        1.1.5
5 Release:        4
6 License:        GPL
7 Group:          Libraries
8 Source0:        ftp://ftp.ilog.fr/pub/Users/haible/gnu/%{name}-%{version}.tar.gz
9 # Source0-md5:  55d9e26806bfe9023c09caf2d7e7e91b
10 URL:            http://www.ginac.de/CLN/
11 BuildRequires:  automake
12 BuildRequires:  gmp-devel
13 BuildRequires:  libstdc++-devel
14 Obsoletes:      libcln2
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 A GPLed collection of C++ math classes and functions, that will bring
19 efficiency, type safety, algebraic syntax to everyone in a memory and
20 speed efficient library.
21
22 %description -l pl
23 Objêty licencj± GPL zbiór klas i funkcji matematycznych C++ daj±cy
24 wydajno¶æ, bezpieczne typy i sk³adniê algebraiczn±.
25
26 %package devel
27 Summary:        Development files for programs using the CLN library
28 Summary(pl):    Pliki do programowania z u¿yciem biblioteki CLN
29 Group:          Development/Libraries
30 Requires:       %{name} = %{version}-%{release}
31 Obsoletes:      libcln2-devel
32
33 %description devel
34 This package is necessary if you wish to develop software based on the
35 CLN library.
36
37 %description devel -l pl
38 Ten pakiet jest niezbêdny do tworzenia oprogramowania opartego na
39 bibliotece CLN.
40
41 %package static
42 Summary:        Static CLN library
43 Summary(pl):    Statyczna biblioteka CLN
44 Group:          Development/Libraries
45 Requires:       %{name}-devel = %{version}-%{release}
46
47 %description static
48 Static CLN library.
49
50 %description static -l pl
51 Statyczna biblioteka CLN.
52
53 %prep
54 %setup -q
55
56 %build
57 %configure
58
59 %{__make}
60
61 %install
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
64
65 %{__make} install \
66         DESTDIR=$RPM_BUILD_ROOT
67
68 install examples/{Makefile,*.cc} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73 %post   -p /sbin/ldconfig
74 %postun -p /sbin/ldconfig
75
76 %post devel
77 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
78
79 %postun devel
80 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
81
82 %files
83 %defattr(644,root,root,755)
84 %doc ChangeLog NEWS README TODO*
85 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
86
87 %files devel
88 %defattr(644,root,root,755)
89 %attr(755,root,root) %{_bindir}/cln-config
90 %attr(755,root,root) %{_libdir}/lib*.so
91 %{_libdir}/lib*.la
92 %{_includedir}/cln
93 %{_mandir}/man1/cln-config.1*
94 %{_infodir}/*.info*
95 %{_aclocaldir}/*.m4
96 %{_examplesdir}/%{name}-%{version}
97
98 %files static
99 %defattr(644,root,root,755)
100 %{_libdir}/lib*.a
This page took 0.051614 seconds and 3 git commands to generate.