From d76e0dd8f413684d7dd8af778144dc1ed2fe6c9f Mon Sep 17 00:00:00 2001 From: Iryna Shcherbina Date: Sun, 18 Mar 2018 14:04:40 +0100 Subject: [PATCH 01/20] Update Python 2 dependency declarations to new packaging standards --- zn_poly.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/zn_poly.spec b/zn_poly.spec index 0eb42f2..9205555 100644 --- a/zn_poly.spec +++ b/zn_poly.spec @@ -1,6 +1,6 @@ Name: zn_poly Version: 0.9 -Release: 17%{?dist}.2 +Release: 18%{?dist}.2 Summary: C library for polynomial arithmetic Group: Development/Libraries @@ -9,7 +9,7 @@ License: (GPLv2 or GPLv3) and GPLv2+ and LGPLv2+ URL: http://cims.nyu.edu/~harvey/code/zn_poly/ Source0: http://cims.nyu.edu/~harvey/code/zn_poly/releases/zn_poly-%{version}.tar.gz -BuildRequires: python +BuildRequires: python2 BuildRequires: gmp-devel %description @@ -98,6 +98,10 @@ make test %changelog +* Sun Mar 18 2018 Iryna Shcherbina - 0.9-18.2 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + * Fri Feb 09 2018 Fedora Release Engineering - 0.9-17.2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild From 354fe65d875ce84d6fd1c9e03c8c97155d8f95f6 Mon Sep 17 00:00:00 2001 From: Jason Tibbitts Date: Mon, 9 Jul 2018 23:14:27 -0500 Subject: [PATCH 02/20] Remove needless use of %defattr --- zn_poly.spec | 3 --- 1 file changed, 3 deletions(-) diff --git a/zn_poly.spec b/zn_poly.spec index 9205555..6f25b21 100644 --- a/zn_poly.spec +++ b/zn_poly.spec @@ -80,20 +80,17 @@ make test %files -%defattr(-,root,root,-) %doc COPYING gpl-?.0.txt %doc demo/bernoulli/bernoulli.c doc/REFERENCES %{_libdir}/libzn_poly-%{version}.so %files devel -%defattr(-,root,root,-) %{_libdir}/libzn_poly.so %{_includedir}/zn_poly/ %files static -%defattr(-,root,root,-) %{_libdir}/libzn_poly.a From f0524f2c14aac62bb1c235e67fa91308efa81631 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 14 Jul 2018 09:52:20 +0000 Subject: [PATCH 03/20] - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- zn_poly.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zn_poly.spec b/zn_poly.spec index 6f25b21..74c6f7b 100644 --- a/zn_poly.spec +++ b/zn_poly.spec @@ -1,6 +1,6 @@ Name: zn_poly Version: 0.9 -Release: 18%{?dist}.2 +Release: 19%{?dist}.2 Summary: C library for polynomial arithmetic Group: Development/Libraries @@ -95,6 +95,9 @@ make test %changelog +* Sat Jul 14 2018 Fedora Release Engineering - 0.9-19.2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + * Sun Mar 18 2018 Iryna Shcherbina - 0.9-18.2 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) From bb698ef73e04f8009c5a3c614cd556fbf9f32ab9 Mon Sep 17 00:00:00 2001 From: Jerry James Date: Sat, 13 Oct 2018 11:07:05 -0600 Subject: [PATCH 04/20] Switch to sagemath gitlab repository URLs. New 0.9.1 release. Use python3 instead of python2 to generate the makefile. Minor specfile cleanups for recent guidelines changes. --- .gitignore | 3 +- sources | 2 +- zn_poly-python3.patch | 397 ++++++++++++++++++++++++++++++++++++++++++ zn_poly.spec | 37 ++-- 4 files changed, 423 insertions(+), 16 deletions(-) create mode 100644 zn_poly-python3.patch diff --git a/.gitignore b/.gitignore index fb0baeb..62b17f9 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -zn_poly-0.9.tar.gz +/zn_poly-*.tar.gz +/zn_poly-*.tar.bz2 diff --git a/sources b/sources index a168369..bb89e7e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -0eeaae2524addf558de94bfbc914d22e zn_poly-0.9.tar.gz +SHA512 (zn_poly-0.9.1.tar.bz2) = 9c9d4b0f6b64be06802403a4cc1ec3ffd64dd450c3604179ea8661a10cc69b06a893dec48a8d1804ecf6194275358eda6e54a203ee70b1208ba7cc2b4dc83b5c diff --git a/zn_poly-python3.patch b/zn_poly-python3.patch new file mode 100644 index 0000000..cc8ab2a --- /dev/null +++ b/zn_poly-python3.patch @@ -0,0 +1,397 @@ +--- makemakefile.py.orig 2018-10-04 03:54:49.000000000 -0600 ++++ makemakefile.py 2018-10-07 20:53:52.853013713 -0600 +@@ -147,213 +147,213 @@ cpp_libs = libs + " -L" + ntl_lib_dir + + + import time + +-print "#" +-print "# Do not edit directly -- this file was auto-generated" +-print "# by makemakefile.py on " + time.strftime("%a, %d %b %Y %H:%M:%S +0000", +- time.gmtime()) +-print "#" +-print "# (makemakefile.py patched for Sage, 04/2012)" +-print ++print("#") ++print("# Do not edit directly -- this file was auto-generated") ++print("# by makemakefile.py on " + time.strftime("%a, %d %b %Y %H:%M:%S +0000", ++ time.gmtime())) ++print("#") ++print("# (makemakefile.py patched for Sage, 04/2012)") ++print() + +-print +-print "CC ?= gcc" +-print "CPP ?= cpp" +-print "CFLAGS = " + cflags +-print "CPPFLAGS = " + cppflags +-print "LDFLAGS = " + ldflags +-print "INCLUDES = " + includes # These are options to the C preprocessor. +-print "LIBS = " + libs # These are linker options passed to the compiler. +-print +-print "AR ?= ar" +-print "RANLIB ?= ranlib" +-print +-print "SHARED_FLAG ?= -shared" +-print "SONAME_FLAG ?= -soname" # '-h' for the Sun/Solaris linker ++print() ++print("CC ?= gcc") ++print("CPP ?= cpp") ++print("CFLAGS = " + cflags) ++print("CPPFLAGS = " + cppflags) ++print("LDFLAGS = " + ldflags) ++print("INCLUDES = " + includes) # These are options to the C preprocessor. ++print("LIBS = " + libs) # These are linker options passed to the compiler. ++print() ++print("AR ?= ar") ++print("RANLIB ?= ranlib") ++print() ++print("SHARED_FLAG ?= -shared") ++print("SONAME_FLAG ?= -soname") # '-h' for the Sun/Solaris linker + +-print +-print "CXX ?= g++" # The C++ compiler. +-print "CXXFLAGS = " + cxxflags # Options passed to the C++ compiler. +-print "CPP_INCLUDES = " + cpp_includes +-print "CPP_LIBS = " + cpp_libs ++print() ++print("CXX ?= g++") # The C++ compiler. ++print("CXXFLAGS = " + cxxflags) # Options passed to the C++ compiler. ++print("CPP_INCLUDES = " + cpp_includes) ++print("CPP_LIBS = " + cpp_libs) + +-print +-print "HEADERS = " + " ".join(install_headers + other_headers) +-print "LIBOBJS = " + " ".join([x + ".o" for x in lib_modules]) +-print "TESTOBJS = " + " ".join([x + "-DEBUG.o" for x in +- lib_modules + test_modules + testprof_modules]) +-print "PROFOBJS = " + " ".join([x + ".o" for x in +- lib_modules + prof_modules + noncpp_prof_modules + testprof_modules]) +-print "CPP_PROFOBJS = " + " ".join([x + ".o" for x in +- lib_modules + prof_modules + cpp_prof_modules + testprof_modules]) +-print "TUNEOBJS = " + " ".join([x + ".o" for x in ++print() ++print("HEADERS = " + " ".join(install_headers + other_headers)) ++print("LIBOBJS = " + " ".join([x + ".o" for x in lib_modules])) ++print("TESTOBJS = " + " ".join([x + "-DEBUG.o" for x in ++ lib_modules + test_modules + testprof_modules])) ++print("PROFOBJS = " + " ".join([x + ".o" for x in ++ lib_modules + prof_modules + noncpp_prof_modules + testprof_modules])) ++print("CPP_PROFOBJS = " + " ".join([x + ".o" for x in ++ lib_modules + prof_modules + cpp_prof_modules + testprof_modules])) ++print("TUNEOBJS = " + " ".join([x + ".o" for x in + lib_modules + tune_modules + testprof_modules + prof_modules + +- noncpp_prof_modules if x not in ("src/tuning", "profile/prof_main")]) +-print "ZN_POLY_TUNING = " + str(int(zn_poly_tuning)) +-print "ZN_POLY_VERSION = " + version +-print "ZN_POLY_ABI_VERSION = " + abi_version ++ noncpp_prof_modules if x not in ("src/tuning", "profile/prof_main")])) ++print("ZN_POLY_TUNING = " + str(int(zn_poly_tuning))) ++print("ZN_POLY_VERSION = " + version) ++print("ZN_POLY_ABI_VERSION = " + abi_version) + +-print +-print "all: libzn_poly.a" +-print +-print "test: test/test" +-print "tune: tune/tune" +-print +-print "check: test" +-print "\ttest/test -quick all" +-print +-print "install:" +-print "\tmkdir -p %s/include/zn_poly" % prefix +-print "\tmkdir -p %s/lib" % prefix +-print "\tcp libzn_poly.a %s/lib" % prefix +-print "\tcp include/zn_poly.h %s/include/zn_poly" % prefix +-print "\tcp include/wide_arith.h %s/include/zn_poly" % prefix +-print +-print "clean:" +-print "\trm -f *.o" +-print "\trm -f test/*.o" +-print "\trm -f profile/*.o" +-print "\trm -f tune/*.o" +-print "\trm -f src/tuning.c" +-print "\trm -f src/*.o" +-print "\trm -f demo/bernoulli/*.o" +-print "\trm -f libzn_poly.a" +-print "\trm -f libzn_poly.dylib" +-print "\trm -f libzn_poly*.so*" +-print "\trm -f libzn_poly*.dll.a" +-print "\trm -f cygzn_poly.dll" +-print "\trm -f test/test" +-print "\trm -f tune/tune" ++print() ++print("all: libzn_poly.a") ++print() ++print("test: test/test") ++print("tune: tune/tune") ++print() ++print("check: test") ++print("\ttest/test -quick all") ++print() ++print("install:") ++print("\tmkdir -p %s/include/zn_poly" % prefix) ++print("\tmkdir -p %s/lib" % prefix) ++print("\tcp libzn_poly.a %s/lib" % prefix) ++print("\tcp include/zn_poly.h %s/include/zn_poly" % prefix) ++print("\tcp include/wide_arith.h %s/include/zn_poly" % prefix) ++print() ++print("clean:") ++print("\trm -f *.o") ++print("\trm -f test/*.o") ++print("\trm -f profile/*.o") ++print("\trm -f tune/*.o") ++print("\trm -f src/tuning.c") ++print("\trm -f src/*.o") ++print("\trm -f demo/bernoulli/*.o") ++print("\trm -f libzn_poly.a") ++print("\trm -f libzn_poly.dylib") ++print("\trm -f libzn_poly*.so*") ++print("\trm -f libzn_poly*.dll.a") ++print("\trm -f cygzn_poly.dll") ++print("\trm -f test/test") ++print("\trm -f tune/tune") + for x in prof_progs: +- print "\trm -f " + x +- print "\trm -f " + x + "-ntl" ++ print("\trm -f " + x) ++ print("\trm -f " + x + "-ntl") + for x in demo_progs: +- print "\trm -f " + x +-print +-print "distclean: clean" +-print "\trm -f makefile" +-print +-print "dist: distclean" +-print "\ttar --exclude-vcs --exclude=.gitignore -czf zn_poly-$(ZN_POLY_VERSION).tar.gz *" ++ print("\trm -f " + x) ++print() ++print("distclean: clean") ++print("\trm -f makefile") ++print() ++print("dist: distclean") ++print("\ttar --exclude-vcs --exclude=.gitignore -czf zn_poly-$(ZN_POLY_VERSION).tar.gz *") + + +-print +-print +-print "##### library targets" +-print +-print "ifeq ($(ZN_POLY_TUNING), 1)" +-print "src/tuning.c: tune/tune" +-print "\ttune/tune > src/tuning.c" +-print "else" +-print "src/tuning.c: tune/tuning.c" +-print "\tcp tune/tuning.c src/tuning.c" +-print "endif" +-print +-print "libzn_poly.a: $(LIBOBJS)" +-print "\t$(AR) -r libzn_poly.a $(LIBOBJS)" +-print "\t$(RANLIB) libzn_poly.a" +-print +-print "# TODO: Put '-single_module -fPIC -dynamiclib' into $(SHARED_FLAG)" +-print "# and use that; also support $(SO_EXTENSION)..." +-print "libzn_poly.dylib: $(LIBOBJS)" +-print "\t$(CC) $(LDFLAGS) -single_module -fPIC -dynamiclib -o libzn_poly.dylib " \ +- "$(LIBOBJS) $(LIBS)" +-print +-print "# Left for compatibility with previous versions of Sage's 'spkg-install':" +-print "libzn_poly.dylib64: $(LIBOBJS)" +-print "\t$(CC) -m64 -single_module -fPIC -dynamiclib -o libzn_poly.dylib $(LIBOBJS) $(LIBS)" +-print +-print "cygzn_poly.dll: $(LIBOBJS)" +-print "\t$(CC) $(SHARED_FLAG) $(LDFLAGS) " \ ++print() ++print() ++print("##### library targets") ++print() ++print("ifeq ($(ZN_POLY_TUNING), 1)") ++print("src/tuning.c: tune/tune") ++print("\ttune/tune > src/tuning.c") ++print("else") ++print("src/tuning.c: tune/tuning.c") ++print("\tcp tune/tuning.c src/tuning.c") ++print("endif") ++print() ++print("libzn_poly.a: $(LIBOBJS)") ++print("\t$(AR) -r libzn_poly.a $(LIBOBJS)") ++print("\t$(RANLIB) libzn_poly.a") ++print() ++print("# TODO: Put '-single_module -fPIC -dynamiclib' into $(SHARED_FLAG)") ++print("# and use that; also support $(SO_EXTENSION)...") ++print("libzn_poly.dylib: $(LIBOBJS)") ++print("\t$(CC) $(LDFLAGS) -single_module -fPIC -dynamiclib -o libzn_poly.dylib " \ ++ "$(LIBOBJS) $(LIBS)") ++print() ++print("# Left for compatibility with previous versions of Sage's 'spkg-install':") ++print("libzn_poly.dylib64: $(LIBOBJS)") ++print("\t$(CC) -m64 -single_module -fPIC -dynamiclib -o libzn_poly.dylib $(LIBOBJS) $(LIBS)") ++print() ++print("cygzn_poly.dll: $(LIBOBJS)") ++print("\t$(CC) $(SHARED_FLAG) $(LDFLAGS) " \ + "-Wl,--out-implib,libzn_poly-$(ZN_POLY_VERSION).dll.a " \ +- "-o cygzn_poly.dll $(LIBOBJS) $(LIBS)" +-print +-print "libzn_poly-$(ZN_POLY_VERSION).dll.a: cygzn_poly.dll" +-print +-print "libzn_poly.dll.a: libzn_poly-$(ZN_POLY_VERSION).dll.a" +-print "\tln -sf libzn_poly-$(ZN_POLY_VERSION).dll.a libzn_poly.dll.a" +-print "\tln -sf libzn_poly-$(ZN_POLY_VERSION).dll.a libzn_poly-$(ZN_POLY_ABI_VERSION).dll.a" +-print +-print "libzn_poly.so: libzn_poly-$(ZN_POLY_VERSION).so" +-print "\tln -sf libzn_poly-$(ZN_POLY_VERSION).so libzn_poly.so" +-print "\tln -sf libzn_poly-$(ZN_POLY_VERSION).so libzn_poly-$(ZN_POLY_ABI_VERSION).so" ++ "-o cygzn_poly.dll $(LIBOBJS) $(LIBS)") ++print() ++print("libzn_poly-$(ZN_POLY_VERSION).dll.a: cygzn_poly.dll") ++print() ++print("libzn_poly.dll.a: libzn_poly-$(ZN_POLY_VERSION).dll.a") ++print("\tln -sf libzn_poly-$(ZN_POLY_VERSION).dll.a libzn_poly.dll.a") ++print("\tln -sf libzn_poly-$(ZN_POLY_VERSION).dll.a libzn_poly-$(ZN_POLY_ABI_VERSION).dll.a") ++print() ++print("libzn_poly.so: libzn_poly-$(ZN_POLY_VERSION).so") ++print("\tln -sf libzn_poly-$(ZN_POLY_VERSION).so libzn_poly.so") ++print("\tln -sf libzn_poly-$(ZN_POLY_VERSION).so libzn_poly-$(ZN_POLY_ABI_VERSION).so") + +-print +-print "libzn_poly-$(ZN_POLY_VERSION).so: $(LIBOBJS)" +-print "\t$(CC) $(SHARED_FLAG) $(LDFLAGS) -Wl,-soname,libzn_poly-$(ZN_POLY_ABI_VERSION).so " \ +- "-o libzn_poly-$(ZN_POLY_VERSION).so $(LIBOBJS) $(LIBS)" ++print() ++print("libzn_poly-$(ZN_POLY_VERSION).so: $(LIBOBJS)") ++print("\t$(CC) $(SHARED_FLAG) $(LDFLAGS) -Wl,-soname,libzn_poly-$(ZN_POLY_ABI_VERSION).so " \ ++ "-o libzn_poly-$(ZN_POLY_VERSION).so $(LIBOBJS) $(LIBS)") + +-print +-print +-print "##### test program" +-print +-print "test/test: $(TESTOBJS) $(HEADERS)" +-print "\t$(CC) -g $(LDFLAGS) -o test/test $(TESTOBJS) $(LIBS)" ++print() ++print() ++print("##### test program") ++print() ++print("test/test: $(TESTOBJS) $(HEADERS)") ++print("\t$(CC) -g $(LDFLAGS) -o test/test $(TESTOBJS) $(LIBS)") + +-print +-print +-print "##### profiling programs" +-print ++print() ++print() ++print("##### profiling programs") ++print() + for x in prof_progs: +- print "%s-main.o: %s-main.c $(HEADERS)" % (x, x) +- print "\t$(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -DNDEBUG -o %s-main.o -c %s-main.c" \ +- % (x, x) +- print +- print "%s: %s-main.o $(PROFOBJS)" % (x, x) +- print "\t$(CC) $(CFLAGS) $(LDFLAGS) -o %s %s-main.o $(PROFOBJS) $(LIBS)" \ +- % (x, x) +- print +- print "%s-main-ntl.o: %s-main.c $(HEADERS)" % (x, x) +- print "\t$(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -DPROFILE_NTL -DNDEBUG " \ +- "-o %s-main-ntl.o -c %s-main.c" % (x, x) +- print +- print "%s-ntl: %s-main-ntl.o $(CPP_PROFOBJS)" % (x, x) +- print "\t$(CXX) $(CXXFLAGS) $(LDFLAGS) -o %s-ntl %s-main-ntl.o " \ +- "$(CPP_PROFOBJS) $(CPP_LIBS)" % (x, x) +- print ++ print("%s-main.o: %s-main.c $(HEADERS)" % (x, x)) ++ print("\t$(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -DNDEBUG -o %s-main.o -c %s-main.c" \ ++ % (x, x)) ++ print() ++ print("%s: %s-main.o $(PROFOBJS)" % (x, x)) ++ print("\t$(CC) $(CFLAGS) $(LDFLAGS) -o %s %s-main.o $(PROFOBJS) $(LIBS)" \ ++ % (x, x)) ++ print() ++ print("%s-main-ntl.o: %s-main.c $(HEADERS)" % (x, x)) ++ print("\t$(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -DPROFILE_NTL -DNDEBUG " \ ++ "-o %s-main-ntl.o -c %s-main.c" % (x, x)) ++ print() ++ print("%s-ntl: %s-main-ntl.o $(CPP_PROFOBJS)" % (x, x)) ++ print("\t$(CXX) $(CXXFLAGS) $(LDFLAGS) -o %s-ntl %s-main-ntl.o " \ ++ "$(CPP_PROFOBJS) $(CPP_LIBS)" % (x, x)) ++ print() + +-print +-print +-print "##### tuning utility" +-print +-print "tune/tune: $(TUNEOBJS)" +-print "\t$(CC) $(CFLAGS) $(LDFLAGS) -o tune/tune $(TUNEOBJS) $(LIBS)" ++print() ++print() ++print("##### tuning utility") ++print() ++print("tune/tune: $(TUNEOBJS)") ++print("\t$(CC) $(CFLAGS) $(LDFLAGS) -o tune/tune $(TUNEOBJS) $(LIBS)") + + +-print +-print +-print "##### demo programs" ++print() ++print() ++print("##### demo programs") + for x in demo_progs: +- print +- print "%s: %s.o $(LIBOBJS)" % (x, x) +- print "\t$(CC) $(CFLAGS) $(LDFLAGS) -o %s %s.o $(LIBOBJS) $(LIBS)" % (x, x) ++ print() ++ print("%s: %s.o $(LIBOBJS)" % (x, x)) ++ print("\t$(CC) $(CFLAGS) $(LDFLAGS) -o %s %s.o $(LIBOBJS) $(LIBS)" % (x, x)) + + +-print +-print +-print "##### object files (with debug code)" ++print() ++print() ++print("##### object files (with debug code)") + for x in lib_modules + test_modules + testprof_modules + demo_progs: +- print +- print "%s-DEBUG.o: %s.c $(HEADERS)" % (x, x) +- print "\t$(CC) -g $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -DDEBUG -o %s-DEBUG.o -c %s.c" \ +- % (x, x) ++ print() ++ print("%s-DEBUG.o: %s.c $(HEADERS)" % (x, x)) ++ print("\t$(CC) -g $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -DDEBUG -o %s-DEBUG.o -c %s.c" \ ++ % (x, x)) + +-print +-print +-print "##### object files (no debug code)" ++print() ++print() ++print("##### object files (no debug code)") + for x in lib_modules + prof_modules + testprof_modules + \ + tune_modules + demo_progs: +- print +- print "%s.o: %s.c $(HEADERS)" % (x, x) +- print "\t$(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -DNDEBUG -o %s.o -c %s.c" % (x, x) ++ print() ++ print("%s.o: %s.c $(HEADERS)" % (x, x)) ++ print("\t$(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -DNDEBUG -o %s.o -c %s.c" % (x, x)) + +-print +-print +-print "##### object files (C++, no debug code)" ++print() ++print() ++print("##### object files (C++, no debug code)") + for x in cpp_prof_modules: +- print +- print "%s.o: %s.c $(HEADERS)" % (x, x) +- print "\t$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(CPP_INCLUDES) -DNDEBUG -o %s.o -c %s.c" \ +- % (x, x) ++ print() ++ print("%s.o: %s.c $(HEADERS)" % (x, x)) ++ print("\t$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(CPP_INCLUDES) -DNDEBUG -o %s.o -c %s.c" \ ++ % (x, x)) + + + ### end of file diff --git a/zn_poly.spec b/zn_poly.spec index 74c6f7b..a47db6c 100644 --- a/zn_poly.spec +++ b/zn_poly.spec @@ -1,16 +1,21 @@ Name: zn_poly -Version: 0.9 -Release: 19%{?dist}.2 +Version: 0.9.1 +Release: 1%{?dist} Summary: C library for polynomial arithmetic Group: Development/Libraries -# see COPYING to see, which file has which license +# All files released under "GPLv2 or GPLv3", except: +# - include/wide_arith.h is part LGPLv2+ and part GPLv2+ +# - include/profiler.h is part GPLv2+ License: (GPLv2 or GPLv3) and GPLv2+ and LGPLv2+ -URL: http://cims.nyu.edu/~harvey/code/zn_poly/ -Source0: http://cims.nyu.edu/~harvey/code/zn_poly/releases/zn_poly-%{version}.tar.gz +URL: https://gitlab.com/sagemath/%{name} +Source0: https://gitlab.com/sagemath/%{name}/-/archive/%{version}/%{name}-%{version}.tar.bz2 +# Adapt the makefile generator to python 3 +Patch0: %{name}-python3.patch -BuildRequires: python2 +BuildRequires: gcc BuildRequires: gmp-devel +BuildRequires: python3 %description zn_poly is a C library for polynomial arithmetic in Z/nZ[x], where n is @@ -21,6 +26,7 @@ any modulus that fits into an unsigned long. Summary: Development files for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} + %description devel zn_poly is a C library for polynomial arithmetic in Z/nZ[x], where n is any modulus that fits into an unsigned long. @@ -40,23 +46,21 @@ This package contains the static library. %prep -%setup -q +%autosetup -p0 sed -i "s|typedef unsigned long ulong;|\/\/typedef unsigned long ulong;|g" include/zn_poly.h %build -python makemakefile.py --cflags="%{optflags} -fPIC" --prefix=%{_prefix} \ +python3 makemakefile.py --cflags="%{optflags} -fPIC" --prefix=%{_prefix} \ --gmp-prefix=%{_prefix} \ - --ntl-prefix=%{_prefix} \ - --flint-prefix=%{_prefix} \ + --disable-tuning \ > makefile make all libzn_poly.so libzn_poly-%{version}.so %{?_smp_mflags} %install -rm -rf %{buildroot} # install manually, because makefile does not honor DESTDIR mkdir -p %{buildroot}%{_includedir}/zn_poly/ mkdir -p %{buildroot}%{_libdir} @@ -74,15 +78,14 @@ make test ./test/test all -%post -p /sbin/ldconfig -%postun -p /sbin/ldconfig - +%ldconfig_scriptlets %files %doc COPYING gpl-?.0.txt %doc demo/bernoulli/bernoulli.c doc/REFERENCES %{_libdir}/libzn_poly-%{version}.so +%{_libdir}/libzn_poly-0.9.so %files devel @@ -95,6 +98,12 @@ make test %changelog +* Mon Oct 8 2018 Jerry James - 0.9.1-1 +- Switch to sagemath gitlab repository URLs +- New 0.9.1 release +- Use python3 instead of python2 to generate the makefile +- Minor specfile cleanups for recent guidelines changes + * Sat Jul 14 2018 Fedora Release Engineering - 0.9-19.2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild From 1c58c76079a00ff6fd446d359ca2236f661f592a Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 28 Jan 2019 20:18:32 +0100 Subject: [PATCH 05/20] Remove obsolete Group tag References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag --- zn_poly.spec | 3 --- 1 file changed, 3 deletions(-) diff --git a/zn_poly.spec b/zn_poly.spec index a47db6c..7f71504 100644 --- a/zn_poly.spec +++ b/zn_poly.spec @@ -3,7 +3,6 @@ Version: 0.9.1 Release: 1%{?dist} Summary: C library for polynomial arithmetic -Group: Development/Libraries # All files released under "GPLv2 or GPLv3", except: # - include/wide_arith.h is part LGPLv2+ and part GPLv2+ # - include/profiler.h is part GPLv2+ @@ -24,7 +23,6 @@ any modulus that fits into an unsigned long. %package devel Summary: Development files for %{name} -Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel @@ -36,7 +34,6 @@ This package contains the development files. %package static Summary: Development files for %{name} -Group: Development/Libraries Requires: %{name}-devel = %{version}-%{release} %description static zn_poly is a C library for polynomial arithmetic in Z/nZ[x], where n is From e007d722322ac70200d127cae56170248bb1e7c4 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sun, 3 Feb 2019 13:13:51 +0000 Subject: [PATCH 06/20] - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- zn_poly.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zn_poly.spec b/zn_poly.spec index 7f71504..dd7990f 100644 --- a/zn_poly.spec +++ b/zn_poly.spec @@ -1,6 +1,6 @@ Name: zn_poly Version: 0.9.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: C library for polynomial arithmetic # All files released under "GPLv2 or GPLv3", except: @@ -95,6 +95,9 @@ make test %changelog +* Sun Feb 03 2019 Fedora Release Engineering - 0.9.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Mon Oct 8 2018 Jerry James - 0.9.1-1 - Switch to sagemath gitlab repository URLs - New 0.9.1 release From 34ce2c3aca0a50c578a43728d2b0dd48862ea9e0 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 27 Jul 2019 05:03:42 +0000 Subject: [PATCH 07/20] - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- zn_poly.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zn_poly.spec b/zn_poly.spec index dd7990f..2473b3e 100644 --- a/zn_poly.spec +++ b/zn_poly.spec @@ -1,6 +1,6 @@ Name: zn_poly Version: 0.9.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: C library for polynomial arithmetic # All files released under "GPLv2 or GPLv3", except: @@ -95,6 +95,9 @@ make test %changelog +* Sat Jul 27 2019 Fedora Release Engineering - 0.9.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + * Sun Feb 03 2019 Fedora Release Engineering - 0.9.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild From 23d9841756081d7615969725dd348c5d2485247f Mon Sep 17 00:00:00 2001 From: Jerry James Date: Mon, 6 Jan 2020 20:53:22 -0700 Subject: [PATCH 08/20] Version 0.9.2. Also: - Drop upstreamed -python3 patch. - Link with Fedora flags. --- sources | 2 +- zn_poly-python3.patch | 397 ------------------------------------------ zn_poly.rpmlintrc | 8 + zn_poly.spec | 20 +-- 4 files changed, 19 insertions(+), 408 deletions(-) delete mode 100644 zn_poly-python3.patch create mode 100644 zn_poly.rpmlintrc diff --git a/sources b/sources index bb89e7e..1b75439 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (zn_poly-0.9.1.tar.bz2) = 9c9d4b0f6b64be06802403a4cc1ec3ffd64dd450c3604179ea8661a10cc69b06a893dec48a8d1804ecf6194275358eda6e54a203ee70b1208ba7cc2b4dc83b5c +SHA512 (zn_poly-0.9.2.tar.bz2) = b7017a21f72d1467238c686680cbd8385a7166d3c9d2441728a51d61e3d3de2794114fc70b00e4c1bf1b40a6a5b978decd2c25caa53270252c2fad337754e015 diff --git a/zn_poly-python3.patch b/zn_poly-python3.patch deleted file mode 100644 index cc8ab2a..0000000 --- a/zn_poly-python3.patch +++ /dev/null @@ -1,397 +0,0 @@ ---- makemakefile.py.orig 2018-10-04 03:54:49.000000000 -0600 -+++ makemakefile.py 2018-10-07 20:53:52.853013713 -0600 -@@ -147,213 +147,213 @@ cpp_libs = libs + " -L" + ntl_lib_dir + - - import time - --print "#" --print "# Do not edit directly -- this file was auto-generated" --print "# by makemakefile.py on " + time.strftime("%a, %d %b %Y %H:%M:%S +0000", -- time.gmtime()) --print "#" --print "# (makemakefile.py patched for Sage, 04/2012)" --print -+print("#") -+print("# Do not edit directly -- this file was auto-generated") -+print("# by makemakefile.py on " + time.strftime("%a, %d %b %Y %H:%M:%S +0000", -+ time.gmtime())) -+print("#") -+print("# (makemakefile.py patched for Sage, 04/2012)") -+print() - --print --print "CC ?= gcc" --print "CPP ?= cpp" --print "CFLAGS = " + cflags --print "CPPFLAGS = " + cppflags --print "LDFLAGS = " + ldflags --print "INCLUDES = " + includes # These are options to the C preprocessor. --print "LIBS = " + libs # These are linker options passed to the compiler. --print --print "AR ?= ar" --print "RANLIB ?= ranlib" --print --print "SHARED_FLAG ?= -shared" --print "SONAME_FLAG ?= -soname" # '-h' for the Sun/Solaris linker -+print() -+print("CC ?= gcc") -+print("CPP ?= cpp") -+print("CFLAGS = " + cflags) -+print("CPPFLAGS = " + cppflags) -+print("LDFLAGS = " + ldflags) -+print("INCLUDES = " + includes) # These are options to the C preprocessor. -+print("LIBS = " + libs) # These are linker options passed to the compiler. -+print() -+print("AR ?= ar") -+print("RANLIB ?= ranlib") -+print() -+print("SHARED_FLAG ?= -shared") -+print("SONAME_FLAG ?= -soname") # '-h' for the Sun/Solaris linker - --print --print "CXX ?= g++" # The C++ compiler. --print "CXXFLAGS = " + cxxflags # Options passed to the C++ compiler. --print "CPP_INCLUDES = " + cpp_includes --print "CPP_LIBS = " + cpp_libs -+print() -+print("CXX ?= g++") # The C++ compiler. -+print("CXXFLAGS = " + cxxflags) # Options passed to the C++ compiler. -+print("CPP_INCLUDES = " + cpp_includes) -+print("CPP_LIBS = " + cpp_libs) - --print --print "HEADERS = " + " ".join(install_headers + other_headers) --print "LIBOBJS = " + " ".join([x + ".o" for x in lib_modules]) --print "TESTOBJS = " + " ".join([x + "-DEBUG.o" for x in -- lib_modules + test_modules + testprof_modules]) --print "PROFOBJS = " + " ".join([x + ".o" for x in -- lib_modules + prof_modules + noncpp_prof_modules + testprof_modules]) --print "CPP_PROFOBJS = " + " ".join([x + ".o" for x in -- lib_modules + prof_modules + cpp_prof_modules + testprof_modules]) --print "TUNEOBJS = " + " ".join([x + ".o" for x in -+print() -+print("HEADERS = " + " ".join(install_headers + other_headers)) -+print("LIBOBJS = " + " ".join([x + ".o" for x in lib_modules])) -+print("TESTOBJS = " + " ".join([x + "-DEBUG.o" for x in -+ lib_modules + test_modules + testprof_modules])) -+print("PROFOBJS = " + " ".join([x + ".o" for x in -+ lib_modules + prof_modules + noncpp_prof_modules + testprof_modules])) -+print("CPP_PROFOBJS = " + " ".join([x + ".o" for x in -+ lib_modules + prof_modules + cpp_prof_modules + testprof_modules])) -+print("TUNEOBJS = " + " ".join([x + ".o" for x in - lib_modules + tune_modules + testprof_modules + prof_modules + -- noncpp_prof_modules if x not in ("src/tuning", "profile/prof_main")]) --print "ZN_POLY_TUNING = " + str(int(zn_poly_tuning)) --print "ZN_POLY_VERSION = " + version --print "ZN_POLY_ABI_VERSION = " + abi_version -+ noncpp_prof_modules if x not in ("src/tuning", "profile/prof_main")])) -+print("ZN_POLY_TUNING = " + str(int(zn_poly_tuning))) -+print("ZN_POLY_VERSION = " + version) -+print("ZN_POLY_ABI_VERSION = " + abi_version) - --print --print "all: libzn_poly.a" --print --print "test: test/test" --print "tune: tune/tune" --print --print "check: test" --print "\ttest/test -quick all" --print --print "install:" --print "\tmkdir -p %s/include/zn_poly" % prefix --print "\tmkdir -p %s/lib" % prefix --print "\tcp libzn_poly.a %s/lib" % prefix --print "\tcp include/zn_poly.h %s/include/zn_poly" % prefix --print "\tcp include/wide_arith.h %s/include/zn_poly" % prefix --print --print "clean:" --print "\trm -f *.o" --print "\trm -f test/*.o" --print "\trm -f profile/*.o" --print "\trm -f tune/*.o" --print "\trm -f src/tuning.c" --print "\trm -f src/*.o" --print "\trm -f demo/bernoulli/*.o" --print "\trm -f libzn_poly.a" --print "\trm -f libzn_poly.dylib" --print "\trm -f libzn_poly*.so*" --print "\trm -f libzn_poly*.dll.a" --print "\trm -f cygzn_poly.dll" --print "\trm -f test/test" --print "\trm -f tune/tune" -+print() -+print("all: libzn_poly.a") -+print() -+print("test: test/test") -+print("tune: tune/tune") -+print() -+print("check: test") -+print("\ttest/test -quick all") -+print() -+print("install:") -+print("\tmkdir -p %s/include/zn_poly" % prefix) -+print("\tmkdir -p %s/lib" % prefix) -+print("\tcp libzn_poly.a %s/lib" % prefix) -+print("\tcp include/zn_poly.h %s/include/zn_poly" % prefix) -+print("\tcp include/wide_arith.h %s/include/zn_poly" % prefix) -+print() -+print("clean:") -+print("\trm -f *.o") -+print("\trm -f test/*.o") -+print("\trm -f profile/*.o") -+print("\trm -f tune/*.o") -+print("\trm -f src/tuning.c") -+print("\trm -f src/*.o") -+print("\trm -f demo/bernoulli/*.o") -+print("\trm -f libzn_poly.a") -+print("\trm -f libzn_poly.dylib") -+print("\trm -f libzn_poly*.so*") -+print("\trm -f libzn_poly*.dll.a") -+print("\trm -f cygzn_poly.dll") -+print("\trm -f test/test") -+print("\trm -f tune/tune") - for x in prof_progs: -- print "\trm -f " + x -- print "\trm -f " + x + "-ntl" -+ print("\trm -f " + x) -+ print("\trm -f " + x + "-ntl") - for x in demo_progs: -- print "\trm -f " + x --print --print "distclean: clean" --print "\trm -f makefile" --print --print "dist: distclean" --print "\ttar --exclude-vcs --exclude=.gitignore -czf zn_poly-$(ZN_POLY_VERSION).tar.gz *" -+ print("\trm -f " + x) -+print() -+print("distclean: clean") -+print("\trm -f makefile") -+print() -+print("dist: distclean") -+print("\ttar --exclude-vcs --exclude=.gitignore -czf zn_poly-$(ZN_POLY_VERSION).tar.gz *") - - --print --print --print "##### library targets" --print --print "ifeq ($(ZN_POLY_TUNING), 1)" --print "src/tuning.c: tune/tune" --print "\ttune/tune > src/tuning.c" --print "else" --print "src/tuning.c: tune/tuning.c" --print "\tcp tune/tuning.c src/tuning.c" --print "endif" --print --print "libzn_poly.a: $(LIBOBJS)" --print "\t$(AR) -r libzn_poly.a $(LIBOBJS)" --print "\t$(RANLIB) libzn_poly.a" --print --print "# TODO: Put '-single_module -fPIC -dynamiclib' into $(SHARED_FLAG)" --print "# and use that; also support $(SO_EXTENSION)..." --print "libzn_poly.dylib: $(LIBOBJS)" --print "\t$(CC) $(LDFLAGS) -single_module -fPIC -dynamiclib -o libzn_poly.dylib " \ -- "$(LIBOBJS) $(LIBS)" --print --print "# Left for compatibility with previous versions of Sage's 'spkg-install':" --print "libzn_poly.dylib64: $(LIBOBJS)" --print "\t$(CC) -m64 -single_module -fPIC -dynamiclib -o libzn_poly.dylib $(LIBOBJS) $(LIBS)" --print --print "cygzn_poly.dll: $(LIBOBJS)" --print "\t$(CC) $(SHARED_FLAG) $(LDFLAGS) " \ -+print() -+print() -+print("##### library targets") -+print() -+print("ifeq ($(ZN_POLY_TUNING), 1)") -+print("src/tuning.c: tune/tune") -+print("\ttune/tune > src/tuning.c") -+print("else") -+print("src/tuning.c: tune/tuning.c") -+print("\tcp tune/tuning.c src/tuning.c") -+print("endif") -+print() -+print("libzn_poly.a: $(LIBOBJS)") -+print("\t$(AR) -r libzn_poly.a $(LIBOBJS)") -+print("\t$(RANLIB) libzn_poly.a") -+print() -+print("# TODO: Put '-single_module -fPIC -dynamiclib' into $(SHARED_FLAG)") -+print("# and use that; also support $(SO_EXTENSION)...") -+print("libzn_poly.dylib: $(LIBOBJS)") -+print("\t$(CC) $(LDFLAGS) -single_module -fPIC -dynamiclib -o libzn_poly.dylib " \ -+ "$(LIBOBJS) $(LIBS)") -+print() -+print("# Left for compatibility with previous versions of Sage's 'spkg-install':") -+print("libzn_poly.dylib64: $(LIBOBJS)") -+print("\t$(CC) -m64 -single_module -fPIC -dynamiclib -o libzn_poly.dylib $(LIBOBJS) $(LIBS)") -+print() -+print("cygzn_poly.dll: $(LIBOBJS)") -+print("\t$(CC) $(SHARED_FLAG) $(LDFLAGS) " \ - "-Wl,--out-implib,libzn_poly-$(ZN_POLY_VERSION).dll.a " \ -- "-o cygzn_poly.dll $(LIBOBJS) $(LIBS)" --print --print "libzn_poly-$(ZN_POLY_VERSION).dll.a: cygzn_poly.dll" --print --print "libzn_poly.dll.a: libzn_poly-$(ZN_POLY_VERSION).dll.a" --print "\tln -sf libzn_poly-$(ZN_POLY_VERSION).dll.a libzn_poly.dll.a" --print "\tln -sf libzn_poly-$(ZN_POLY_VERSION).dll.a libzn_poly-$(ZN_POLY_ABI_VERSION).dll.a" --print --print "libzn_poly.so: libzn_poly-$(ZN_POLY_VERSION).so" --print "\tln -sf libzn_poly-$(ZN_POLY_VERSION).so libzn_poly.so" --print "\tln -sf libzn_poly-$(ZN_POLY_VERSION).so libzn_poly-$(ZN_POLY_ABI_VERSION).so" -+ "-o cygzn_poly.dll $(LIBOBJS) $(LIBS)") -+print() -+print("libzn_poly-$(ZN_POLY_VERSION).dll.a: cygzn_poly.dll") -+print() -+print("libzn_poly.dll.a: libzn_poly-$(ZN_POLY_VERSION).dll.a") -+print("\tln -sf libzn_poly-$(ZN_POLY_VERSION).dll.a libzn_poly.dll.a") -+print("\tln -sf libzn_poly-$(ZN_POLY_VERSION).dll.a libzn_poly-$(ZN_POLY_ABI_VERSION).dll.a") -+print() -+print("libzn_poly.so: libzn_poly-$(ZN_POLY_VERSION).so") -+print("\tln -sf libzn_poly-$(ZN_POLY_VERSION).so libzn_poly.so") -+print("\tln -sf libzn_poly-$(ZN_POLY_VERSION).so libzn_poly-$(ZN_POLY_ABI_VERSION).so") - --print --print "libzn_poly-$(ZN_POLY_VERSION).so: $(LIBOBJS)" --print "\t$(CC) $(SHARED_FLAG) $(LDFLAGS) -Wl,-soname,libzn_poly-$(ZN_POLY_ABI_VERSION).so " \ -- "-o libzn_poly-$(ZN_POLY_VERSION).so $(LIBOBJS) $(LIBS)" -+print() -+print("libzn_poly-$(ZN_POLY_VERSION).so: $(LIBOBJS)") -+print("\t$(CC) $(SHARED_FLAG) $(LDFLAGS) -Wl,-soname,libzn_poly-$(ZN_POLY_ABI_VERSION).so " \ -+ "-o libzn_poly-$(ZN_POLY_VERSION).so $(LIBOBJS) $(LIBS)") - --print --print --print "##### test program" --print --print "test/test: $(TESTOBJS) $(HEADERS)" --print "\t$(CC) -g $(LDFLAGS) -o test/test $(TESTOBJS) $(LIBS)" -+print() -+print() -+print("##### test program") -+print() -+print("test/test: $(TESTOBJS) $(HEADERS)") -+print("\t$(CC) -g $(LDFLAGS) -o test/test $(TESTOBJS) $(LIBS)") - --print --print --print "##### profiling programs" --print -+print() -+print() -+print("##### profiling programs") -+print() - for x in prof_progs: -- print "%s-main.o: %s-main.c $(HEADERS)" % (x, x) -- print "\t$(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -DNDEBUG -o %s-main.o -c %s-main.c" \ -- % (x, x) -- print -- print "%s: %s-main.o $(PROFOBJS)" % (x, x) -- print "\t$(CC) $(CFLAGS) $(LDFLAGS) -o %s %s-main.o $(PROFOBJS) $(LIBS)" \ -- % (x, x) -- print -- print "%s-main-ntl.o: %s-main.c $(HEADERS)" % (x, x) -- print "\t$(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -DPROFILE_NTL -DNDEBUG " \ -- "-o %s-main-ntl.o -c %s-main.c" % (x, x) -- print -- print "%s-ntl: %s-main-ntl.o $(CPP_PROFOBJS)" % (x, x) -- print "\t$(CXX) $(CXXFLAGS) $(LDFLAGS) -o %s-ntl %s-main-ntl.o " \ -- "$(CPP_PROFOBJS) $(CPP_LIBS)" % (x, x) -- print -+ print("%s-main.o: %s-main.c $(HEADERS)" % (x, x)) -+ print("\t$(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -DNDEBUG -o %s-main.o -c %s-main.c" \ -+ % (x, x)) -+ print() -+ print("%s: %s-main.o $(PROFOBJS)" % (x, x)) -+ print("\t$(CC) $(CFLAGS) $(LDFLAGS) -o %s %s-main.o $(PROFOBJS) $(LIBS)" \ -+ % (x, x)) -+ print() -+ print("%s-main-ntl.o: %s-main.c $(HEADERS)" % (x, x)) -+ print("\t$(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -DPROFILE_NTL -DNDEBUG " \ -+ "-o %s-main-ntl.o -c %s-main.c" % (x, x)) -+ print() -+ print("%s-ntl: %s-main-ntl.o $(CPP_PROFOBJS)" % (x, x)) -+ print("\t$(CXX) $(CXXFLAGS) $(LDFLAGS) -o %s-ntl %s-main-ntl.o " \ -+ "$(CPP_PROFOBJS) $(CPP_LIBS)" % (x, x)) -+ print() - --print --print --print "##### tuning utility" --print --print "tune/tune: $(TUNEOBJS)" --print "\t$(CC) $(CFLAGS) $(LDFLAGS) -o tune/tune $(TUNEOBJS) $(LIBS)" -+print() -+print() -+print("##### tuning utility") -+print() -+print("tune/tune: $(TUNEOBJS)") -+print("\t$(CC) $(CFLAGS) $(LDFLAGS) -o tune/tune $(TUNEOBJS) $(LIBS)") - - --print --print --print "##### demo programs" -+print() -+print() -+print("##### demo programs") - for x in demo_progs: -- print -- print "%s: %s.o $(LIBOBJS)" % (x, x) -- print "\t$(CC) $(CFLAGS) $(LDFLAGS) -o %s %s.o $(LIBOBJS) $(LIBS)" % (x, x) -+ print() -+ print("%s: %s.o $(LIBOBJS)" % (x, x)) -+ print("\t$(CC) $(CFLAGS) $(LDFLAGS) -o %s %s.o $(LIBOBJS) $(LIBS)" % (x, x)) - - --print --print --print "##### object files (with debug code)" -+print() -+print() -+print("##### object files (with debug code)") - for x in lib_modules + test_modules + testprof_modules + demo_progs: -- print -- print "%s-DEBUG.o: %s.c $(HEADERS)" % (x, x) -- print "\t$(CC) -g $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -DDEBUG -o %s-DEBUG.o -c %s.c" \ -- % (x, x) -+ print() -+ print("%s-DEBUG.o: %s.c $(HEADERS)" % (x, x)) -+ print("\t$(CC) -g $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -DDEBUG -o %s-DEBUG.o -c %s.c" \ -+ % (x, x)) - --print --print --print "##### object files (no debug code)" -+print() -+print() -+print("##### object files (no debug code)") - for x in lib_modules + prof_modules + testprof_modules + \ - tune_modules + demo_progs: -- print -- print "%s.o: %s.c $(HEADERS)" % (x, x) -- print "\t$(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -DNDEBUG -o %s.o -c %s.c" % (x, x) -+ print() -+ print("%s.o: %s.c $(HEADERS)" % (x, x)) -+ print("\t$(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -DNDEBUG -o %s.o -c %s.c" % (x, x)) - --print --print --print "##### object files (C++, no debug code)" -+print() -+print() -+print("##### object files (C++, no debug code)") - for x in cpp_prof_modules: -- print -- print "%s.o: %s.c $(HEADERS)" % (x, x) -- print "\t$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(CPP_INCLUDES) -DNDEBUG -o %s.o -c %s.c" \ -- % (x, x) -+ print() -+ print("%s.o: %s.c $(HEADERS)" % (x, x)) -+ print("\t$(CXX) $(CXXFLAGS) $(CPPFLAGS) $(CPP_INCLUDES) -DNDEBUG -o %s.o -c %s.c" \ -+ % (x, x)) - - - ### end of file diff --git a/zn_poly.rpmlintrc b/zn_poly.rpmlintrc new file mode 100644 index 0000000..434d539 --- /dev/null +++ b/zn_poly.rpmlintrc @@ -0,0 +1,8 @@ +# THIS FILE IS FOR WHITELISTING RPMLINT ERRORS AND WARNINGS IN TASKOTRON +# https://fedoraproject.org/wiki/Taskotron/Tasks/dist.rpmlint#Whitelisting_errors + +# The dictionary is missing some technical terms +addFilter(r'W: spelling-error .* (nZ|zn|Zn)') + +# Documentation is in the main package +addFilter(r'zn_poly-(devel|static)\.[^:]+: W: no-documentation') diff --git a/zn_poly.spec b/zn_poly.spec index 2473b3e..cd46111 100644 --- a/zn_poly.spec +++ b/zn_poly.spec @@ -1,6 +1,6 @@ Name: zn_poly -Version: 0.9.1 -Release: 3%{?dist} +Version: 0.9.2 +Release: 1%{?dist} Summary: C library for polynomial arithmetic # All files released under "GPLv2 or GPLv3", except: @@ -9,8 +9,6 @@ Summary: C library for polynomial arithmetic License: (GPLv2 or GPLv3) and GPLv2+ and LGPLv2+ URL: https://gitlab.com/sagemath/%{name} Source0: https://gitlab.com/sagemath/%{name}/-/archive/%{version}/%{name}-%{version}.tar.bz2 -# Adapt the makefile generator to python 3 -Patch0: %{name}-python3.patch BuildRequires: gcc BuildRequires: gmp-devel @@ -54,7 +52,7 @@ python3 makemakefile.py --cflags="%{optflags} -fPIC" --prefix=%{_prefix} \ --disable-tuning \ > makefile -make all libzn_poly.so libzn_poly-%{version}.so %{?_smp_mflags} +%make_build all libzn_poly.so libzn_poly-%{version}.so LDFLAGS="$RPM_LD_FLAGS" %install @@ -67,17 +65,14 @@ cp -pv libzn_poly* %{buildroot}%{_libdir} # make libzn_poly.so a symlink pushd %{buildroot}%{_libdir} rm libzn_poly.so -ln -s libzn_poly-%{version}.so libzn_poly.so +ln -s libzn_poly-0.9.so libzn_poly.so popd %check -make test +make test LDFLAGS="$RPM_LD_FLAGS" ./test/test all -%ldconfig_scriptlets - - %files %doc COPYING gpl-?.0.txt %doc demo/bernoulli/bernoulli.c doc/REFERENCES @@ -95,6 +90,11 @@ make test %changelog +* Mon Jan 6 2020 Jerry James - 0.9.2-1 +- Version 0.9.2 +- Drop upstreamed -python3 patch +- Link with Fedora flags + * Sat Jul 27 2019 Fedora Release Engineering - 0.9.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild From b57a316b7161034a7cb80a46516c12189445ba1b Mon Sep 17 00:00:00 2001 From: Jerry James Date: Mon, 13 Jan 2020 12:01:21 -0700 Subject: [PATCH 09/20] Fix library symlinks. --- zn_poly.spec | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/zn_poly.spec b/zn_poly.spec index cd46111..d30f4e5 100644 --- a/zn_poly.spec +++ b/zn_poly.spec @@ -1,6 +1,6 @@ Name: zn_poly Version: 0.9.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: C library for polynomial arithmetic # All files released under "GPLv2 or GPLv3", except: @@ -60,13 +60,10 @@ python3 makemakefile.py --cflags="%{optflags} -fPIC" --prefix=%{_prefix} \ mkdir -p %{buildroot}%{_includedir}/zn_poly/ mkdir -p %{buildroot}%{_libdir} cp -pv include/*.h %{buildroot}%{_includedir}/zn_poly/ -cp -pv libzn_poly* %{buildroot}%{_libdir} - -# make libzn_poly.so a symlink -pushd %{buildroot}%{_libdir} -rm libzn_poly.so -ln -s libzn_poly-0.9.so libzn_poly.so -popd +cp -pv libzn_poly.a %{buildroot}%{_libdir} +cp -pv libzn_poly-%{version}.so %{buildroot}%{_libdir} +ln -s libzn_poly-%{version}.so %{buildroot}%{_libdir}/libzn_poly-0.9.so +ln -s libzn_poly-0.9.so %{buildroot}%{_libdir}/libzn_poly.so %check make test LDFLAGS="$RPM_LD_FLAGS" @@ -90,6 +87,9 @@ make test LDFLAGS="$RPM_LD_FLAGS" %changelog +* Mon Jan 13 2020 Jerry James - 0.9.2-2 +- Fix library symlinks + * Mon Jan 6 2020 Jerry James - 0.9.2-1 - Version 0.9.2 - Drop upstreamed -python3 patch From 538983e8f033803d41bc15662579394a7fa30300 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 31 Jan 2020 05:22:32 +0000 Subject: [PATCH 10/20] - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- zn_poly.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zn_poly.spec b/zn_poly.spec index d30f4e5..558b885 100644 --- a/zn_poly.spec +++ b/zn_poly.spec @@ -1,6 +1,6 @@ Name: zn_poly Version: 0.9.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: C library for polynomial arithmetic # All files released under "GPLv2 or GPLv3", except: @@ -87,6 +87,9 @@ make test LDFLAGS="$RPM_LD_FLAGS" %changelog +* Fri Jan 31 2020 Fedora Release Engineering - 0.9.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + * Mon Jan 13 2020 Jerry James - 0.9.2-2 - Fix library symlinks From 47d890aaf3d1cda1529281a158488661189355df Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 29 Jul 2020 15:26:15 +0000 Subject: [PATCH 11/20] - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- zn_poly.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zn_poly.spec b/zn_poly.spec index 558b885..f787c51 100644 --- a/zn_poly.spec +++ b/zn_poly.spec @@ -1,6 +1,6 @@ Name: zn_poly Version: 0.9.2 -Release: 3%{?dist} +Release: 4%{?dist} Summary: C library for polynomial arithmetic # All files released under "GPLv2 or GPLv3", except: @@ -87,6 +87,9 @@ make test LDFLAGS="$RPM_LD_FLAGS" %changelog +* Wed Jul 29 2020 Fedora Release Engineering - 0.9.2-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Fri Jan 31 2020 Fedora Release Engineering - 0.9.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild From 2b863ef95243ea4e6c8dd8d4d4d48356bfe89e6e Mon Sep 17 00:00:00 2001 From: Jerry James Date: Mon, 9 Nov 2020 21:39:35 -0700 Subject: [PATCH 12/20] Explicitly BR make. --- zn_poly.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/zn_poly.spec b/zn_poly.spec index f787c51..c3b431f 100644 --- a/zn_poly.spec +++ b/zn_poly.spec @@ -12,6 +12,7 @@ Source0: https://gitlab.com/sagemath/%{name}/-/archive/%{version}/%{name} BuildRequires: gcc BuildRequires: gmp-devel +BuildRequires: make BuildRequires: python3 %description From 4d6efa539e1ae547307a72f031fd369325e1547f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 28 Jan 2021 00:44:53 +0000 Subject: [PATCH 13/20] - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- zn_poly.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zn_poly.spec b/zn_poly.spec index c3b431f..f99414d 100644 --- a/zn_poly.spec +++ b/zn_poly.spec @@ -1,6 +1,6 @@ Name: zn_poly Version: 0.9.2 -Release: 4%{?dist} +Release: 5%{?dist} Summary: C library for polynomial arithmetic # All files released under "GPLv2 or GPLv3", except: @@ -88,6 +88,9 @@ make test LDFLAGS="$RPM_LD_FLAGS" %changelog +* Thu Jan 28 2021 Fedora Release Engineering - 0.9.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + * Wed Jul 29 2020 Fedora Release Engineering - 0.9.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild From 50f0878a283acb960ac76da7d67ad6662d91e3d4 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 23 Jul 2021 22:21:18 +0000 Subject: [PATCH 14/20] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- zn_poly.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zn_poly.spec b/zn_poly.spec index f99414d..f625201 100644 --- a/zn_poly.spec +++ b/zn_poly.spec @@ -1,6 +1,6 @@ Name: zn_poly Version: 0.9.2 -Release: 5%{?dist} +Release: 6%{?dist} Summary: C library for polynomial arithmetic # All files released under "GPLv2 or GPLv3", except: @@ -88,6 +88,9 @@ make test LDFLAGS="$RPM_LD_FLAGS" %changelog +* Fri Jul 23 2021 Fedora Release Engineering - 0.9.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + * Thu Jan 28 2021 Fedora Release Engineering - 0.9.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild From 69b9c317ac9283b02320d2c222ce8c59a006584d Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 22 Jan 2022 05:54:56 +0000 Subject: [PATCH 15/20] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- zn_poly.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zn_poly.spec b/zn_poly.spec index f625201..5a44623 100644 --- a/zn_poly.spec +++ b/zn_poly.spec @@ -1,6 +1,6 @@ Name: zn_poly Version: 0.9.2 -Release: 6%{?dist} +Release: 7%{?dist} Summary: C library for polynomial arithmetic # All files released under "GPLv2 or GPLv3", except: @@ -88,6 +88,9 @@ make test LDFLAGS="$RPM_LD_FLAGS" %changelog +* Sat Jan 22 2022 Fedora Release Engineering - 0.9.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Fri Jul 23 2021 Fedora Release Engineering - 0.9.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild From d2eab2fef466b7aac37185fb80e8d8d7ee51d67a Mon Sep 17 00:00:00 2001 From: Jerry James Date: Tue, 19 Jul 2022 16:11:27 -0600 Subject: [PATCH 16/20] Add README.md. --- README.md | 5 +++++ zn_poly.rpmlintrc | 8 -------- 2 files changed, 5 insertions(+), 8 deletions(-) create mode 100644 README.md delete mode 100644 zn_poly.rpmlintrc diff --git a/README.md b/README.md new file mode 100644 index 0000000..22f8915 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# zn_poly + +[`zn_poly`](https://gitlab.com/sagemath/zn_poly) is a C library for polynomial +arithmetic in `Z/nZ[x]`, where `n` is any modulus that fits into an unsigned +long. diff --git a/zn_poly.rpmlintrc b/zn_poly.rpmlintrc deleted file mode 100644 index 434d539..0000000 --- a/zn_poly.rpmlintrc +++ /dev/null @@ -1,8 +0,0 @@ -# THIS FILE IS FOR WHITELISTING RPMLINT ERRORS AND WARNINGS IN TASKOTRON -# https://fedoraproject.org/wiki/Taskotron/Tasks/dist.rpmlint#Whitelisting_errors - -# The dictionary is missing some technical terms -addFilter(r'W: spelling-error .* (nZ|zn|Zn)') - -# Documentation is in the main package -addFilter(r'zn_poly-(devel|static)\.[^:]+: W: no-documentation') From ca15622b6c83498b79dcdc89fdec33ca07fc25cb Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 23 Jul 2022 13:58:51 +0000 Subject: [PATCH 17/20] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- zn_poly.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zn_poly.spec b/zn_poly.spec index 5a44623..d9c0c0c 100644 --- a/zn_poly.spec +++ b/zn_poly.spec @@ -1,6 +1,6 @@ Name: zn_poly Version: 0.9.2 -Release: 7%{?dist} +Release: 8%{?dist} Summary: C library for polynomial arithmetic # All files released under "GPLv2 or GPLv3", except: @@ -88,6 +88,9 @@ make test LDFLAGS="$RPM_LD_FLAGS" %changelog +* Sat Jul 23 2022 Fedora Release Engineering - 0.9.2-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Sat Jan 22 2022 Fedora Release Engineering - 0.9.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild From 942d17e6de25da1070d26fc7db6221b5f2107546 Mon Sep 17 00:00:00 2001 From: Jerry James Date: Wed, 14 Dec 2022 16:28:54 -0700 Subject: [PATCH 18/20] Convert License tag to SPDX. --- zn_poly.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/zn_poly.spec b/zn_poly.spec index d9c0c0c..d0f2e0e 100644 --- a/zn_poly.spec +++ b/zn_poly.spec @@ -6,7 +6,7 @@ Summary: C library for polynomial arithmetic # All files released under "GPLv2 or GPLv3", except: # - include/wide_arith.h is part LGPLv2+ and part GPLv2+ # - include/profiler.h is part GPLv2+ -License: (GPLv2 or GPLv3) and GPLv2+ and LGPLv2+ +License: (GPL-2.0-only OR GPL-3.0-only) AND GPL-2.0-or-later AND LGPL-2.1-or-later URL: https://gitlab.com/sagemath/%{name} Source0: https://gitlab.com/sagemath/%{name}/-/archive/%{version}/%{name}-%{version}.tar.bz2 @@ -48,12 +48,12 @@ sed -i "s|typedef unsigned long ulong;|\/\/typedef unsigned long ulong;|g" inc %build -python3 makemakefile.py --cflags="%{optflags} -fPIC" --prefix=%{_prefix} \ +python3 makemakefile.py --cflags="%{build_cflags} -fPIC" --prefix=%{_prefix} \ --gmp-prefix=%{_prefix} \ --disable-tuning \ > makefile -%make_build all libzn_poly.so libzn_poly-%{version}.so LDFLAGS="$RPM_LD_FLAGS" +%make_build all libzn_poly.so libzn_poly-%{version}.so LDFLAGS='%{build_ldflags}' %install @@ -67,7 +67,7 @@ ln -s libzn_poly-%{version}.so %{buildroot}%{_libdir}/libzn_poly-0.9.so ln -s libzn_poly-0.9.so %{buildroot}%{_libdir}/libzn_poly.so %check -make test LDFLAGS="$RPM_LD_FLAGS" +make test LDFLAGS='%{build_ldflags}' ./test/test all @@ -88,6 +88,9 @@ make test LDFLAGS="$RPM_LD_FLAGS" %changelog +* Wed Dec 14 2022 Jerry James - 0.9.2-8 +- Convert License tag to SPDX + * Sat Jul 23 2022 Fedora Release Engineering - 0.9.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild From c6014f1f5cbc543243b91bda7c4270dfd8fac370 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 21 Jan 2023 08:19:29 +0000 Subject: [PATCH 19/20] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- zn_poly.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zn_poly.spec b/zn_poly.spec index d0f2e0e..56f08f6 100644 --- a/zn_poly.spec +++ b/zn_poly.spec @@ -1,6 +1,6 @@ Name: zn_poly Version: 0.9.2 -Release: 8%{?dist} +Release: 9%{?dist} Summary: C library for polynomial arithmetic # All files released under "GPLv2 or GPLv3", except: @@ -88,6 +88,9 @@ make test LDFLAGS='%{build_ldflags}' %changelog +* Sat Jan 21 2023 Fedora Release Engineering - 0.9.2-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Wed Dec 14 2022 Jerry James - 0.9.2-8 - Convert License tag to SPDX From a7351361e231289120123035086a37d44aea26ed Mon Sep 17 00:00:00 2001 From: Jerry James Date: Thu, 23 Mar 2023 08:39:08 -0600 Subject: [PATCH 20/20] Unmaintained upstream and no longer needed by sagemath --- .gitignore | 2 - README.md | 5 -- dead.package | 1 + sources | 1 - zn_poly.spec | 199 --------------------------------------------------- 5 files changed, 1 insertion(+), 207 deletions(-) delete mode 100644 .gitignore delete mode 100644 README.md create mode 100644 dead.package delete mode 100644 sources delete mode 100644 zn_poly.spec diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 62b17f9..0000000 --- a/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/zn_poly-*.tar.gz -/zn_poly-*.tar.bz2 diff --git a/README.md b/README.md deleted file mode 100644 index 22f8915..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# zn_poly - -[`zn_poly`](https://gitlab.com/sagemath/zn_poly) is a C library for polynomial -arithmetic in `Z/nZ[x]`, where `n` is any modulus that fits into an unsigned -long. diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..e65cc51 --- /dev/null +++ b/dead.package @@ -0,0 +1 @@ +Unmaintained upstream and no longer needed by sagemath diff --git a/sources b/sources deleted file mode 100644 index 1b75439..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (zn_poly-0.9.2.tar.bz2) = b7017a21f72d1467238c686680cbd8385a7166d3c9d2441728a51d61e3d3de2794114fc70b00e4c1bf1b40a6a5b978decd2c25caa53270252c2fad337754e015 diff --git a/zn_poly.spec b/zn_poly.spec deleted file mode 100644 index 56f08f6..0000000 --- a/zn_poly.spec +++ /dev/null @@ -1,199 +0,0 @@ -Name: zn_poly -Version: 0.9.2 -Release: 9%{?dist} -Summary: C library for polynomial arithmetic - -# All files released under "GPLv2 or GPLv3", except: -# - include/wide_arith.h is part LGPLv2+ and part GPLv2+ -# - include/profiler.h is part GPLv2+ -License: (GPL-2.0-only OR GPL-3.0-only) AND GPL-2.0-or-later AND LGPL-2.1-or-later -URL: https://gitlab.com/sagemath/%{name} -Source0: https://gitlab.com/sagemath/%{name}/-/archive/%{version}/%{name}-%{version}.tar.bz2 - -BuildRequires: gcc -BuildRequires: gmp-devel -BuildRequires: make -BuildRequires: python3 - -%description -zn_poly is a C library for polynomial arithmetic in Z/nZ[x], where n is -any modulus that fits into an unsigned long. - - -%package devel -Summary: Development files for %{name} -Requires: %{name} = %{version}-%{release} - -%description devel -zn_poly is a C library for polynomial arithmetic in Z/nZ[x], where n is -any modulus that fits into an unsigned long. - -This package contains the development files. - - -%package static -Summary: Development files for %{name} -Requires: %{name}-devel = %{version}-%{release} -%description static -zn_poly is a C library for polynomial arithmetic in Z/nZ[x], where n is -any modulus that fits into an unsigned long. - -This package contains the static library. - - -%prep -%autosetup -p0 - -sed -i "s|typedef unsigned long ulong;|\/\/typedef unsigned long ulong;|g" include/zn_poly.h - - -%build -python3 makemakefile.py --cflags="%{build_cflags} -fPIC" --prefix=%{_prefix} \ - --gmp-prefix=%{_prefix} \ - --disable-tuning \ - > makefile - -%make_build all libzn_poly.so libzn_poly-%{version}.so LDFLAGS='%{build_ldflags}' - - -%install -# install manually, because makefile does not honor DESTDIR -mkdir -p %{buildroot}%{_includedir}/zn_poly/ -mkdir -p %{buildroot}%{_libdir} -cp -pv include/*.h %{buildroot}%{_includedir}/zn_poly/ -cp -pv libzn_poly.a %{buildroot}%{_libdir} -cp -pv libzn_poly-%{version}.so %{buildroot}%{_libdir} -ln -s libzn_poly-%{version}.so %{buildroot}%{_libdir}/libzn_poly-0.9.so -ln -s libzn_poly-0.9.so %{buildroot}%{_libdir}/libzn_poly.so - -%check -make test LDFLAGS='%{build_ldflags}' -./test/test all - - -%files -%doc COPYING gpl-?.0.txt -%doc demo/bernoulli/bernoulli.c doc/REFERENCES -%{_libdir}/libzn_poly-%{version}.so -%{_libdir}/libzn_poly-0.9.so - - -%files devel -%{_libdir}/libzn_poly.so -%{_includedir}/zn_poly/ - - -%files static -%{_libdir}/libzn_poly.a - - -%changelog -* Sat Jan 21 2023 Fedora Release Engineering - 0.9.2-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - -* Wed Dec 14 2022 Jerry James - 0.9.2-8 -- Convert License tag to SPDX - -* Sat Jul 23 2022 Fedora Release Engineering - 0.9.2-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Sat Jan 22 2022 Fedora Release Engineering - 0.9.2-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Fri Jul 23 2021 Fedora Release Engineering - 0.9.2-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Thu Jan 28 2021 Fedora Release Engineering - 0.9.2-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Wed Jul 29 2020 Fedora Release Engineering - 0.9.2-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Fri Jan 31 2020 Fedora Release Engineering - 0.9.2-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Mon Jan 13 2020 Jerry James - 0.9.2-2 -- Fix library symlinks - -* Mon Jan 6 2020 Jerry James - 0.9.2-1 -- Version 0.9.2 -- Drop upstreamed -python3 patch -- Link with Fedora flags - -* Sat Jul 27 2019 Fedora Release Engineering - 0.9.1-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Sun Feb 03 2019 Fedora Release Engineering - 0.9.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Mon Oct 8 2018 Jerry James - 0.9.1-1 -- Switch to sagemath gitlab repository URLs -- New 0.9.1 release -- Use python3 instead of python2 to generate the makefile -- Minor specfile cleanups for recent guidelines changes - -* Sat Jul 14 2018 Fedora Release Engineering - 0.9-19.2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Sun Mar 18 2018 Iryna Shcherbina - 0.9-18.2 -- Update Python 2 dependency declarations to new packaging standards - (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) - -* Fri Feb 09 2018 Fedora Release Engineering - 0.9-17.2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Thu Aug 03 2017 Fedora Release Engineering - 0.9-16.2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild - -* Thu Jul 27 2017 Fedora Release Engineering - 0.9-15.2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Sat Feb 11 2017 Fedora Release Engineering - 0.9-14.2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Fri Feb 05 2016 Fedora Release Engineering - 0.9-13.2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Fri Jun 19 2015 Fedora Release Engineering - 0.9-12.2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Mon Aug 18 2014 Fedora Release Engineering - 0.9-11.2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild - -* Sat Jun 07 2014 Fedora Release Engineering - 0.9-10.2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Sun Aug 04 2013 Fedora Release Engineering - 0.9-9.2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Fri Feb 15 2013 Fedora Release Engineering - 0.9-8.2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - -* Sun Jul 22 2012 Fedora Release Engineering - 0.9-7.2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - -* Sat Jan 14 2012 Fedora Release Engineering - 0.9-6.2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild - -* Wed Oct 26 2011 Marcela Mašláňová - 0.9-5.2 -- rebuild with new gmp without compat lib - -* Wed Oct 12 2011 Peter Schiffer - 0.9-5.1 -- rebuild with new gmp - -* Wed Feb 09 2011 Fedora Release Engineering - 0.9-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - -* Sun Jun 27 2010 Thomas Spura - 0.9-4 -- revert last change (fix flint instead) - -* Sun Jun 27 2010 Thomas Spura - 0.9-3 -- flint wants to have headers in %%{_includedir}/zn_poly/src/ - -* Sun Jun 27 2010 Thomas Spura - 0.9-2 -- make libzn_poly.so a symlink to libzn_poly-%%{version}.so -- use directly makemakefile.py instead of configure -- preserve timestamps - -* Sat Jun 26 2010 Thomas Spura - 0.9-1 -- initial package