deltarpm/deltarpm.spec

108 lines
3.0 KiB
RPMSpec
Raw Normal View History

2019-09-30 10:36:41 -04:00
%bcond_without python3
Name: deltarpm
2020-01-11 17:14:33 +08:00
Version: 3.6.2
2020-10-29 10:30:13 +08:00
Release: 4
2019-09-30 10:36:41 -04:00
Summary: deltarpm contains the difference between an old and a new version of an RPM package.
License: BSD
URL: http://gitorious.org/deltarpm/deltarpm
2020-01-11 17:14:33 +08:00
Source0: https://github.com/rpm-software-management/deltarpm/archive/3.6.2.tar.gz
2019-09-30 10:36:41 -04:00
BuildRequires: gcc bzip2-devel perl-generators xz-devel rpm-devel popt-devel zlib-devel
BuildRequires: %{_vendor}-rpm-config
2020-10-29 10:30:13 +08:00
BuildRequires: python3-devel gdb
2019-09-30 10:36:41 -04:00
%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 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.
2020-10-16 16:08:40 +08:00
%package -n drpmsync
Summary: Sync a file tree with deltarpms
Requires: %{name}%{_isa} = %{version}-%{release}
%description -n drpmsync
This package contains a tool to sync a file tree with
deltarpms.
2019-09-30 10:36:41 -04:00
%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}/*
2020-10-16 16:08:40 +08:00
%exclude %{_bindir}/drpmsync
2019-09-30 10:36:41 -04:00
%files help
%defattr(-,root,root)
%doc README NEWS
%{_mandir}/man8/*
%files -n python3-%{name}
%defattr(-,root,root)
%{python3_sitearch}/%{name}.py
%{python3_sitearch}/__pycache__/%{name}*.pyc
%{python3_sitearch}/_%{name}module.so
2020-10-16 16:08:40 +08:00
%files -n drpmsync
%{_bindir}/drpmsync
2019-09-30 10:36:41 -04:00
%changelog
2020-10-29 10:30:13 +08:00
* Thu Oct 29 2020 Liquor <lirui130@huawei.com> - 3.6.2-4
- Type:requirement
- ID: NA
- SUG: NA
- DESC:remove python2
2020-10-16 16:08:40 +08:00
* Fri Oct 16 2020 Liquor <lirui130@huawei.com> - 3.6.2-3
- Type:enhancement
- ID: NA
- SUG: NA
- DESC:add drpmsync packages
2020-03-14 15:04:14 +08:00
* Sat Mar 14 2020 openEuler Buildteam <buildteam@openeuler.org> - 3.6.2-2
- Type:enhancement
- ID: NA
- SUG: NA
- DESC:add build requires of gdb
2020-01-11 17:14:33 +08:00
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 3.6.2-1
- Type: enhancement
- ID: NA
- SUG: NA
- DESC: update to 3.6.2
2019-12-25 15:44:25 +08:00
* 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
2019-09-30 10:36:41 -04:00
- Package Init