SHA256
1
0
forked from pool/createrepo_c

disabled libdrpm for (open)SUSE

OBS-URL: https://build.opensuse.org/package/show/system:packagemanager/createrepo_c?expand=0&rev=28
This commit is contained in:
Frank Schreiner 2019-02-25 12:56:04 +00:00 committed by Git OBS Bridge
parent e375857c81
commit eb3b40e218

View File

@ -1,7 +1,7 @@
# #
# spec file for package createrepo_c # spec file for package createrepo_c
# #
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 Neal Gompa <ngompa13@gmail.com>. # Copyright (c) 2019 Neal Gompa <ngompa13@gmail.com>.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
@ -13,7 +13,7 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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/
# #
@ -26,8 +26,13 @@
%bcond_with python3 %bcond_with python3
%endif %endif
%if ( 0%{?sle_version} || 0%{?suse_version} )
# Disabled DeltaRPM support for SUSE
%bcond_with drpm
%else
# Enable enhanced DeltaRPM support # Enable enhanced DeltaRPM support
%bcond_without drpm %bcond_without drpm
%endif
%if (0%{?is_opensuse} && 0%{?sle_version} >= 150100) || 0%{?suse_version} >= 1550 %if (0%{?is_opensuse} && 0%{?sle_version} >= 150100) || 0%{?suse_version} >= 1550
%bcond_without zchunk %bcond_without zchunk
@ -75,8 +80,8 @@ BuildRequires: rpm-devel >= 4.9.0
BuildRequires: sqlite3-devel BuildRequires: sqlite3-devel
BuildRequires: zlib-devel BuildRequires: zlib-devel
%if %{with zchunk} %if %{with zchunk}
BuildRequires: zchunk-devel >= 0.9.11
BuildRequires: zchunk BuildRequires: zchunk
BuildRequires: zchunk-devel >= 0.9.11
%endif %endif
Requires: %{libname}%{?_isa} = %{version}-%{release} Requires: %{libname}%{?_isa} = %{version}-%{release}
%if %{with tests} %if %{with tests}
@ -107,9 +112,9 @@ rpm packages and maintaining it.
%package -n %{libname} %package -n %{libname}
Summary: Library for repodata manipulation Summary: Library for repodata manipulation
Group: System/Libraries
# The function to create DeltaRPMs calls /usr/bin/makedeltarpm, # The function to create DeltaRPMs calls /usr/bin/makedeltarpm,
# which is part of the 'deltarpm' package # which is part of the 'deltarpm' package
Group: System/Libraries
Requires: deltarpm Requires: deltarpm
%description -n %{libname} %description -n %{libname}
@ -154,7 +159,6 @@ sed -i -e '/HTML_TIMESTAMP/d' doc/Doxyfile.in.in
%make_build %make_build
%make_build doc-c %make_build doc-c
%if %{with tests} %if %{with tests}
%check %check
%define __builddir build %define __builddir build
@ -165,7 +169,6 @@ sed -i -e '/HTML_TIMESTAMP/d' doc/Doxyfile.in.in
%define __builddir build %define __builddir build
%cmake_install %cmake_install
mkdir -p %{buildroot}%{_sysconfdir}/alternatives mkdir -p %{buildroot}%{_sysconfdir}/alternatives
for i in createrepo mergerepo modifyrepo sqliterepo;do for i in createrepo mergerepo modifyrepo sqliterepo;do
ln -s %{_bindir}/$i\_c %{buildroot}%{_sysconfdir}/alternatives/$i ln -s %{_bindir}/$i\_c %{buildroot}%{_sysconfdir}/alternatives/$i