diff --git a/createrepo_c.spec b/createrepo_c.spec index c7ad94aa931f806bcd0a99217cfb07700a0db18b..8f811978b7b094e760dcf23bd90e47f7e3a35f3c 100644 --- a/createrepo_c.spec +++ b/createrepo_c.spec @@ -4,42 +4,21 @@ %global libmodulemd_version 2.3.0 # Bash completion (we need different approach for RHEL-6) -%if 0%{?rhel} == 6 -%global bash_completion %config%{_sysconfdir}/bash_completion.d/createrepo_c.bash -%else %global bash_completion %{_datadir}/bash-completion/completions/* -%endif -%if 0%{?rhel} && 0%{?rhel} <= 7 -%bcond_with python3 -%bcond_with drpm -%else %bcond_without python3 %bcond_without drpm -%endif -%if 0%{?fedora} > 29 || 0%{?rhel} > 7 %bcond_with python2 -%else -%bcond_without python2 -%endif -%if 0%{?rhel} || 0%{?fedora} < 29 %bcond_with zchunk -%else -%bcond_without zchunk -%endif -%if 0%{?rhel} || 0%{?fedora} < 29 %bcond_with libmodulemd -%else -%bcond_without libmodulemd -%endif Summary: Creates a common metadata repository Name: createrepo_c Version: 0.15.0 -Release: 4 +Release: 5 License: GPLv2+ URL: https://github.com/rpm-software-management/createrepo_c Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz @@ -67,20 +46,15 @@ BuildRequires: pkgconfig(modulemd-2.0) >= %{libmodulemd_version} BuildRequires: libmodulemd Requires: libmodulemd%{?_isa} >= %{libmodulemd_version} %endif -%if 0%{?rhel} == 6 -Requires: rpm >= 4.8.0-28 -%else BuildRequires: bash-completion Requires: rpm >= 4.9.0 -%endif %if %{with drpm} BuildRequires: drpm-devel >= 0.3.0 %endif -%if 0%{?fedora} || 0%{?rhel} > 7 Obsoletes: createrepo < 0.11.0 Provides: createrepo = %{version}-%{release} -%endif + Provides: %{name}-libs = %{version}-%{release} %{name}-libs%{?_isa} = %{version}-%{release} Obsoletes: %{name}-libs @@ -106,11 +80,7 @@ Summary: Python bindings for the createrepo_c library %{?python_provide:%python_provide python2-%{name}} BuildRequires: python2-devel BuildRequires: python2-nose -%if 0%{?rhel} && 0%{?rhel} <= 7 -BuildRequires: python-sphinx -%else BuildRequires: python2-sphinx -%endif Requires: %{name}-libs = %{version}-%{release} Provides: python-%{name}%{?_isa} = %{version}-%{release} @@ -204,18 +174,11 @@ pushd build-py3 popd %endif -%if 0%{?fedora} || 0%{?rhel} > 7 ln -sr %{buildroot}%{_bindir}/createrepo_c %{buildroot}%{_bindir}/createrepo ln -sr %{buildroot}%{_bindir}/mergerepo_c %{buildroot}%{_bindir}/mergerepo ln -sr %{buildroot}%{_bindir}/modifyrepo_c %{buildroot}%{_bindir}/modifyrepo -%endif -%if 0%{?rhel} && 0%{?rhel} <= 7 -%post libs -p /sbin/ldconfig -%postun libs -p /sbin/ldconfig -%else %ldconfig_scriptlets libs -%endif %files %doc README.md @@ -227,11 +190,9 @@ ln -sr %{buildroot}%{_bindir}/modifyrepo_c %{buildroot}%{_bindir}/modifyrepo %{_libdir}/lib%{name}.so.* %{bash_completion} -%if 0%{?fedora} || 0%{?rhel} > 7 %{_bindir}/createrepo %{_bindir}/mergerepo %{_bindir}/modifyrepo -%endif %files devel %{_libdir}/lib%{name}.so @@ -262,6 +223,12 @@ ln -sr %{buildroot}%{_bindir}/modifyrepo_c %{buildroot}%{_bindir}/modifyrepo %endif %changelog +* Tue Apr 7 2020 openEuler Buildteam - 0.15.0-5 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC:remove unused macro definitions + * Sat Mar 14 2020 openEuler Buildteam - 0.15.0-4 - Add build requires of gdb