Hello community,

here is the log from the commit of package ntl for openSUSE:Factory checked in 
at 2012-12-14 10:03:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ntl (Old)
 and      /work/SRC/openSUSE:Factory/.ntl.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ntl", Maintainer is ""

Changes:
--------
New Changes file:

--- /dev/null   2012-11-30 12:21:47.308011256 +0100
+++ /work/SRC/openSUSE:Factory/.ntl.new/ntl.changes     2012-12-14 
10:03:48.000000000 +0100
@@ -0,0 +1,10 @@
+-------------------------------------------------------------------
+Sun Dec  9 04:56:58 UTC 2012 - [email protected]
+
+- Ensure that only NTL_ defined appear in NTL/config.h
+- Set RPM group according to rpmlint
+
+-------------------------------------------------------------------
+Thu Sep 15 13:42:17 UTC 2011 - [email protected]
+
+- Initial package (version 5.5.2) for build.opensuse.org

New:
----
  ntl-5.5.2.tar.bz2
  ntl-automake.diff
  ntl.changes
  ntl.spec

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ntl.spec ++++++
#
# spec file for package ntl
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           ntl
%define lname   libntl0
Version:        5.5.2
Release:        0
Summary:        Library for Number Theory
Group:          Productivity/Scientific/Math
License:        GPL-2.0+
URL:            http://shoup.net/ntl/

Source:         ntl-%version.tar.bz2
Patch1:         ntl-automake.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  autoconf, automake, libtool
BuildRequires:  gcc-c++ gf2x-devel gmp-devel >= 3.1

%description
NTL is a high-performance, portable C++ library providing data
structures and algorithms for manipulating signed, arbitrary length
integers, and for vectors, matrices, and polynomials over the
integers and over finite fields.

%package -n %lname
Summary:        Library for Number Theory
Group:          System/Libraries

%description -n %lname
NTL is a high-performance, portable C++ library providing data
structures and algorithms for manipulating signed, arbitrary length
integers, and for vectors, matrices, and polynomials over the
integers and over finite fields.

%package devel
Summary:        Development files for libntl
Group:          Development/Libraries/C and C++
Requires:       %lname = %version

%description devel
NTL is a high-performance, portable C++ library providing data
structures and algorithms for manipulating signed, arbitrary length
integers, and for vectors, matrices, and polynomials over the
integers and over finite fields.

This package contains the headers and library links to libntl.

%prep
%setup -qn ntl-%version
%patch -P 1 -p1
pushd src/;
for i in *.c; do
        mv "$i" "${i%.c}.cpp";
done;
for i in GetTime*.cpp MakeDesc*.cpp; do
        mv "$i" "${i%.cpp}.c";
done;
for i in ctools gen_gmp_aux gen_lip_gmp_aux lip; do
        mv "$i.cpp" "$i.c";
done;
rm -f makefile;
popd;

%build
mkdir -p m4;
autoreconf -fi;
%configure --disable-static
make %{?_smp_mflags};

%install
b="%buildroot";
make install DESTDIR="$b";
rm -f "$b/%_libdir"/*.la;

%post -n %lname -p /sbin/ldconfig

%postun -n %lname -p /sbin/ldconfig

%files -n %lname
%defattr(-,root,root)
%_libdir/libntl.so.0*

%files devel
%defattr(-,root,root)
%_includedir/NTL
%_libdir/libntl.so
%doc doc/*

%changelog
++++++ ntl-automake.diff ++++++
From: Jan Engelhardt <[email protected]>
Date: 2011-09-15 16:30:59.937789147 +0200
Upstream: not-sent-yet

---
 Makefile.am         |   13 +++++
 autogen.sh          |    5 ++
 configure.ac        |   50 ++++++++++++++++++++++
 include/Makefile.am |   90 ++++++++++++++++++++++++++++++++++++++++
 include/NTL/g_lip.h |    1 
 src/Makefile.am     |  117 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 275 insertions(+), 1 deletion(-)

Index: ntl-5.5.2/Makefile.am
===================================================================
--- /dev/null
+++ ntl-5.5.2/Makefile.am
@@ -0,0 +1,13 @@
+# -*- Makefile -*-
+
+ACLOCAL_AMFLAGS = -I m4
+
+SUBDIRS = . include src
+
+BUILT_SOURCES = include/NTL/config.h
+
+pkgincludedir = ${includedir}/NTL
+pkginclude_HEADERS = include/NTL/config.h
+
+include/NTL/config.h: config.h
+       grep 'define NTL_' <$< >$@
Index: ntl-5.5.2/autogen.sh
===================================================================
--- /dev/null
+++ ntl-5.5.2/autogen.sh
@@ -0,0 +1,5 @@
+#!/bin/sh -e
+
+mkdir -p m4;
+autoreconf -fi;
+rm -Rf autom4te.cache;
Index: ntl-5.5.2/configure.ac
===================================================================
--- /dev/null
+++ ntl-5.5.2/configure.ac
@@ -0,0 +1,50 @@
+AC_INIT([ntl], [5.5.2])
+AC_CONFIG_HEADERS([config.h])
+AC_CONFIG_MACRO_DIR([m4])
+AC_PROG_INSTALL
+AM_INIT_AUTOMAKE([-Wall foreign subdir-objects])
+AC_PROG_CC
+AM_PROG_CC_C_O
+AC_PROG_CXX
+LT_INIT
+AC_DISABLE_STATIC
+
+
+AH_TEMPLATE([NTL_STD_CXX], [Use this flag if you want to use the Standard C++ 
version of NTL. In this version, all of NTL is wrapped inside the NTL 
namespace, and standard headers like cstdlib are used instead of stdlib.h.])
+AH_TEMPLATE([NTL_PSTD_NNS], [Set if NTL library components are to be wrapped 
in namespace NTL.])
+AH_TEMPLATE([NTL_PSTD_NHF], [Set if you want to use the new header files 
cstdlib, etc.])
+AH_TEMPLATE([NTL_PSTD_NTN], [Set if you want to use the nothrow version of 
new.])
+AH_TEMPLATE([NTL_GMP_LIP], [Use this flag if you want to use GMP as the long 
integer package.])
+AH_TEMPLATE([NTL_GMP_HACK], [Use this flag if you want to use GMP, but keep 
compatibility with older NTL codes.])
+AH_TEMPLATE([NTL_GF2X_LIB], [Use this flag if you want to use the gf2x library 
for faster GF2X arithmetic.])
+AH_TEMPLATE([NTL_LONG_LONG_TYPE], [This will be used to declare double-word 
signed integer types. If left unset, will default to autodetect.])
+AH_TEMPLATE([NTL_UNSIGNED_LONG_LONG_TYPE], [This will be used to declare 
double-word unsigned integer types. If left unset, will default to autodetect.])
+AH_TEMPLATE([NTL_CXX_ONLY], [Compile using C++ only])
+AH_TEMPLATE([NTL_CLEAN_INT], [This will disallow the use of some non-standard 
integer arithmetic that may improve performance somewhat.])
+AH_TEMPLATE([NTL_CLEAN_PTR], [This will disallow the use of some non-standard 
pointer arithmetic that may improve performance somewhat.])
+AH_TEMPLATE([NTL_RANGE_CHECK], [This will generate vector subscript 
range-check code.])
+AH_TEMPLATE([NTL_NO_INIT_TRANS], [Without this flag, NTL uses a special code 
sequence to avoid copying large objects in return statements.])
+AH_TEMPLATE([NTL_X86_FIX], [Forces the x86 FP fix])
+AH_TEMPLATE([NTL_NO_X86_FIX], [Forces no x86 FP fix])
+
+AC_DEFINE([NTL_STD_CXX], [1])
+AC_DEFINE([NTL_PSTD_NHF], [1])
+
+with_gmp="auto";
+AC_ARG_WITH([gmp], AS_HELP_STRING([--with-gmp], [Build against GMP]))
+echo "Utilizing GMP... $with_gmp";
+AM_CONDITIONAL([WITH_GMP], [test "$with_gmp" != no])
+if test "$with_gmp" != no; then
+       AC_DEFINE([NTL_GMP_LIP], [1])
+fi;
+
+with_gf2x="auto";
+AC_ARG_WITH([gf2x], AS_HELP_STRING([--with-gf2x], [Build against GF2X]))
+echo "Utilizing gf2x... $with_gf2x";
+AM_CONDITIONAL([WITH_GF2X], [test "$with_gf2x" != no])
+if test "$with_gf2x" != no; then
+       AC_DEFINE([NTL_GF2X_LIB], [1])
+fi;
+
+AC_CONFIG_FILES([Makefile src/Makefile include/Makefile])
+AC_OUTPUT
Index: ntl-5.5.2/include/Makefile.am
===================================================================
--- /dev/null
+++ ntl-5.5.2/include/Makefile.am
@@ -0,0 +1,90 @@
+# -*- Makefile -*-
+
+nobase_include_HEADERS = \
+       NTL/FFT.h \
+       NTL/FacVec.h \
+       NTL/GF2.h \
+       NTL/GF2E.h \
+       NTL/GF2EX.h \
+       NTL/GF2EXFactoring.h \
+       NTL/GF2X.h \
+       NTL/GF2XFactoring.h \
+       NTL/GF2XVec.h \
+       NTL/HNF.h \
+       NTL/LLL.h \
+       NTL/RR.h \
+       NTL/SPMM_ASM.h \
+       NTL/WordVector.h \
+       NTL/ZZ.h \
+       NTL/ZZVec.h \
+       NTL/ZZX.h \
+       NTL/ZZXFactoring.h \
+       NTL/ZZ_p.h \
+       NTL/ZZ_pE.h \
+       NTL/ZZ_pEX.h \
+       NTL/ZZ_pEXFactoring.h \
+       NTL/ZZ_pX.h \
+       NTL/ZZ_pXFactoring.h \
+       NTL/c_lip.h \
+       NTL/ctools.h \
+       NTL/def_config.h \
+       NTL/fileio.h \
+       NTL/g_lip.h \
+       NTL/lip.h \
+       NTL/lzz_p.h \
+       NTL/lzz_pE.h \
+       NTL/lzz_pEX.h \
+       NTL/lzz_pEXFactoring.h \
+       NTL/lzz_pX.h \
+       NTL/lzz_pXFactoring.h \
+       NTL/mat_GF2.h \
+       NTL/mat_GF2E.h \
+       NTL/mat_RR.h \
+       NTL/mat_ZZ.h \
+       NTL/mat_ZZ_p.h \
+       NTL/mat_ZZ_pE.h \
+       NTL/mat_lzz_p.h \
+       NTL/mat_lzz_pE.h \
+       NTL/mat_poly_ZZ.h \
+       NTL/mat_poly_ZZ_p.h \
+       NTL/mat_poly_lzz_p.h \
+       NTL/matrix.h \
+       NTL/new.h \
+       NTL/pair.h \
+       NTL/pair_GF2EX_long.h \
+       NTL/pair_GF2X_long.h \
+       NTL/pair_ZZX_long.h \
+       NTL/pair_ZZ_pEX_long.h \
+       NTL/pair_ZZ_pX_long.h \
+       NTL/pair_lzz_pEX_long.h \
+       NTL/pair_lzz_pX_long.h \
+       NTL/quad_float.h \
+       NTL/tools.h \
+       NTL/vec_GF2.h \
+       NTL/vec_GF2E.h \
+       NTL/vec_GF2XVec.h \
+       NTL/vec_RR.h \
+       NTL/vec_ZZ.h \
+       NTL/vec_ZZVec.h \
+       NTL/vec_ZZ_p.h \
+       NTL/vec_ZZ_pE.h \
+       NTL/vec_double.h \
+       NTL/vec_long.h \
+       NTL/vec_lzz_p.h \
+       NTL/vec_lzz_pE.h \
+       NTL/vec_quad_float.h \
+       NTL/vec_ulong.h \
+       NTL/vec_vec_GF2.h \
+       NTL/vec_vec_GF2E.h \
+       NTL/vec_vec_RR.h \
+       NTL/vec_vec_ZZ.h \
+       NTL/vec_vec_ZZ_p.h \
+       NTL/vec_vec_ZZ_pE.h \
+       NTL/vec_vec_long.h \
+       NTL/vec_vec_lzz_p.h \
+       NTL/vec_vec_lzz_pE.h \
+       NTL/vec_vec_ulong.h \
+       NTL/vec_xdouble.h \
+       NTL/vector.h \
+       NTL/version.h \
+       NTL/xdouble.h
Index: ntl-5.5.2/include/NTL/g_lip.h
===================================================================
--- ntl-5.5.2.orig/include/NTL/g_lip.h
+++ ntl-5.5.2/include/NTL/g_lip.h
@@ -546,5 +546,4 @@ extern int _ntl_gmp_hack;
 #define NTL_zssubmul _ntl_gssubmul
 #define NTL_zsubmul _ntl_gsubmul
 
-#define NTL_GMP_LIP
 
Index: ntl-5.5.2/src/Makefile.am
===================================================================
--- /dev/null
+++ ntl-5.5.2/src/Makefile.am
@@ -0,0 +1,117 @@
+# -*- Makefile -*-
+
+AM_CFLAGS   = -I${top_builddir}/include -I${top_srcdir}/include
+AM_CXXFLAGS = ${AM_CFLAGS}
+
+lib_LTLIBRARIES = libntl.la
+
+# cf. "VERSION_INFO" file
+libntl_la_LDFLAGS = -version-info 1:0:1
+libntl_la_LIBADD  = -lm
+if WITH_GMP
+libntl_la_LIBADD += -lgmp
+endif
+if WITH_GF2X
+libntl_la_LIBADD += -lgf2x
+endif
+libntl_la_SOURCES = \
+       FFT.cpp FacVec.cpp GF2.cpp GF2E.cpp GF2EX.cpp GF2EXFactoring.cpp 
GF2X.cpp GF2X1.cpp \
+       GF2XFactoring.cpp GF2XVec.cpp GetTime2.c HNF.cpp ctools.c LLL.cpp 
LLL_FP.cpp \
+       LLL_QP.cpp LLL_RR.cpp LLL_XD.cpp RR.cpp WordVector.cpp ZZ.cpp ZZVec.cpp 
\
+       ZZX.cpp ZZX1.cpp ZZXCharPoly.cpp ZZXFactoring.cpp ZZ_p.cpp ZZ_pE.cpp 
ZZ_pEX.cpp \
+       ZZ_pEXFactoring.cpp ZZ_pX.cpp ZZ_pX1.cpp ZZ_pXCharPoly.cpp 
ZZ_pXFactoring.cpp \
+       fileio.cpp lip.c lzz_p.cpp lzz_pE.cpp lzz_pEX.cpp lzz_pEXFactoring.cpp \
+       lzz_pX.cpp lzz_pX1.cpp lzz_pXCharPoly.cpp lzz_pXFactoring.cpp \
+       mat_GF2.cpp mat_GF2E.cpp mat_RR.cpp mat_ZZ.cpp mat_ZZ_p.cpp \
+       mat_ZZ_pE.cpp mat_lzz_p.cpp mat_lzz_pE.cpp mat_poly_ZZ.cpp \
+       mat_poly_ZZ_p.cpp mat_poly_lzz_p.cpp pair_GF2EX_long.cpp \
+       pair_GF2X_long.cpp pair_ZZX_long.cpp pair_ZZ_pEX_long.cpp \
+       pair_ZZ_pX_long.cpp pair_lzz_pEX_long.cpp pair_lzz_pX_long.cpp \
+       quad_float.cpp tools.cpp vec_GF2.cpp vec_GF2E.cpp vec_GF2XVec.cpp \
+       vec_RR.cpp vec_ZZ.cpp vec_ZZVec.cpp vec_ZZ_p.cpp vec_ZZ_pE.cpp \
+       vec_double.cpp vec_long.cpp vec_lzz_p.cpp vec_lzz_pE.cpp 
vec_quad_float.cpp \
+       vec_vec_GF2.cpp vec_vec_GF2E.cpp vec_vec_RR.cpp vec_vec_ZZ.cpp \
+       vec_vec_ZZ_p.cpp vec_vec_ZZ_pE.cpp vec_vec_long.cpp vec_vec_lzz_p.cpp \
+       vec_vec_lzz_pE.cpp vec_xdouble.cpp xdouble.cpp \
+       G_LLL_FP.cpp G_LLL_QP.cpp G_LLL_XD.cpp G_LLL_RR.cpp vec_ulong.cpp 
vec_vec_ulong.cpp
+
+BUILT_SOURCES = mach_desc.h gmp_aux.h lip_gmp_aux_impl.h
+
+pkgincludedir = ${includedir}/NTL
+pkginclude_HEADERS = gmp_aux.h mach_desc.h
+
+gen_gmp_aux.${OBJEXT}: mach_desc.h
+
+gen_lip_gmp_aux.${OBJEXT}: mach_desc.h
+
+lip_gmp_aux_impl.h: gen_lip_gmp_aux
+       ./gen_lip_gmp_aux${EXEEXT} >lip_gmp_aux_impl.h;
+
+gmp_aux.h: gen_gmp_aux
+       ./gen_gmp_aux${EXEEXT} >gmp_aux.h;
+       mkdir -p ../include/NTL;
+       cp gmp_aux.h ../include/NTL/;
+
+mach_desc.h: MakeDesc${EXEEXT}
+       ./MakeDesc${EXEEXT};
+       mkdir -p ../include/NTL;
+       cp mach_desc.h ../include/NTL/;
+
+noinst_PROGRAMS = \
+       gen_gmp_aux gen_lip_gmp_aux \
+       MakeDesc DispSettings InitSettings
+
+if WITH_GMP
+gen_gmp_aux_LDADD = -lgmp
+endif
+
+check_PROGRAMS = \
+       BerlekampTest BitMatTest CanZassTest CharPolyTest GF2EXTest \
+       GF2XTest GF2XTimeTest LLLTest MatrixTest MoreFacTest MulTimeTest \
+       Poly1TimeTest PolyTimeTest QuadTest QuickTest RRTest TestGetTime \
+       ZZXFacTest ZZ_pEXTest lzz_pEXTest
+
+MakeDesc_SOURCES      = MakeDesc.c MakeDescAux.c
+DispSettings_SOURCES  = DispSettings.cpp
+InitSettings_SOURCES  = InitSettings.cpp
+
+BerlekampTest_SOURCES = BerlekampTest.cpp
+BerlekampTest_LDADD   = libntl.la
+BitMatTest_SOURCES    = BitMatTest.cpp
+BitMatTest_LDADD      = libntl.la
+CanZassTest_SOURCES   = CanZassTest.cpp
+CanZassTest_LDADD     = libntl.la
+CharPolyTest_SOURCES  = CharPolyTest.cpp
+CharPolyTest_LDADD    = libntl.la
+GF2EXTest_SOURCES     = GF2EXTest.cpp
+GF2EXTest_LDADD       = libntl.la
+GF2XTest_SOURCES      = GF2XTest.cpp
+GF2XTest_LDADD        = libntl.la
+GF2XTimeTest_SOURCES  = GF2XTimeTest.cpp
+GF2XTimeTest_LDADD    = libntl.la
+LLLTest_SOURCES       = LLLTest.cpp
+LLLTest_LDADD         = libntl.la
+MatrixTest_SOURCES    = MatrixTest.cpp
+MatrixTest_LDADD      = libntl.la
+MoreFacTest_SOURCES   = MoreFacTest.cpp
+MoreFacTest_LDADD     = libntl.la
+MulTimeTest_SOURCES   = MulTimeTest.cpp
+MulTimeTest_LDADD     = libntl.la
+Poly1TimeTest_SOURCES = Poly1TimeTest.cpp
+Poly1TimeTest_LDADD   = libntl.la
+PolyTimeTest_SOURCES  = PolyTimeTest.cpp
+PolyTimeTest_LDADD    = libntl.la
+QuadTest_SOURCES      = QuadTest.cpp
+QuadTest_LDADD        = libntl.la
+QuickTest_SOURCES     = QuickTest.cpp
+QuickTest_LDADD       = libntl.la
+RRTest_SOURCES        = RRTest.cpp
+RRTest_LDADD          = libntl.la
+TestGetTime_SOURCES   = TestGetTime.cpp
+TestGetTime_LDADD     = libntl.la
+ZZXFacTest_SOURCES    = ZZXFacTest.cpp
+ZZXFacTest_LDADD      = libntl.la
+ZZ_pEXTest_SOURCES    = ZZ_pEXTest.cpp
+ZZ_pEXTest_LDADD      = libntl.la
+lzz_pEXTest_SOURCES   = lzz_pEXTest.cpp
+lzz_pEXTest_LDADD     = libntl.la
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to