1 Star 0 Fork 10

syyhao/deltarpm

forked from src-openEuler/deltarpm 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
deltarpm.spec 3.02 KB
一键复制 编辑 原始数据 按行查看 历史
dogsheng 提交于 2019-12-25 15:44 . Package init
%bcond_without python3
Name: deltarpm
Version: 3.6
Release: 30
Summary: deltarpm contains the difference between an old and a new version of an RPM package.
License: BSD
URL: http://gitorious.org/deltarpm/deltarpm
Source0: https://github.com/rpm-software-management/%{name}/archive/%{name}-%{version}.tar.bz2
Patch0: 0002-do-not-finish-applydeltarpm-jobs-when-in-the-middle-.patch
Patch1: 0003-add-newline-in-missing-prelink-error.patch
Patch2: 0004-Return-error-rather-than-crashing-if-we-can-t-alloca.patch
Patch3: 0005-fix-off-by-one-error-in-delta-generation-code.patch
Patch4: 0006-Add-fflush-s-so-output-can-be-watched-using-tail-f.patch
Patch5: deltarpm-3.6-fix-python2.patch
BuildRequires: gcc bzip2-devel perl-generators xz-devel rpm-devel popt-devel zlib-devel
BuildRequires: %{_vendor}-rpm-config
BuildRequires: python2-devel python3-devel
%description
Delta RPM packages contain the difference between an old and a new
version of an RPM package. Applying a delta RPM on an old RPM results
in the complete new RPM. It is not necessary to have a copy of the
old RPM, because a delta RPM can also work with an installed RPM.
%package help
Summary: help document
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description help
This package provides help document for deltarpm.
%package -n python2-%{name}
Summary: Python2 bindings for deltarpm
BuildRequires: python2-devel
Requires: %{name} = %{version}-%{release}
%{?python_provide:%python_provide python2-%{name}}
%description -n python2-%{name}
Python2 bindings for deltarpm.
%package -n python3-%{name}
Summary: Python3 bindings for deltarpm
BuildRequires: python3-devel
Requires: %{name} = %{version}-%{release}
%{?python_provide:%python_provide python3-%{name}}
%description -n python3-%{name}
Python3 bindings for deltarpm.
%prep
%autosetup -p1
%build
%make_build CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="%__global_ldflags" \
bindir=%{_bindir} libdir=%{_libdir} mandir=%{_mandir} prefix=%{_prefix} \
zlibbundled='' zlibldflags='-lz' zlibcppflags=''
%make_build CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="%__global_ldflags" \
bindir=%{_bindir} libdir=%{_libdir} mandir=%{_mandir} prefix=%{_prefix} \
zlibbundled='' zlibldflags='-lz' zlibcppflags='' python
%install
%makeinstall pylibprefix=%{buildroot}
%files
%defattr(-,root,root)
%license LICENSE.BSD
%{_bindir}/*
%files help
%defattr(-,root,root)
%doc README NEWS
%{_mandir}/man8/*
%files -n python2-%{name}
%defattr(-,root,root)
%{python2_sitearch}/%{name}.py*
%{python2_sitearch}/_%{name}module.so
%files -n python3-%{name}
%defattr(-,root,root)
%{python3_sitearch}/%{name}.py
%{python3_sitearch}/__pycache__/%{name}*.pyc
%{python3_sitearch}/_%{name}module.so
%changelog
* Mon Dec 23 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.6-30
- Modify email address
* Wed Sep 04 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.6-29
- Package Init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/shenyangyang01/deltarpm.git
git@gitee.com:shenyangyang01/deltarpm.git
shenyangyang01
deltarpm
deltarpm
master

搜索帮助