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

Revision 12335, 3.9 KB checked in by tomop, 4 years ago (diff)

updated 14 packages

chkconfig-1.3.61-3

diffutils-3.7-1

findutils-4.7.0-1

libmpc-1.1.0-1

libuser-0.62-1

libutempter-1.1.6-2

mpfr-4.0.2-1

mpfr3-3.1.6-1

psmisc-23.2-1

sed-4.8-1

shadow-utils-4.8-1

tcsh-6.22.02-1

texinfo-6.7-1

usermode-1.109-2

Line 
1Summary: A C library for multiple-precision floating-point computations
2Name: mpfr
3Version: 4.0.2
4Release: 1%{?_dist_release}
5Group: System Environment/Libraries
6Vendor: Project Vine
7Distribution: Vine Linux
8Packager: inagaki, kenta
9License: LGPLv3+
10URL: https://www.mpfr.org/
11
12Source0: https://www.mpfr.org/mpfr-%{version}/mpfr-%{version}.tar.xz
13# https://gforge.inria.fr/scm/viewvc.php/mpfr?revision=13499&view=revision
14# https://www.mpfr.org/mpfr-4.0.2/patch01
15Patch0: rev13499.patch
16
17BuildRoot: %{_tmppath}/%{name}-%{version}-root
18BuildRequires: gmp-devel
19Requires: gmp >= 4.2.3
20
21%description
22The MPFR library is a C library for multiple-precision floating-point
23computations with "correct rounding". The MPFR is efficient and
24also has a well-defined semantics. It copies the good ideas from the
25ANSI/IEEE-754 standard for double-precision floating-point arithmetic
26(53-bit mantissa). MPFR is based on the GMP multiple-precision library.
27
28%package devel
29Summary: Development tools A C library for mpfr library
30Group: Development/Libraries
31Requires: %{name} = %{version}-%{release}
32Requires: gmp-devel >= 4.2.3
33Requires(post): /sbin/install-info
34Requires(preun): /sbin/install-info
35
36%description devel
37The static libraries, header files and documentation for using the MPFR
38multiple-precision floating-point library in applications.
39
40If you want to develop applications which will use the MPFR library,
41you'll need to install the mpfr-devel package.  You'll also need to
42install the mpfr package.
43
44%prep
45%autosetup -p1
46
47%build
48%configure --disable-assert --disable-static
49
50# Get rid of undesirable hardcoded rpaths; workaround libtool reordering
51# -Wl,--as-needed after all the libraries.
52sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
53    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
54    -e 's|CC="\(g..\)"|CC="\1 -Wl,--as-needed"|' \
55    -i libtool
56
57make %{?_smp_mflags}
58
59%install
60rm -rf $RPM_BUILD_ROOT
61%make_install
62rm -f %{buildroot}%{_libdir}/*.la
63rm -f %{buildroot}%{_infodir}/dir
64
65#these go into licenses, not doc
66rm -f %{buildroot}%{_datadir}/doc/COPYING{,.LESSER}
67
68%check
69export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
70make %{?_smp_mflags} check
71
72%post -p /sbin/ldconfig
73
74%postun -p /sbin/ldconfig
75
76%post devel
77/sbin/install-info %{_infodir}/mpfr.info.gz %{_infodir}/dir || :
78
79%preun devel
80if [ "$1" = 0 ]; then
81   /sbin/install-info --delete %{_infodir}/mpfr.info.gz %{_infodir}/dir || :
82fi
83
84%clean
85rm -rf $RPM_BUILD_ROOT
86
87%files
88%defattr(-,root,root,-)
89%license COPYING COPYING.LESSER
90%doc NEWS README
91%{_libdir}/libmpfr.so.*
92%{_datadir}/doc/mpfr
93
94%files devel
95%defattr(-,root,root,-)
96%{_libdir}/libmpfr.so
97%{_libdir}/pkgconfig/*
98%{_includedir}/*.h
99%{_infodir}/mpfr.info*
100
101%changelog
102* Wed Mar 18 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 4.0.2-1
103- new upstream release.
104
105* Sat May 07 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.4-1
106- update to 3.1.4
107
108* Sun Dec 13 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.2-2
109- rebuild with VineSeed environment
110
111* Mon Nov 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.1.2-1
112- update to 3.1.2
113
114* Sun Oct 30 2011 NAKAMURA Kenta <kenta@vinelinux.org> 3.1.0-1
115- new upstream release
116
117* Tue Apr 19 2011 NAKAMURA Kenta <kenta@vinelinux.org> 2.4.2-2
118- rebuild for Vine 6
119
120* Sun Apr 18 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.2-1
121- new upstream release
122- add Requires: gmp-devel (devel package)
123
124* Sat Nov 28 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.4.1-1
125- new upstream release
126
127* Mon May 19 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.3.1-1
128- new upstream release
129- applied new versioning policy
130
131* Thu Dec 13 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.3.0-1vl1
132- initial build for Vine Linux
133
134* Thu Sep 20 2007 Ivana Varekova <varekova@redhat.com> 2.3.0-1
135- update to 2.3.0
136- fix license flag
137
138* Mon Aug 20 2007 Ivana Varekova <varekova@redhat.com> 2.2.1-2
139- spec file cleanup (#253440)
140
141* Tue Jan 16 2007 Ivana Varekova <varekova@redhat.com> 2.2.1-1
142- started
143
Note: See TracBrowser for help on using the repository browser.