From dda89d8cce7876b6ca9af23f4dd21e73f1c4741a Mon Sep 17 00:00:00 2001 From: Arjan van de Ven Date: Mon, 16 Jan 2017 14:03:43 +0000 Subject: [PATCH] simplejson: Autospec creation for version 3.10.0 --- Makefile | 2 +- allow_test_failures | 1 - options.conf | 38 ++++++++++++++++++++++++++++++++++++++ release | 2 +- simplejson.spec | 8 +++++--- unit_tests_must_pass | 1 - used_libs | 2 +- 7 files changed, 46 insertions(+), 8 deletions(-) delete mode 100644 allow_test_failures create mode 100644 options.conf delete mode 100644 unit_tests_must_pass diff --git a/Makefile b/Makefile index d5aa275..29db5c9 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ PKG_NAME := simplejson URL := https://github.com/simplejson/simplejson/archive/v3.10.0.tar.gz -ARCHIVES := + include ../common/Makefile.common diff --git a/allow_test_failures b/allow_test_failures deleted file mode 100644 index 0ca9514..0000000 --- a/allow_test_failures +++ /dev/null @@ -1 +0,0 @@ -True diff --git a/options.conf b/options.conf new file mode 100644 index 0000000..31cacb2 --- /dev/null +++ b/options.conf @@ -0,0 +1,38 @@ +[autospec] +# build 32 bit libraries +32bit = false +# allow package to build with test failures +allow_test_failures = true +# unset %build ld_as_needed variable +asneeded = false +# extend flags with '-std=gnu++98 +broken_c++ = false +# disable parallelization during build +broken_parallel_build = false +# set conservative build flags +conservative_flags = false +# pass -ffast-math to compiler +fast-math = false +# optimize build for speed over size +funroll-loops = false +# set flags to smallest -02 flags possible +insecure_build = false +# do not remove static libraries +keepstatic = false +# do not require autostart suepackage +no_autostart = false +# optimize build for size over speed +optimize_size = false +# set profile for pgo +pgo = false +# do not run test suite +skip_tests = false +# configure build for avx2 +use_avx2 = false +# add clang flags +use_clang = false +# configure build for lto +use_lto = false +# require package verification for build +verify_required = false + diff --git a/release b/release index 64bb6b7..e85087a 100644 --- a/release +++ b/release @@ -1 +1 @@ -30 +31 diff --git a/simplejson.spec b/simplejson.spec index 72deda1..f3a4668 100644 --- a/simplejson.spec +++ b/simplejson.spec @@ -4,7 +4,7 @@ # Name : simplejson Version : 3.10.0 -Release : 30 +Release : 31 URL : https://github.com/simplejson/simplejson/archive/v3.10.0.tar.gz Source0 : https://github.com/simplejson/simplejson/archive/v3.10.0.tar.gz Summary : No detailed summary available @@ -38,6 +38,7 @@ python components for the simplejson package. %build export LANG=C +export SOURCE_DATE_EPOCH=1484575422 python2 setup.py build -b py2 python3 setup.py build -b py3 @@ -47,9 +48,10 @@ export https_proxy=http://127.0.0.1:9/ export no_proxy=localhost,127.0.0.1,0.0.0.0 PYTHONPATH=%{buildroot}/usr/lib/python2.7/site-packages python setup.py test %install +export SOURCE_DATE_EPOCH=1484575422 rm -rf %{buildroot} -python2 -tt setup.py build -b py2 install --root=%{buildroot} -python3 -tt setup.py build -b py3 install --root=%{buildroot} +python2 -tt setup.py build -b py2 install --root=%{buildroot} --force +python3 -tt setup.py build -b py3 install --root=%{buildroot} --force %files %defattr(-,root,root,-) diff --git a/unit_tests_must_pass b/unit_tests_must_pass deleted file mode 100644 index 4c31fe2..0000000 --- a/unit_tests_must_pass +++ /dev/null @@ -1 +0,0 @@ -fail:0 diff --git a/used_libs b/used_libs index 505532d..efc5a2d 100644 --- a/used_libs +++ b/used_libs @@ -1,4 +1,4 @@ libc.so.6 libpthread.so.0 libpython2.7.so.1.0 -libpython3.5m.so.1.0 +libpython3.6m.so.1.0