]> git.pld-linux.org Git - packages/cln.git/blob - cln.spec
- updated to 1.1.8, added info,link patches, -devel deps
[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.8
5 Release:        1
6 License:        GPL
7 Group:          Libraries
8 Source0:        ftp://ftpthep.physik.uni-mainz.de/pub/gnu/%{name}-%{version}.tar.bz2
9 # Source0-md5:  490dd0697b3d16b2ba6a843829228cba
10 Patch0:         %{name}-info.patch
11 Patch1:         %{name}-link.patch
12 URL:            http://www.ginac.de/CLN/
13 BuildRequires:  autoconf >= 2.50
14 BuildRequires:  automake
15 BuildRequires:  gmp-devel
16 BuildRequires:  libstdc++-devel
17 BuildRequires:  libtool >= 2:1.5
18 Obsoletes:      libcln2
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 A GPLed collection of C++ math classes and functions, that will bring
23 efficiency, type safety, algebraic syntax to everyone in a memory and
24 speed efficient library.
25
26 %description -l pl
27 Objêty licencj± GPL zbiór klas i funkcji matematycznych C++ daj±cy
28 wydajno¶æ, bezpieczne typy i sk³adniê algebraiczn±.
29
30 %package devel
31 Summary:        Development files for programs using the CLN library
32 Summary(pl):    Pliki do programowania z u¿yciem biblioteki CLN
33 Group:          Development/Libraries
34 Requires:       %{name} = %{version}-%{release}
35 Requires:       gmp-devel
36 Requires:       libstdc++-devel
37 Obsoletes:      libcln2-devel
38
39 %description devel
40 This package is necessary if you wish to develop software based on the
41 CLN library.
42
43 %description devel -l pl
44 Ten pakiet jest niezbêdny do tworzenia oprogramowania opartego na
45 bibliotece CLN.
46
47 %package static
48 Summary:        Static CLN library
49 Summary(pl):    Statyczna biblioteka CLN
50 Group:          Development/Libraries
51 Requires:       %{name}-devel = %{version}-%{release}
52
53 %description static
54 Static CLN library.
55
56 %description static -l pl
57 Statyczna biblioteka CLN.
58
59 %prep
60 %setup -q
61 %patch0 -p1
62 %patch1 -p1
63
64 # kill AC_PROG_LIBTOOL
65 head -n 423 autoconf/aclocal.m4 > acinclude.m4
66 tail -n +4045 autoconf/aclocal.m4 >> acinclude.m4
67
68 %build
69 %{__libtoolize}
70 %{__aclocal} -I . -I m4
71 %{__autoconf}
72 %configure
73 %{__make}
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
78
79 %{__make} install \
80         DESTDIR=$RPM_BUILD_ROOT
81
82 install examples/{Makefile,*.cc} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
83
84 %clean
85 rm -rf $RPM_BUILD_ROOT
86
87 %post   -p /sbin/ldconfig
88 %postun -p /sbin/ldconfig
89
90 %post devel
91 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
92
93 %postun devel
94 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
95
96 %files
97 %defattr(644,root,root,755)
98 %doc ChangeLog NEWS README TODO*
99 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
100
101 %files devel
102 %defattr(644,root,root,755)
103 %attr(755,root,root) %{_bindir}/cln-config
104 %attr(755,root,root) %{_libdir}/lib*.so
105 %{_libdir}/lib*.la
106 %{_includedir}/cln
107 %{_mandir}/man1/cln-config.1*
108 %{_infodir}/*.info*
109 %{_aclocaldir}/*.m4
110 %{_pkgconfigdir}/*.pc
111 %{_examplesdir}/%{name}-%{version}
112
113 %files static
114 %defattr(644,root,root,755)
115 %{_libdir}/lib*.a
This page took 0.046128 seconds and 4 git commands to generate.