rpms/libmpc/F-11 libmpc.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Petr Machata pmachata at fedoraproject.org
Mon Nov 16 13:14:16 UTC 2009


Author: pmachata

Update of /cvs/pkgs/rpms/libmpc/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv20606

Modified Files:
	.cvsignore sources 
Added Files:
	libmpc.spec 
Log Message:
Initial commit to F11 branch



--- NEW FILE libmpc.spec ---
Summary: C library for multiple precision complex arithmetic
Name: libmpc
Version: 0.8
Release: 3%{?dist}
License: LGPLv2+
Group: Development/Tools
URL: http://www.multiprecision.org/
Source0: http://www.multiprecision.org/mpc/download/mpc-0.8.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gmp-devel mpfr-devel texinfo

%description

MPC is a C library for the arithmetic of complex numbers with
arbitrarily high precision and correct rounding of the result. It is
built upon and follows the same principles as Mpfr.

%package devel
Summary: Header and shared development libraries for MPC
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: mpfr-devel gmp-devel

%description devel
Header files and shared object symlinks for MPC is a C library.

%prep
%setup -q -n mpc-%{version}

%build
%configure
make %{?_smp_mflags}

%check
make check

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT/%{_libdir}/libmpc.{l,}a
rm -f ${RPM_BUILD_ROOT}/%{_infodir}/dir

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%post devel
if [ -f %{_infodir}/mpc.info.gz ]; then # for --excludedocs
   /sbin/install-info %{_infodir}/mpc.info.gz %{_infodir}/dir || :
fi

%preun devel
if [ $1 = 0 ]; then
   if [ -f %{_infodir}/mpc.info.gz ]; then # for --excludedocs
      /sbin/install-info --delete %{_infodir}/mpc.info.gz %{_infodir}/dir || :
   fi
fi

%files
%defattr(-,root,root,-)
%doc README NEWS COPYING.LIB
%{_libdir}/libmpc.so.*

%files devel
%defattr(-,root,root,-)
%{_libdir}/libmpc.so
%{_includedir}/mpc.h
%{_infodir}/*.info*

%changelog
* Fri Nov 13 2009 Petr Machata <pmachata at redhat.com> - 0.8-3
- Require mpfr-devel, gmp-devel in -devel subpackage
- Don't pass --entry to install-info

* Thu Nov 12 2009 Petr Machata <pmachata at redhat.com> - 0.8-2
- Rename the package to libmpc, it's a better choice of name
- %%preun should uninstall mpc's info page, not make's
- Move info page to -devel
- BR on -devel packages
- Drop postscript documentation

* Thu Nov 12 2009 Petr Machata <pmachata at redhat.com> - 0.8-1
- Initial package.


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/libmpc/F-11/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	13 Nov 2009 19:38:00 -0000	1.1
+++ .cvsignore	16 Nov 2009 13:14:16 -0000	1.2
@@ -0,0 +1 @@
+mpc-0.8.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/libmpc/F-11/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	13 Nov 2009 19:38:00 -0000	1.1
+++ sources	16 Nov 2009 13:14:16 -0000	1.2
@@ -0,0 +1 @@
+4df67a05d0251a3fcdd956390e9bd59f  mpc-0.8.tar.gz




More information about the fedora-extras-commits mailing list