| 1 | %bcond_with python3
|
|---|
| 2 |
|
|---|
| 3 | Name: deltarpm
|
|---|
| 4 | Summary: Create deltas between rpms
|
|---|
| 5 | Version: 3.6
|
|---|
| 6 | Release: 1%{?dist}
|
|---|
| 7 | License: BSD
|
|---|
| 8 | URL: http://gitorious.org/deltarpm/deltarpm
|
|---|
| 9 |
|
|---|
| 10 | Vendor: bww bitwise works GmbH
|
|---|
| 11 | %scm_source svn http://svn.netlabs.org/repos/ports/deltarpm/trunk 2264
|
|---|
| 12 |
|
|---|
| 13 | BuildRequires: gcc
|
|---|
| 14 | BuildRequires: bzip2-devel
|
|---|
| 15 | BuildRequires: perl-generators
|
|---|
| 16 | BuildRequires: xz-devel
|
|---|
| 17 | BuildRequires: rpm-devel
|
|---|
| 18 | BuildRequires: popt-devel
|
|---|
| 19 | BuildRequires: zlib-devel
|
|---|
| 20 | BuildRequires: python2-devel
|
|---|
| 21 |
|
|---|
| 22 | %description
|
|---|
| 23 | A deltarpm contains the difference between an old
|
|---|
| 24 | and a new version of a rpm, which makes it possible
|
|---|
| 25 | to recreate the new rpm from the deltarpm and the old
|
|---|
| 26 | one. You don't have to have a copy of the old rpm,
|
|---|
| 27 | deltarpms can also work with installed rpms.
|
|---|
| 28 |
|
|---|
| 29 | %package -n drpmsync
|
|---|
| 30 | Summary: Sync a file tree with deltarpms
|
|---|
| 31 | Requires: %{name}%{_isa} = %{version}-%{release}
|
|---|
| 32 |
|
|---|
| 33 | %description -n drpmsync
|
|---|
| 34 | This package contains a tool to sync a file tree with
|
|---|
| 35 | deltarpms.
|
|---|
| 36 |
|
|---|
| 37 | %package -n deltaiso
|
|---|
| 38 | Summary: Create deltas between isos containing rpms
|
|---|
| 39 | Requires: %{name}%{_isa} = %{version}-%{release}
|
|---|
| 40 |
|
|---|
| 41 | %description -n deltaiso
|
|---|
| 42 | This package contains tools for creating and using deltasisos,
|
|---|
| 43 | a difference between an old and a new iso containing rpms.
|
|---|
| 44 |
|
|---|
| 45 | %package -n python2-%{name}
|
|---|
| 46 | Summary: Python bindings for deltarpm
|
|---|
| 47 | %{?python_provide:%python_provide python2-%{name}}
|
|---|
| 48 | BuildRequires: python2-devel
|
|---|
| 49 | Requires: %{name}%{_isa} = %{version}-%{release}
|
|---|
| 50 |
|
|---|
| 51 | %description -n python2-%{name}
|
|---|
| 52 | This package contains python bindings for deltarpm.
|
|---|
| 53 |
|
|---|
| 54 | Python 2 version.
|
|---|
| 55 |
|
|---|
| 56 | %if 0%{?with_python3}
|
|---|
| 57 | %package -n python3-%{name}
|
|---|
| 58 | Summary: Python bindings for deltarpm
|
|---|
| 59 | %{?python_provide:%python_provide python3-%{name}}
|
|---|
| 60 | BuildRequires: python3-devel
|
|---|
| 61 | Requires: %{name}%{_isa} = %{version}-%{release}
|
|---|
| 62 |
|
|---|
| 63 | %description -n python3-%{name}
|
|---|
| 64 | This package contains python bindings for deltarpm.
|
|---|
| 65 |
|
|---|
| 66 | Python 3 version.
|
|---|
| 67 | %endif
|
|---|
| 68 |
|
|---|
| 69 | %debug_package
|
|---|
| 70 |
|
|---|
| 71 | %prep
|
|---|
| 72 | %scm_setup
|
|---|
| 73 |
|
|---|
| 74 | %build
|
|---|
| 75 | export LDFLAGS="-Zomf -Zhigh-mem -lcx %{?__global_ldflags}"
|
|---|
| 76 | export CFLAGS="%{optflags}"
|
|---|
| 77 | export VENDOR="%{vendor}"
|
|---|
| 78 |
|
|---|
| 79 | %{__make} %{?_smp_mflags} \
|
|---|
| 80 | bindir=%{_bindir} libdir=%{_libdir} mandir=%{_mandir} prefix=%{_prefix} \
|
|---|
| 81 | zlibbundled='' zlibldflags='-lz' zlibcppflags=''
|
|---|
| 82 | %{__make} %{?_smp_mflags} \
|
|---|
| 83 | bindir=%{_bindir} libdir=%{_libdir} mandir=%{_mandir} prefix=%{_prefix} \
|
|---|
| 84 | zlibbundled='' zlibldflags='-lz' zlibcppflags='' \
|
|---|
| 85 | python
|
|---|
| 86 |
|
|---|
| 87 | %install
|
|---|
| 88 | %make_install pylibprefix=%{python2_sitearch} bindir=%{_bindir} libdir=%{_libdir} mandir=%{_mandir} prefix=%{_prefix}
|
|---|
| 89 |
|
|---|
| 90 | %if %{with python3}
|
|---|
| 91 | # nothing to do
|
|---|
| 92 | %else
|
|---|
| 93 | rm -rf %{buildroot}%{_libdir}/python3*
|
|---|
| 94 | ln -sf %{python2_sitearch}/_deltrpm.pyd $RPM_BUILD_ROOT%{python2_sitearch}/_deltarpmmodule.pyd
|
|---|
| 95 | %endif
|
|---|
| 96 |
|
|---|
| 97 | %files
|
|---|
| 98 | %license LICENSE.BSD
|
|---|
| 99 | %doc README NEWS
|
|---|
| 100 | %{_bindir}/applydeltarpm.exe
|
|---|
| 101 | %{_mandir}/man8/applydeltarpm.8*
|
|---|
| 102 | %{_bindir}/combinedeltarpm.exe
|
|---|
| 103 | %{_mandir}/man8/combinedeltarpm.8*
|
|---|
| 104 | %{_bindir}/makedeltarpm.exe
|
|---|
| 105 | %{_mandir}/man8/makedeltarpm.8*
|
|---|
| 106 | %{_bindir}/rpmdumpheader.exe
|
|---|
| 107 |
|
|---|
| 108 | %files -n deltaiso
|
|---|
| 109 | %{_bindir}/applydeltaiso.exe
|
|---|
| 110 | %{_mandir}/man8/applydeltaiso.8*
|
|---|
| 111 | %{_bindir}/fragiso.exe
|
|---|
| 112 | %{_mandir}/man8/fragiso.8*
|
|---|
| 113 | %{_bindir}/makedeltaiso.exe
|
|---|
| 114 | %{_mandir}/man8/makedeltaiso.8*
|
|---|
| 115 |
|
|---|
| 116 | %files -n drpmsync
|
|---|
| 117 | %{_bindir}/drpmsync
|
|---|
| 118 | %{_mandir}/man8/drpmsync.8*
|
|---|
| 119 |
|
|---|
| 120 | %files -n python2-%{name}
|
|---|
| 121 | %{python2_sitearch}/%{name}.py*
|
|---|
| 122 | %{python2_sitearch}/_%{name}module.pyd
|
|---|
| 123 | %{python2_sitearch}/_deltrpm.pyd
|
|---|
| 124 |
|
|---|
| 125 | %if %{with python3}
|
|---|
| 126 | %files -n python3-%{name}
|
|---|
| 127 | %{python3_sitearch}/%{name}.py
|
|---|
| 128 | %{python3_sitearch}/_%{name}module.so
|
|---|
| 129 | %{python3_sitearch}/__pycache__/%{name}.*
|
|---|
| 130 | %endif
|
|---|
| 131 |
|
|---|
| 132 | %changelog
|
|---|
| 133 | * Mon Dec 18 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> - 3.6-1
|
|---|
| 134 | - initial rpm version
|
|---|