Hello community,

here is the log from the commit of package createrepo_c for openSUSE:Factory 
checked in at 2019-02-28 21:37:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/createrepo_c (Old)
 and      /work/SRC/openSUSE:Factory/.createrepo_c.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "createrepo_c"

Thu Feb 28 21:37:57 2019 rev:7 rq:679785 version:0.12.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/createrepo_c/createrepo_c.changes        
2018-04-06 17:46:44.877557992 +0200
+++ /work/SRC/openSUSE:Factory/.createrepo_c.new.28833/createrepo_c.changes     
2019-02-28 21:37:58.957648126 +0100
@@ -2 +2,35 @@
-Thu Apr  5 15:50:28 UTC 2018 - [email protected]
+Mon Feb  4 12:09:27 UTC 2019 - Neal Gompa <[email protected]>
+
+- Backport fixes from upstream
+  * 0001-zck_end_chunk-returns-number-of-bytes-written-or-1-f.patch
+  * 0002-Add-missing-sentinal.patch
+  * 0003-Fix-misc-test.patch
+
+-------------------------------------------------------------------
+Mon Feb  4 00:01:56 UTC 2019 - Neal Gompa <[email protected]>
+
+- Update to 0.12.0
+  + Add basic support for zchunk metadata
+  + Add support for building wheels to upload to PyPI
+- Drop Python 2 subpackage
+- Enable drpm support
+- Enable zchunk for openSUSE Leap 15.1+ and Tumbleweed
+- Adjust changes entries to use full author identities
+
+-------------------------------------------------------------------
+Wed Aug  1 12:06:35 UTC 2018 - Neal Gompa <[email protected]>
+
+- Update to 0.11.1
+  + Add support for RPMs with large files
+  + Identify Requires(missingok) as Recommends correctly
+  + Enable legacy tags by default
+  + Fix missing packages in mergerepo_c with multiple VR of same name
+  + Add mergerepo_c --repo-prefix-search and --repo-prefix-replace
+  + Build against Python 3 by default for bindings
+- Drop snapshot source service and snapshot tarball
+- Use license macro for license file
+- Drop trailing whitespace
+- Fix comment about drpm support
+
+-------------------------------------------------------------------
+Thu Apr  5 15:50:28 UTC 2018 - Adrian Schröter <[email protected]>
@@ -7 +41 @@
-Wed Feb 21 15:58:06 UTC 2018 - [email protected]
+Wed Feb 21 15:58:06 UTC 2018 - Frank Schreiner <[email protected]>
@@ -15 +49 @@
-Tue Feb 13 11:53:58 UTC 2018 - [email protected]
+Tue Feb 13 11:53:58 UTC 2018 - Tomáš Chvátal <[email protected]>
@@ -20 +54 @@
-Mon Jan 22 11:58:46 UTC 2018 - [email protected]
+Mon Jan 22 11:58:46 UTC 2018 - Tomáš Chvátal <[email protected]>
@@ -29 +63 @@
-Sun Feb 19 12:57:21 UTC 2017 - [email protected]
+Sun Feb 19 12:57:21 UTC 2017 - Neal Gompa <[email protected]>
@@ -34 +68 @@
-Sun Feb 19 02:27:30 UTC 2017 - [email protected]
+Sun Feb 19 02:27:30 UTC 2017 - Neal Gompa <[email protected]>
@@ -39 +73 @@
-Wed Feb  8 17:42:57 UTC 2017 - [email protected]
+Wed Feb  8 17:42:57 UTC 2017 - Neal Gompa <[email protected]>
@@ -48 +82 @@
-Mon Oct 31 13:19:23 UTC 2016 - [email protected]
+Mon Oct 31 13:19:23 UTC 2016 - Frank Schreiner <[email protected]>
@@ -54 +88 @@
-Tue Jul  5 11:03:23 UTC 2016 - [email protected]
+Tue Jul  5 11:03:23 UTC 2016 - Jan Engelhardt <[email protected]>
@@ -59 +93 @@
-Mon Feb  1 04:49:43 UTC 2016 - [email protected]
+Mon Feb  1 04:49:43 UTC 2016 - Neal Gompa <[email protected]>
@@ -64 +98 @@
-Mon Feb  1 04:40:40 UTC 2016 - [email protected]
+Mon Feb  1 04:40:40 UTC 2016 - Neal Gompa <[email protected]>
@@ -69 +103 @@
-Thu Oct 29 14:48:00 UTC 2015 - [email protected]
+Thu Oct 29 14:48:00 UTC 2015 - Neal Gompa <[email protected]>

Old:
----
  _service
  createrepo_c-0.10.0.git20170131.04828e6.tar.gz

New:
----
  0001-zck_end_chunk-returns-number-of-bytes-written-or-1-f.patch
  0002-Add-missing-sentinal.patch
  0003-Fix-misc-test.patch
  createrepo_c-0.12.0.tar.gz

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

Other differences:
------------------
++++++ createrepo_c.spec ++++++
--- /var/tmp/diff_new_pack.7MFn5k/_old  2019-02-28 21:37:59.669647902 +0100
+++ /var/tmp/diff_new_pack.7MFn5k/_new  2019-02-28 21:37:59.673647901 +0100
@@ -1,8 +1,8 @@
 #
 # spec file for package createrepo_c
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
-# Copyright (c) 2015-2017 Neal Gompa <[email protected]>.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 Neal Gompa <[email protected]>.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -13,46 +13,56 @@
 # 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/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+# Enable Python and tests selectively
 %if 0%{?is_opensuse} || 0%{?suse_version} >= 1330
 %bcond_without python3
 %bcond_without tests
 %else
-%define skip_python3 1
 %bcond_with tests
 %bcond_with python3
 %endif
+
+%if ( 0%{?sle_version} || 0%{?suse_version} )
+# Disabled DeltaRPM support for SUSE
+%bcond_with drpm
+%else
+# Enable enhanced DeltaRPM support
+%bcond_without drpm
+%endif
+
+%if (0%{?is_opensuse} && 0%{?sle_version} >= 150100) || 0%{?suse_version} >= 
1550
+%bcond_without zchunk
+%endif
+
+%{!?make_build: %global make_build %{__make} %{?_smp_mflags}}
+
 %define major 0
 %define libname lib%{name}%{major}
 %define devname lib%{name}-devel
-%define version_unconverted 0.10.0.git20170131.04828e6
-# prevent provides from nonstandard paths:
-%global __provides_exclude 
^(%{python_sitearch}/.*\\.so\\|%{python3_sitearch}/.*\\.so)$
-# Enable Python bindings selectively
-%bcond_without python2
-# Enable enhanced DeltaRPM support
-%bcond_with drpm
+
 Name:           createrepo_c
-Version:        0.10.0.git20170131.04828e6
+Version:        0.12.0
 Release:        0
 Summary:        Creates a common metadata repository
 License:        GPL-2.0-or-later
 Group:          System/Packages
-Url:            https://github.com/rpm-software-management/createrepo_c
-Source0:        %{name}-%{version}.tar.gz
-%if 0%{?is_opensuse} || 0%{?suse_version} >= 1330
-BuildRequires:  %{python_module devel}
-%else 
-%if %{with python2}
-BuildRequires:  python-devel
-%endif
+URL:            https://github.com/rpm-software-management/createrepo_c
+Source0:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz
+
+# Backports from upstream
+Patch0001:      0001-zck_end_chunk-returns-number-of-bytes-written-or-1-f.patch
+Patch0002:      0002-Add-missing-sentinal.patch
+Patch0003:      0003-Fix-misc-test.patch
+
 %if %{with python3}
 BuildRequires:  python3-devel
 %endif
+%if 0%{?is_opensuse} || 0%{?suse_version} >= 1330
+BuildRequires:  python-rpm-macros
 %endif
 BuildRequires:  bash-completion
 BuildRequires:  cmake
@@ -66,15 +76,16 @@
 BuildRequires:  libxml2-devel
 BuildRequires:  lzma-devel
 BuildRequires:  openssl-devel
-%if 0%{?is_opensuse} || 0%{?suse_version} >= 1330
-BuildRequires:  python-rpm-macros
-%endif
 BuildRequires:  rpm-devel >= 4.9.0
 BuildRequires:  sqlite3-devel
 BuildRequires:  zlib-devel
-Requires:       %{libname} = %{version}-%{release}
+%if %{with zchunk}
+BuildRequires:  zchunk
+BuildRequires:  zchunk-devel >= 0.9.11
+%endif
+Requires:       %{libname}%{?_isa} = %{version}-%{release}
 %if %{with tests}
-BuildRequires:  %{python_module nose}
+BuildRequires:  python3-nose
 %endif
 %if 0%{?suse_version} >= 1330
 BuildRequires:  bash-completion-devel
@@ -91,7 +102,7 @@
 Provides:       createrepo-implementation
 
 # prevent provides from nonstandard paths:
-%global __provides_exclude 
^(%{python_sitearch}/.*\\.so\\|%{python3_sitearch}/.*\\.so)$
+%global __provides_exclude ^(%{python3_sitearch}/.*\\.so)$
 
 %description
 C implementation of Createrepo.
@@ -113,7 +124,7 @@
 %package -n %{devname}
 Summary:        Library for repodata manipulation
 Group:          Development/Libraries/C and C++
-Requires:       %{libname} = %{version}-%{release}
+Requires:       %{libname}%{?_isa} = %{version}-%{release}
 Requires:       pkgconfig
 Provides:       %{name}-devel = %{version}-%{release}
 
@@ -121,65 +132,42 @@
 This package contains the createrepo_c C library and header files.
 These development files are for easy manipulation with a repodata.
 
-%package -n python2-%{name}
-Summary:        Python 2 bindings for the createrepo_c library
-Group:          Development/Libraries/Python
-Requires:       %{libname} = %{version}-%{release}
-Provides:       python-%{name} = %{version}-%{release}
-
-%description -n python2-createrepo_c
-The python 2 bindings for the createrepo_c library.
-
 %package -n python3-%{name}
 Summary:        Python 3 bindings for the createrepo_c library
 Group:          Development/Libraries/Python
-Requires:       %{libname} = %{version}-%{release}
+Requires:       %{libname}%{?_isa} = %{version}-%{release}
+# Python 2 subpackage is fully dropped
+Obsoletes:      python2-%{name} < 0.12.0
 
-%description -n python3-createrepo_c
-The python 3 bindings for the createrepo_c library.
+%description -n python3-%{name}
+The Python 3 bindings for the createrepo_c library.
 
 %prep
-%setup -q
+%autosetup -p1
+
 # do not hardcode date in the docs
 sed -i -e '/HTML_TIMESTAMP/d' doc/Doxyfile.in.in
 
 %build
 %define __builddir build
 %cmake \
-    -DENABLE_LEGACY_WEAKDEPS=1 \
-    %{!?with_drpm:-DENABLE_DRPM=OFF} \
-    %{!?with_python2:-DENABLE_PYTHON=OFF}
-make %{?_smp_mflags}
-make %{?_smp_mflags} doc-c
-
-%if %{with python3}
-cd ..
-%define __builddir build-py3
-%cmake \
-    -DENABLE_LEGACY_WEAKDEPS=1 \
+    %{!?with_zchunk:-DWITH_ZCHUNK=OFF} \
     %{!?with_drpm:-DENABLE_DRPM=OFF} \
     %{!?with_python3:-DENABLE_PYTHON=OFF} \
     -DPYTHON_DESIRED:str=3
-make %{?_smp_mflags}
-%endif
 
-%check
+%make_build
+%make_build doc-c
+
 %if %{with tests}
+%check
 %define __builddir build
 %ctest
-%if %{with python3}
-%define __builddir build-py3
-%ctest
-%endif
 %endif
 
 %install
 %define __builddir build
 %cmake_install
-%if %{with python3}
-%define __builddir build-py3
-%cmake_install
-%endif
 
 mkdir -p %{buildroot}%{_sysconfdir}/alternatives
 for i in createrepo mergerepo modifyrepo sqliterepo;do
@@ -204,7 +192,7 @@
   --slave %{_mandir}/man8/sqliterepo.8.gz sqliterepo.8.gz 
%{_mandir}/man8/sqliterepo_c.8.gz
 
 %postun
-if [ ! -f %{_bindir}/createrepo_c ];then 
+if [ ! -f %{_bindir}/createrepo_c ]; then
   update-alternatives --remove createrepo %{_bindir}/createrepo_c
 fi
 
@@ -212,8 +200,8 @@
 %postun -n %{libname} -p /sbin/ldconfig
 
 %files
-%defattr(-,root,root)
-%doc README.md COPYING
+%doc README.md
+%license COPYING
 %{_mandir}/man8/createrepo_c.8*
 %{_mandir}/man8/mergerepo_c.8*
 %{_mandir}/man8/modifyrepo_c.8*
@@ -241,29 +229,20 @@
 %ghost %_sysconfdir/alternatives/sqliterepo.8.gz
 
 %files -n %{libname}
-%defattr(-,root,root)
-%doc COPYING
+%license COPYING
 %{_libdir}/libcreaterepo_c.so.%{major}
 %{_libdir}/libcreaterepo_c.so.%{major}.*
 
 %files -n %{devname}
-%defattr(-,root,root)
-%doc build/doc/html COPYING
+%doc build/doc/html
+%license COPYING
 %{_libdir}/libcreaterepo_c.so
 %{_libdir}/pkgconfig/createrepo_c.pc
 %{_includedir}/createrepo_c/
 
-%if %{with python2}
-%files -n python2-%{name}
-%defattr(-,root,root)
-%doc COPYING
-%{python_sitearch}/createrepo_c/
-%endif
-
 %if %{with python3}
 %files -n python3-%{name}
-%defattr(-,root,root)
-%doc COPYING
+%license COPYING
 %{python3_sitearch}/createrepo_c/
 %endif
 

++++++ 0001-zck_end_chunk-returns-number-of-bytes-written-or-1-f.patch ++++++
>From 19af36bcd4984359509deb95e2df83449ce471f6 Mon Sep 17 00:00:00 2001
From: Jonathan Dieter <[email protected]>
Date: Sun, 6 Jan 2019 19:21:04 +0000
Subject: [PATCH 1/3] zck_end_chunk returns number of bytes written or -1 for
 error

Signed-off-by: Jonathan Dieter <[email protected]>
---
 src/compression_wrapper.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compression_wrapper.c b/src/compression_wrapper.c
index 43f213c..e5b58d2 100644
--- a/src/compression_wrapper.c
+++ b/src/compression_wrapper.c
@@ -880,7 +880,7 @@ cr_close(CR_FILE *cr_file, GError **err)
             zckCtx *zck = (zckCtx *) cr_file->FILE;
             ret = CRE_OK;
             if (cr_file->mode == CR_CW_MODE_WRITE) {
-                if(!zck_end_chunk(zck)) {
+                if(zck_end_chunk(zck) < 0) {
                     ret = CRE_ZCK;
                     g_set_error(err, ERR_DOMAIN, CRE_ZCK,
                         "Unable to end final chunk: %s", zck_get_error(zck));
-- 
2.20.1

++++++ 0002-Add-missing-sentinal.patch ++++++
>From 2eb66187dd8ab5840b4c82c18e817d04caa258ca Mon Sep 17 00:00:00 2001
From: Jonathan Dieter <[email protected]>
Date: Tue, 15 Jan 2019 23:23:47 +0000
Subject: [PATCH 2/3] Add missing sentinal

Signed-off-by: Jonathan Dieter <[email protected]>
---
 src/misc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/misc.c b/src/misc.c
index ec8667b..288b0eb 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -1519,7 +1519,7 @@ cr_get_dict_file(const gchar *dir, const gchar *file)
     assert(dict_file);
 
     snprintf(dict_file, strlen(file) + 7, "%s.zdict", file);
-    gchar *full_path = g_build_path("/", dir, dict_file);
+    gchar *full_path = g_build_path("/", dir, dict_file, NULL);
     assert(full_path);
 
     free(dict_file);
-- 
2.20.1

++++++ 0003-Fix-misc-test.patch ++++++
>From ccd8f0ec32b9ca82a727b35fcc8724ea6f6d3556 Mon Sep 17 00:00:00 2001
From: Jonathan Dieter <[email protected]>
Date: Tue, 15 Jan 2019 23:23:58 +0000
Subject: [PATCH 3/3] Fix misc test

Signed-off-by: Jonathan Dieter <[email protected]>
---
 tests/test_misc.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/tests/test_misc.c b/tests/test_misc.c
index 9d528c7..06144a6 100644
--- a/tests/test_misc.c
+++ b/tests/test_misc.c
@@ -531,8 +531,8 @@ compressfile_test_text_file(Copyfiletest *copyfiletest,
     GError *tmp_err = NULL;
 
     g_assert(!g_file_test(copyfiletest->dst_file, G_FILE_TEST_EXISTS));
-    ret = cr_compress_file(TEST_TEXT_FILE, copyfiletest->dst_file,
-                           CR_CW_GZ_COMPRESSION, &tmp_err);
+    ret = cr_compress_file(TEST_TEXT_FILE, &(copyfiletest->dst_file),
+                           CR_CW_GZ_COMPRESSION, NULL, FALSE, &tmp_err);
     g_assert(!tmp_err);
     g_assert_cmpint(ret, ==, CRE_OK);
     g_assert(g_file_test(copyfiletest->dst_file, G_FILE_TEST_IS_REGULAR));
@@ -556,8 +556,9 @@ compressfile_with_stat_test_text_file(Copyfiletest 
*copyfiletest,
     g_assert(!tmp_err);
 
     g_assert(!g_file_test(copyfiletest->dst_file, G_FILE_TEST_EXISTS));
-    ret = cr_compress_file_with_stat(TEST_TEXT_FILE, copyfiletest->dst_file,
-                                     CR_CW_GZ_COMPRESSION, stat, &tmp_err);
+    ret = cr_compress_file_with_stat(TEST_TEXT_FILE, &copyfiletest->dst_file,
+                                     CR_CW_GZ_COMPRESSION, stat, NULL, FALSE,
+                                     &tmp_err);
     g_assert(!tmp_err);
     g_assert_cmpint(ret, ==, CRE_OK);
     g_assert(g_file_test(copyfiletest->dst_file, G_FILE_TEST_IS_REGULAR));
-- 
2.20.1

++++++ createrepo_c-0.10.0.git20170131.04828e6.tar.gz -> 
createrepo_c-0.12.0.tar.gz ++++++
++++ 4319 lines of diff (skipped)


Reply via email to