]>
Commit | Line | Data |
---|---|---|
4020f81b | 1 | Summary: C++ Class Library for Numbers |
091de089 | 2 | Summary(pl.UTF-8): Biblioteka klas C++ dla liczb |
4020f81b | 3 | Name: cln |
413dd2fb | 4 | Version: 1.3.3 |
e6ad2114 | 5 | Release: 2 |
4020f81b JB |
6 | License: GPL |
7 | Group: Libraries | |
a5aced94 | 8 | Source0: ftp://ftpthep.physik.uni-mainz.de/pub/gnu/%{name}-%{version}.tar.bz2 |
413dd2fb | 9 | # Source0-md5: 9871c401133a12182ad6a3bed89fb3c4 |
00d3492b | 10 | Patch0: %{name}-info.patch |
4020f81b | 11 | URL: http://www.ginac.de/CLN/ |
f85808ec JB |
12 | BuildRequires: autoconf >= 2.59 |
13 | BuildRequires: automake >= 1:1.10 | |
14aacc5d | 14 | BuildRequires: gmp-devel >= 3.0 |
4020f81b | 15 | BuildRequires: libstdc++-devel |
00d3492b | 16 | BuildRequires: libtool >= 2:1.5 |
5aaa6e6d | 17 | BuildRequires: tetex-dvips |
18 | BuildRequires: tetex-fonts-latex | |
19 | BuildRequires: tetex-format-plain | |
20 | BuildRequires: tetex-metafont | |
f300a8a5 | 21 | BuildRequires: texconfig |
fb1add03 | 22 | BuildRequires: texinfo |
5aaa6e6d | 23 | BuildRequires: texinfo-texi2dvi |
14aacc5d | 24 | Requires: gmp >= 3.0 |
4020f81b JB |
25 | Obsoletes: libcln2 |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
06fccf93 JB |
28 | # won't work with -O0 because of static const initialization loops |
29 | %define debugcflags -O1 -g | |
30 | ||
4020f81b JB |
31 | %description |
32 | A GPLed collection of C++ math classes and functions, that will bring | |
33 | efficiency, type safety, algebraic syntax to everyone in a memory and | |
34 | speed efficient library. | |
35 | ||
0b66a8dd JR |
36 | %description -l pl.UTF-8 |
37 | Objęty licencją GPL zbiór klas i funkcji matematycznych C++ dający | |
38 | wydajność, bezpieczne typy i składnię algebraiczną. | |
4020f81b JB |
39 | |
40 | %package devel | |
41 | Summary: Development files for programs using the CLN library | |
091de089 | 42 | Summary(pl.UTF-8): Pliki do programowania z użyciem biblioteki CLN |
4020f81b JB |
43 | Group: Development/Libraries |
44 | Requires: %{name} = %{version}-%{release} | |
14aacc5d | 45 | Requires: gmp-devel >= 3.0 |
00d3492b | 46 | Requires: libstdc++-devel |
4020f81b JB |
47 | Obsoletes: libcln2-devel |
48 | ||
49 | %description devel | |
50 | This package is necessary if you wish to develop software based on the | |
51 | CLN library. | |
52 | ||
0b66a8dd JR |
53 | %description devel -l pl.UTF-8 |
54 | Ten pakiet jest niezbędny do tworzenia oprogramowania opartego na | |
4020f81b JB |
55 | bibliotece CLN. |
56 | ||
57 | %package static | |
58 | Summary: Static CLN library | |
091de089 | 59 | Summary(pl.UTF-8): Statyczna biblioteka CLN |
4020f81b JB |
60 | Group: Development/Libraries |
61 | Requires: %{name}-devel = %{version}-%{release} | |
62 | ||
63 | %description static | |
64 | Static CLN library. | |
65 | ||
0b66a8dd | 66 | %description static -l pl.UTF-8 |
4020f81b JB |
67 | Statyczna biblioteka CLN. |
68 | ||
69 | %prep | |
70 | %setup -q | |
00d3492b | 71 | %patch0 -p1 |
00d3492b | 72 | |
4020f81b | 73 | %build |
00d3492b | 74 | %{__libtoolize} |
b87f061d | 75 | %{__aclocal} -I m4 |
00d3492b | 76 | %{__autoconf} |
413dd2fb JB |
77 | %{__autoheader} |
78 | %{__automake} | |
4020f81b | 79 | %configure |
4020f81b JB |
80 | %{__make} |
81 | ||
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
85 | ||
1549b004 JB |
86 | %{__make} install \ |
87 | DESTDIR=$RPM_BUILD_ROOT | |
4020f81b JB |
88 | |
89 | install examples/{Makefile,*.cc} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
90 | ||
91 | %clean | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %post -p /sbin/ldconfig | |
95 | %postun -p /sbin/ldconfig | |
96 | ||
5a352b63 | 97 | %post devel -p /sbin/postshell |
11c02087 | 98 | -/usr/sbin/fix-info-dir -c %{_infodir} |
4020f81b | 99 | |
5a352b63 | 100 | %postun devel -p /sbin/postshell |
11c02087 | 101 | -/usr/sbin/fix-info-dir -c %{_infodir} |
4020f81b JB |
102 | |
103 | %files | |
104 | %defattr(644,root,root,755) | |
f85808ec JB |
105 | %doc NEWS README TODO |
106 | %attr(755,root,root) %{_bindir}/pi | |
b87f061d | 107 | %attr(755,root,root) %{_libdir}/libcln.so.*.*.* |
6aa4c6f1 | 108 | %attr(755,root,root) %ghost %{_libdir}/libcln.so.6 |
f85808ec | 109 | %{_mandir}/man1/pi.1* |
4020f81b JB |
110 | |
111 | %files devel | |
112 | %defattr(644,root,root,755) | |
b87f061d JB |
113 | %attr(755,root,root) %{_libdir}/libcln.so |
114 | %{_libdir}/libcln.la | |
4020f81b | 115 | %{_includedir}/cln |
b87f061d | 116 | %{_infodir}/cln.info* |
b87f061d | 117 | %{_pkgconfigdir}/cln.pc |
4020f81b JB |
118 | %{_examplesdir}/%{name}-%{version} |
119 | ||
120 | %files static | |
121 | %defattr(644,root,root,755) | |
b87f061d | 122 | %{_libdir}/libcln.a |