forked from pool/createrepo_c
updated upstream sources and disabled pyhton support
OBS-URL: https://build.opensuse.org/package/show/system:packagemanager/createrepo_c?expand=0&rev=4
This commit is contained in:
parent
17e9286257
commit
55f871a514
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a1bd307501480890b4723948b464d72eb8e79c07b28f0ca4a0cddcdcb239a410
|
||||
size 371050
|
3
createrepo_c-0.10.0.git20160503.7c6fae0.tar.gz
Normal file
3
createrepo_c-0.10.0.git20160503.7c6fae0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:86504509036d18db8a9829acb9e5108a2e62e438611e65940ac45aca24e63a8a
|
||||
size 373784
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user