From 55f871a51461e1487f174a6c91d74b425dde007efc6e1e689d5cf2067020a191 Mon Sep 17 00:00:00 2001 From: Frank Schreiner Date: Tue, 3 May 2016 15:16:44 +0000 Subject: [PATCH] updated upstream sources and disabled pyhton support OBS-URL: https://build.opensuse.org/package/show/system:packagemanager/createrepo_c?expand=0&rev=4 --- ...terepo_c-0.10.0.git20160411.72fc9f6.tar.gz | 3 - ...terepo_c-0.10.0.git20160503.7c6fae0.tar.gz | 3 + createrepo_c.spec | 71 +------------------ 3 files changed, 6 insertions(+), 71 deletions(-) delete mode 100644 createrepo_c-0.10.0.git20160411.72fc9f6.tar.gz create mode 100644 createrepo_c-0.10.0.git20160503.7c6fae0.tar.gz diff --git a/createrepo_c-0.10.0.git20160411.72fc9f6.tar.gz b/createrepo_c-0.10.0.git20160411.72fc9f6.tar.gz deleted file mode 100644 index cb10d93..0000000 --- a/createrepo_c-0.10.0.git20160411.72fc9f6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a1bd307501480890b4723948b464d72eb8e79c07b28f0ca4a0cddcdcb239a410 -size 371050 diff --git a/createrepo_c-0.10.0.git20160503.7c6fae0.tar.gz b/createrepo_c-0.10.0.git20160503.7c6fae0.tar.gz new file mode 100644 index 0000000..f4b6d6b --- /dev/null +++ b/createrepo_c-0.10.0.git20160503.7c6fae0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:86504509036d18db8a9829acb9e5108a2e62e438611e65940ac45aca24e63a8a +size 373784 diff --git a/createrepo_c.spec b/createrepo_c.spec index ae5f7cb..0eec42c 100644 --- a/createrepo_c.spec +++ b/createrepo_c.spec @@ -2,20 +2,12 @@ %define libname lib%{name}%{major} %define devname lib%{name}-devel -%if (0%{?sle_version} || 0%{?sles_version}) && 0%{?is_opensuse} == 0 -# Disable Python 3 bindings for SLE -%bcond_with python3 -%else -# Enable Python 3 bindings by default -%bcond_without python3 -%endif - -%define version_unconverted 0.10.0.git20160411.72fc9f6 +%define version_unconverted 0.10.0.git20160503.7c6fae0 Name: createrepo_c Summary: Creates a common metadata repository Group: System/Packages -Version: 0.10.0.git20160411.72fc9f6 +Version: 0.10.0.git20160503.7c6fae0 Release: 0 License: GPL-2.0 URL: https://github.com/rpm-software-management/createrepo_c @@ -30,21 +22,11 @@ BuildRequires: glib2-devel >= 2.22.0 BuildRequires: libcurl-devel BuildRequires: libxml2-devel BuildRequires: openssl-devel -BuildRequires: python-devel -BuildRequires: python-nose -BuildRequires: python-Sphinx BuildRequires: rpm-devel >= 4.9.0 BuildRequires: sqlite3-devel BuildRequires: lzma-devel BuildRequires: zlib-devel BuildRequires: bash-completion -#BuildRequires: drpm-devel >= 0.1.3 - -%if %{with python3} -BuildRequires: python3-devel -BuildRequires: python3-nose -BuildRequires: python3-Sphinx -%endif Requires: %{libname} = %{version}-%{release} @@ -79,25 +61,6 @@ Requires: %{libname} = %{version}-%{release} 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 -Provides: python-%{name} = %{version}-%{release} -Requires: %{libname} = %{version}-%{release} - -%description -n python2-createrepo_c -Python 2 bindings for the createrepo_c library. - -%if %{with python3} -%package -n python3-%{name} -Summary: Python 3 bindings for the createrepo_c library -Group: Development/Libraries/Python -Requires: %{libname} = %{version}-%{release} - -%description -n python3-createrepo_c -Python 3 bindings for the createrepo_c library. -%endif - %prep %setup -q @@ -108,41 +71,21 @@ mkdir py3 %endif %build -%cmake -DENABLE_LEGACY_WEAKTAGS=1 -DENABLE_DRPM=OFF +%cmake -DENABLE_LEGACY_WEAKTAGS=1 -DENABLE_DRPM=OFF -DENABLE_PYTHON=OFF make %{?_smp_mflags} make doc-c -%if %{with python3} -pushd ../py3 -%cmake -DPYTHON_DESIRED:str=3 ../../ -make %{?_smp_mflags} -popd -%endif - %check pushd ./build make tests make ARGS="-V" test popd -%if %{with python3} -pushd ./py3/build -make tests -make ARGS="-V" test -popd -%endif - %install pushd ./build %make_install popd -%if %{with python3} -pushd ./py3/build -%make_install -popd -%endif - %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig @@ -170,12 +113,4 @@ popd %{_includedir}/createrepo_c/ %doc build/doc/html COPYING -%files -n python2-createrepo_c -%{python_sitearch}/createrepo_c/ - -%if %{with python3} -%files -n python3-createrepo_c -%{python3_sitearch}/createrepo_c/ -%endif - %changelog