source: projects/specs/trunk/m/mpfr/mpfr-vl.spec @ 871

Revision 871, 3.0 KB checked in by Takemikaduchi, 14 years ago (diff)

change spec file for gnome-2.30

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