source: projects/specs/branches/6/m/mpfr/mpfr-vl.spec @ 3580

Revision 3580, 3.2 KB checked in by kenta, 13 years ago (diff)

mpfr: rebuild for Vine 6

Line 
1Summary: A C library for multiple-precision floating-point computations
2Name: mpfr
3Version: 2.4.2
4Release: 2%{?_dist_release}
5URL: http://www.mpfr.org/
6Source0: http://www.mpfr.org/mpfr-current/mpfr-%{version}.tar.bz2
7#Patch0: mpfr-2.3.0-upstream.patch
8License: LGPLv2+ and GPLv2+ and GFDL
9Group: System Environment/Libraries
10Vendor: Project Vine
11Distribution: Vine Linux
12Packager: inagaki, Takemikaduchi, kenta
13BuildRoot: %{_tmppath}/%{name}-%{version}-root
14BuildRequires: gmp-devel
15Requires: gmp >= 4.2.1
16
17%description
18The MPFR library is a C library for multiple-precision floating-point
19computations with "correct rounding". The MPFR is efficient and
20also has a well-defined semantics. It copies the good ideas from the
21ANSI/IEEE-754 standard for double-precision floating-point arithmetic
22(53-bit mantissa). MPFR is based on the GMP multiple-precision library.
23
24%package devel
25Summary: Development tools A C library for mpfr library
26Group: Development/Libraries
27Requires: %{name} = %{version}-%{release}
28Requires: gmp-devel >= 4.2.1
29Requires(post): /sbin/install-info
30Requires(preun): /sbin/install-info
31
32%description devel
33The static libraries, header files and documentation for using the MPFR
34multiple-precision floating-point library in applications.
35
36If you want to develop applications which will use the MPFR library,
37you'll need to install the mpfr-devel package.  You'll also need to
38install the mpfr package.
39
40%prep
41%setup -q
42#patch0 -p1 -b .up
43
44%build
45
46%configure --disable-assert
47make %{?_smp_mflags}
48
49%install
50rm -rf $RPM_BUILD_ROOT
51make install DESTDIR=$RPM_BUILD_ROOT
52pushd $RPM_BUILD_ROOT%{_infodir}
53#iconv  -f iso-8859-1 -t utf-8 mpfr.info >mpfr.info.aux
54iconv  -f iso-8859-1 -t euc-jp mpfr.info >mpfr.info.aux
55mv mpfr.info.aux mpfr.info
56popd
57rm -f $RPM_BUILD_ROOT%{_libdir}/libmpfr.la
58rm -f $RPM_BUILD_ROOT%{_infodir}/dir
59rm -f $RPM_BUILD_ROOT%{_libdir}/libmpfr.a
60cd ..
61
62
63%check
64make %{?_smp_mflags} check
65
66%post -p /sbin/ldconfig
67
68%postun -p /sbin/ldconfig
69
70%post devel
71/sbin/install-info %{_infodir}/mpfr.info.gz %{_infodir}/dir || :
72
73%preun devel
74if [ "$1" = 0 ]; then
75   /sbin/install-info --delete %{_infodir}/mpfr.info.gz %{_infodir}/dir || :
76fi
77
78%clean
79rm -rf $RPM_BUILD_ROOT
80
81%files
82%defattr(-,root,root,-)
83%doc COPYING COPYING.LIB NEWS README
84%{_libdir}/libmpfr.so.*
85%{_datadir}/doc/mpfr
86
87%files devel
88%defattr(-,root,root,-)
89%{_libdir}/libmpfr.so
90%{_includedir}/*.h
91%{_infodir}/mpfr.info*
92
93%changelog
94* Tue Apr 19 2011 NAKAMURA Kenta <kenta@vinelinux.org> 2.4.2-2
95- rebuild for Vine 6
96
97* Sun Apr 18 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.2-1
98- new upstream release
99- add Requires: gmp-devel (devel package)
100
101* Sat Nov 28 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.4.1-1
102- new upstream release
103
104* Mon May 19 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.3.1-1
105- new upstream release
106- applied new versioning policy
107
108* Thu Dec 13 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.3.0-1vl1
109- initial build for Vine Linux
110
111* Thu Sep 20 2007 Ivana Varekova <varekova@redhat.com> 2.3.0-1
112- update to 2.3.0
113- fix license flag
114
115* Mon Aug 20 2007 Ivana Varekova <varekova@redhat.com> 2.2.1-2
116- spec file cleanup (#253440)
117
118* Mon Jan 16 2007 Ivana Varekova <varekova@redhat.com> 2.2.1-1
119- started
120
Note: See TracBrowser for help on using the repository browser.