diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-11-01 13:04:49 -0700 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-11-01 13:04:49 -0700 |
commit | 2fa37ed6b4e1a93f34c915571a8929c23a55074a (patch) | |
tree | f92999488080953e03dc5543d49e2579019193ab /packaging | |
parent | 9e0ff569ee66e4031b697bbfab669412cf90cb8a (diff) | |
download | deltarpm-2fa37ed6b4e1a93f34c915571a8929c23a55074a.tar.gz deltarpm-2fa37ed6b4e1a93f34c915571a8929c23a55074a.tar.bz2 deltarpm-2fa37ed6b4e1a93f34c915571a8929c23a55074a.zip |
add packagingsubmit/trunk/20130325.065850submit/tizen/20130517.020826submit/tizen/20130509.173802submit/tizen/20130503.190915submit/tizen/20130503.184803accepted/trunk/20130325.212226accepted/tizen/20130520.095228accepted/tizen/20130503.223701
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/deltarpm.spec | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/packaging/deltarpm.spec b/packaging/deltarpm.spec new file mode 100644 index 0000000..21eb6b2 --- /dev/null +++ b/packaging/deltarpm.spec @@ -0,0 +1,56 @@ +Name: deltarpm +Version: 3.5.git +Release: 0 +Summary: Tools to Create and Apply deltarpms +License: BSD-3-Clause +Group: System/Packages +Url: ftp://ftp.suse.com/pub/projects/deltarpm +Source: deltarpm-3.5.git.tar.bz2 +BuildRequires: bzip2-devel +BuildRequires: python-devel +BuildRequires: rpm-devel +BuildRequires: xz-devel +# we need to build against recent rpm, so avoid the new payload +%define _binary_payload w9.bzdio + +%description +This package contains tools to create and apply deltarpms. A deltarpm +contains the difference between an old and a new version of an RPM, +which makes it possible to recreate the new RPM from the deltarpm and +the old one. You do not need to have a copy of the old RPM, because +deltarpms can also work with installed RPMs. + +%package -n python-deltarpm +Summary: Tools to Create and Apply deltarpms +Group: Development/Languages/Python +Requires: %{name} = %{version} + +%description -n python-deltarpm +Python bindings for deltarpm + +%prep +%setup -q + +%build +make CC="gcc" CFLAGS="%{optflags}" rpmdumpheader="/usr/lib/rpm/rpmdumpheader" %{?_smp_mflags} +make CC="gcc" CFLAGS="%{optflags}" rpmdumpheader="/usr/lib/rpm/rpmdumpheader" %{?_smp_mflags} python + +%install +mkdir -p %{buildroot}%{_prefix}/lib/rpm +make DESTDIR=%{buildroot} prefix="%{_prefix}" libdir="%{_libdir}" mandir="%{_mandir}" rpmdumpheader="/usr/lib/rpm/rpmdumpheader" install +rm -rf %{buildroot}%{_libdir}/python/site-packages/{_deltarpmmodule.so,deltarpm.py} # Remove wrongly installed Python module +mv %{buildroot}%{python_sitearch}/_deltarpm{module,}.so # Fix binary Python module name + +%files +%defattr(-,root,root) +%doc README LICENSE.BSD +%{_bindir}/* +%{_mandir}/man8/* +%{_prefix}/lib/rpm/rpmdumpheader + +%files -n python-deltarpm +%defattr(-,root,root) +%{python_sitearch}/deltarpm.py +%{python_sitearch}/_deltarpm.so + +%changelog |