rpms/givaro/F-11 givaro-config-script.patch, NONE, 1.1 givaro-config.h, NONE, 1.1 givaro.spec, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

mycae mycae at fedoraproject.org
Mon Sep 14 10:13:32 UTC 2009


Author: mycae

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

Modified Files:
	.cvsignore sources 
Added Files:
	givaro-config-script.patch givaro-config.h givaro.spec 
	import.log 
Log Message:
- F-11 initial import


givaro-config-script.patch:
 givaro-config.in |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

--- NEW FILE givaro-config-script.patch ---
--- givaro-config.in	2004-05-13 02:08:24.000000000 +1000
+++ givaro-config.in.new	2009-08-23 14:53:24.000000000 +1000
@@ -55,11 +55,11 @@
 	;;
 
     --cflags)
-       	echo -I${includedir} @GMP_CFLAGS@
+       	echo -n " -I${includedir} @GMP_CFLAGS@"
 	;;
 
     --libs)
-       	echo -L${libdir} -lgivaro @GMP_LIBS@ 
+       	echo -n " -L${libdir} -lgivaro @GMP_LIBS@"
        	;;
 
     *)
@@ -69,5 +69,6 @@
     esac
     shift
 done
+echo
 
 exit 0


--- NEW FILE givaro-config.h ---
#ifndef _GIVARO_CONFIG_H
#define _GIVARO_CONFIG_H 1

#ifndef __GIVARO_HAVE_DLFCN_H
#define __GIVARO_HAVE_DLFCN_H  1
#endif

#ifndef __GIVARO_HAVE_GMP
#define __GIVARO_HAVE_GMP  1
#endif

/* #undef __GIVARO_GMP_NO_CXX */

/* #undef __GIVARO_GMP_VERSION_3 */

#ifndef __GIVARO_HAVE_INTTYPES_H
#define __GIVARO_HAVE_INTTYPES_H  1
#endif

#ifndef __GIVARO_HAVE_MEMORY_H
#define __GIVARO_HAVE_MEMORY_H  1
#endif

#ifndef __GIVARO_HAVE_STDINT_H
#define __GIVARO_HAVE_STDINT_H  1
#endif

#ifndef __GIVARO_HAVE_STDLIB_H
#define __GIVARO_HAVE_STDLIB_H  1
#endif

#ifndef __GIVARO_HAVE_STRINGS_H
#define __GIVARO_HAVE_STRINGS_H  1
#endif

#ifndef __GIVARO_HAVE_STRING_H
#define __GIVARO_HAVE_STRING_H  1
#endif

#ifndef __GIVARO_HAVE_SYS_STAT_H
#define __GIVARO_HAVE_SYS_STAT_H  1
#endif

#ifndef __GIVARO_HAVE_SYS_TYPES_H
#define __GIVARO_HAVE_SYS_TYPES_H  1
#endif

#ifndef __GIVARO_HAVE_UNISTD_H
#define __GIVARO_HAVE_UNISTD_H  1
#endif

#ifndef __GIVARO_STDC_HEADERS
#define __GIVARO_STDC_HEADERS  1
#endif

#ifndef __GIVARO_INT8
#define __GIVARO_INT8  char
#endif

#ifndef __GIVARO_INT16
#define __GIVARO_INT16  short
#endif

#ifndef __GIVARO_INT32
#define __GIVARO_INT32  int
#endif

#ifndef __GIVARO_INT64
#define __GIVARO_INT64  long long
#endif

#ifndef __GIVARO_PACKAGE
#define __GIVARO_PACKAGE  "givaro"
#endif

#ifndef __GIVARO_PACKAGE_BUGREPORT
#define __GIVARO_PACKAGE_BUGREPORT  ""
#endif

#ifndef __GIVARO_PACKAGE_NAME
#define __GIVARO_PACKAGE_NAME  ""
#endif

#ifndef __GIVARO_PACKAGE_STRING
#define __GIVARO_PACKAGE_STRING  ""
#endif

#ifndef __GIVARO_PACKAGE_TARNAME
#define __GIVARO_PACKAGE_TARNAME  ""
#endif

#ifndef __GIVARO_PACKAGE_VERSION
#define __GIVARO_PACKAGE_VERSION  ""
#endif

#ifndef __GIVARO_VERSION
#define __GIVARO_VERSION  "3.2.13"
#endif

#endif


--- NEW FILE givaro.spec ---
Name:		givaro
Version:	3.2.15
Release:	0.2.rc1%{?dist}
Summary:	C++ library for arithmetic and algebraic computations
Group:		Development/Libraries

#GPL boilerplate missing. Upstream has been notified via email
License:	GPL+
URL:		http://ljk.imag.fr/CASYS/LOGICIELS/givaro/
Source0:	http://ljk.imag.fr/CASYS/LOGICIELS/givaro/givaro-%{version}rc1.tar.gz
Source1:	givaro-config.h
Patch0:		givaro-config-script.patch
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:	gmp-devel


%description
Givaro is a C++ library for arithmetic and algebraic computations.
Its main features are implementations of the basic arithmetic of many
mathematical entities: Primes fields, Extensions Fields, Finite Fields,
Finite Rings, Polynomials, Algebraic numbers, Arbitrary precision
integers and rationals (C++ wrappers over gmp) It also provides
data-structures and templated classes for the manipulation of basic
algebraic objects, such as vectors, matrices (dense, sparse, structured),
univariate polynomials (and therefore recursive multivariate).


%package        devel
Summary:	Files useful for %{name} development
Group:	Development/Libraries
Requires:	%{name} = %{version}-%{release}


%description    devel
The libraries and header files for using %{name} for development.


%package        static
Summary:	Files used for static linking with %{name}
Group:	Development/Libraries
Requires:	%{name} = %{version}-%{release}
Requires:	%{name}-devel = %{version}-%{release}


%description    static
The static libraries for using %{name} for development.


%prep
%setup -q
cp %{SOURCE1} new-givaro-config.h

sed -i -e 's|^#define __GIVARO_VERSION.*$|#define __GIVARO_VERSION  "%{version}"|' new-givaro-config.h
%patch0


%build
%configure --with-gmp --enable-shared=yes
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT%{_libdir}/lib%{name}.la

rm -f $RPM_BUILD_ROOT%{_includedir}/givaro-config.h
install -m 644 new-givaro-config.h $RPM_BUILD_ROOT%{_includedir}/givaro-config.h

#givaro-makefile is installed incorrectly in usr/bin
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/
mv $RPM_BUILD_ROOT/%{_bindir}/givaro-makefile $RPM_BUILD_ROOT%{_datadir}/%{name}/
chmod 644  $RPM_BUILD_ROOT%{_datadir}/%{name}/givaro-makefile
sed -i 's|#! /bin/sh||' $RPM_BUILD_ROOT%{_datadir}/%{name}/givaro-makefile


%post -p /sbin/ldconfig


%postun -p /sbin/ldconfig


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc COPYING
%{_libdir}/lib%{name}.so.*


%files devel
%defattr(-,root,root,-)
%{_bindir}/%{name}-config
%{_includedir}/%{name}/
%{_includedir}/gmp++/
%{_datadir}/%{name}/
%{_includedir}/%{name}-config.h
%{_libdir}/lib%{name}.so


%files static
%defattr(-,root,root,-)
%{_libdir}/lib%{name}.a


%changelog
* Sun Sep 12 2009 D Haley <mycae(a!t)yahoo.com> - 3.2.15-0.2.rc1
- Change to GPL+ from GPL2 per bugzilla comment

* Sun Aug 23 2009 D Haley <mycae(a!t)yahoo.com> - 3.2.15-0.1.rc1
- Upgrade to 3.2.15rc1
- Modify givaro-config.in to allow multiple flags simultaneously

* Sat Dec 6 2008 Conrad Meyer <konrad at tylerc.org> - 3.2.13-2
- Fix endian header to be non-endian.

* Sat Dec 6 2008 Conrad Meyer <konrad at tylerc.org> - 3.2.13-1
- Initial package.


--- NEW FILE import.log ---
givaro-3_2_15-0_2_rc1_fc10:F-11:givaro-3.2.15-0.2.rc1.fc10.src.rpm:1252923597


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/givaro/F-11/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	14 Sep 2009 04:56:28 -0000	1.1
+++ .cvsignore	14 Sep 2009 10:13:32 -0000	1.2
@@ -0,0 +1 @@
+givaro-3.2.15rc1.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/givaro/F-11/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	14 Sep 2009 04:56:28 -0000	1.1
+++ sources	14 Sep 2009 10:13:32 -0000	1.2
@@ -0,0 +1 @@
+f0b754ee54bcac0e866f2979b57393ba  givaro-3.2.15rc1.tar.gz




More information about the fedora-extras-commits mailing list