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