]> git.pld-linux.org Git - SPECS.git/blob - gmp-bsd.spec
SPECS updated Sun 1 Aug 20:28:02 CEST 2021
[SPECS.git] / gmp-bsd.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # don't perform tests
4 #
5 Summary:        GNU arbitrary precision library - BSD-compatible MP library
6 Summary(pl.UTF-8):      Biblioteka arytmetyczna GNU - biblioteka MP kompatybilna z BSD
7 Name:           gmp-bsd
8 Version:        5.0.5
9 Release:        1
10 License:        LGPL v3+
11 Group:          Libraries
12 Source0:        http://ftp.gnu.org/gnu/gmp/gmp-%{version}.tar.xz
13 # Source0-md5:  8aef50959acec2a1ad41d144ffe0f3b5
14 Patch0:         gmp-info.patch
15 Patch1:         gmp-multilib.patch
16 Patch2:         gmp-cpu.patch
17 Patch3:         gmp-tinfo.patch
18 Patch4:         gmp-am.patch
19 URL:            http://gmplib.org/
20 BuildRequires:  autoconf >= 2.59
21 BuildRequires:  automake >= 1:1.8
22 BuildRequires:  libtool >= 2:1.4d-3
23 BuildRequires:  tar >= 1:1.22
24 BuildRequires:  texinfo
25 BuildRequires:  xz
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 This package contains BSD-compatible MP library based on GNU MP.
30
31 %description -l pl.UTF-8
32 Ten pakiet zawiera bibliotekę MP kompatybilną z BSD opartą na GNU MP.
33
34 %package devel
35 Summary:        GNU arbitrary precision library - BSD-compatible MP API
36 Summary(pl.UTF-8):      Biblioteka arytmetyczna GNU - API MP kompatybilne z BSD
37 Group:          Development/Libraries
38 Requires:       %{name} = %{version}-%{release}
39
40 %description devel
41 This package contains BSD-compatible MP library header file.
42
43 %description devel -l pl.UTF-8
44 Ten pakiet zawiera plik nagłówkowy biblioteki MP kompatybilnej z BSD.
45
46 %package static
47 Summary:        GNU arbitrary precision library - BSD-compatible static MP library
48 Summary(pl.UTF-8):      Biblioteka arytmetyczna GNU - biblioteka statyczna MP kompatybilna z BSD
49 Group:          Development/Libraries
50 Requires:       %{name}-devel = %{version}-%{release}
51
52 %description static
53 This package contains BSD-compatible MP static library based on GNU
54 MP.
55
56 %description static -l pl.UTF-8
57 Ten pakiet zawiera bibliotekę statyczną MP kompatybilną z BSD opartą
58 na GNU MP.
59
60 %prep
61 %setup -q -n gmp-%{version}
62 %patch0 -p1
63 %ifarch %{ix86} %{x8664} ppc ppc64 s390 s390x sparc sparcv9 sparc64
64 # ugly hack, don't apply on other archs (also recheck sizes on each upgrade)
65 %patch1 -p1
66 %endif
67 %patch2 -p1
68 %patch3 -p1
69 %patch4 -p1
70
71 %build
72 %{__libtoolize}
73 %{__aclocal}
74 %{__autoconf}
75 %{__automake}
76 %configure \
77         --with-cpu=%{_target_cpu} \
78         --enable-fft \
79         --enable-mpbsd
80
81 %{__make}
82 %{?with_tests:%{__make} check}
83
84 %install
85 rm -rf $RPM_BUILD_ROOT
86
87 %{__make} install \
88         DESTDIR=$RPM_BUILD_ROOT
89
90 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgmp.* \
91         $RPM_BUILD_ROOT%{_includedir}/gmp.h \
92         $RPM_BUILD_ROOT%{_infodir}/gmp.info*
93
94 %clean
95 rm -rf $RPM_BUILD_ROOT
96
97 %post   -p /sbin/ldconfig
98 %postun -p /sbin/ldconfig
99
100 %files
101 %defattr(644,root,root,755)
102 %doc AUTHORS ChangeLog NEWS README
103 %attr(755,root,root) %{_libdir}/libmp.so.*.*.*
104 %attr(755,root,root) %ghost %{_libdir}/libmp.so.3
105
106 %files devel
107 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_libdir}/libmp.so
109 %{_libdir}/libmp.la
110 %{_includedir}/mp.h
111
112 %files static
113 %defattr(644,root,root,755)
114 %{_libdir}/libmp.a
This page took 0.735872 seconds and 3 git commands to generate.