Blame SPECS/deltarpm.spec

e742a6
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
e742a6
e742a6
%if 0%{?fedora} > 12
e742a6
%global with_python3 1
e742a6
%endif
e742a6
e742a6
Summary: Create deltas between rpms
e742a6
Name: deltarpm
e742a6
Version: 3.6
e742a6
Release: 3%{?dist}
e742a6
License: BSD
e742a6
Group: System Environment/Base
e742a6
URL: http://gitorious.org/deltarpm/deltarpm
e742a6
Source: ftp://ftp.suse.com/pub/projects/deltarpm/%{name}-%{version}.tar.bz2
e742a6
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
e742a6
e742a6
BuildRequires: bzip2-devel, xz-devel, rpm-devel, popt-devel
e742a6
BuildRequires: zlib-devel
e742a6
BuildRequires: python-devel
e742a6
e742a6
%if 0%{?with_python3}
e742a6
BuildRequires: python3-devel
e742a6
%endif
e742a6
e742a6
%description
e742a6
A deltarpm contains the difference between an old
e742a6
and a new version of a rpm, which makes it possible
e742a6
to recreate the new rpm from the deltarpm and the old
e742a6
one. You don't have to have a copy of the old rpm,
e742a6
deltarpms can also work with installed rpms.
e742a6
e742a6
%package -n drpmsync
e742a6
Summary: Sync a file tree with deltarpms
e742a6
Group: System Environment/Base
e742a6
Requires: deltarpm%{_isa} = %{version}-%{release}
e742a6
e742a6
%description -n drpmsync
e742a6
This package contains a tool to sync a file tree with
e742a6
deltarpms.
e742a6
e742a6
%package -n deltaiso
e742a6
Summary: Create deltas between isos containing rpms
e742a6
Group: System Environment/Base
e742a6
Requires: deltarpm%{_isa} = %{version}-%{release}
e742a6
e742a6
%description -n deltaiso
e742a6
This package contains tools for creating and using deltasisos,
e742a6
a difference between an old and a new iso containing rpms.
e742a6
e742a6
%package -n python-deltarpm
e742a6
Summary: Python bindings for deltarpm
e742a6
Group: System Environment/Base
e742a6
Requires: deltarpm%{_isa} = %{version}-%{release}
e742a6
e742a6
%description -n python-deltarpm
e742a6
This package contains python bindings for deltarpm.
e742a6
e742a6
%if 0%{?with_python3}
e742a6
%package -n python3-deltarpm
e742a6
Summary: Python bindings for deltarpm
e742a6
Group: System Environment/Base
e742a6
Requires: deltarpm%{_isa} = %{version}-%{release}
e742a6
e742a6
%description -n python3-deltarpm
e742a6
This package contains python bindings for deltarpm.
e742a6
%endif
e742a6
e742a6
e742a6
%prep
e742a6
%setup -q
e742a6
e742a6
%build
e742a6
%{__make} %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" \
e742a6
    bindir=%{_bindir} libdir=%{_libdir} mandir=%{_mandir} prefix=%{_prefix} \
e742a6
    zlibbundled='' zlibldflags='-lz' zlibcppflags=''
e742a6
%{__make} %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" \
e742a6
    bindir=%{_bindir} libdir=%{_libdir} mandir=%{_mandir} prefix=%{_prefix} \
e742a6
    zlibbundled='' zlibldflags='-lz' zlibcppflags='' \
e742a6
    python
e742a6
e742a6
%install
e742a6
%{__rm} -rf %{buildroot}
e742a6
%makeinstall pylibprefix=%{buildroot}
e742a6
e742a6
%if 0%{?with_python3}
e742a6
# nothing to do
e742a6
%else
e742a6
rm -rf %{buildroot}%{_libdir}/python3*
e742a6
%endif
e742a6
e742a6
e742a6
%clean
e742a6
%{__rm} -rf %{buildroot}
e742a6
e742a6
%files
e742a6
%defattr(-, root, root, 0755)
e742a6
%doc LICENSE.BSD README
e742a6
%doc %{_mandir}/man8/applydeltarpm*
e742a6
%doc %{_mandir}/man8/makedeltarpm*
e742a6
%doc %{_mandir}/man8/combinedeltarpm*
e742a6
%{_bindir}/applydeltarpm
e742a6
%{_bindir}/combinedeltarpm
e742a6
%{_bindir}/makedeltarpm
e742a6
%{_bindir}/rpmdumpheader
e742a6
e742a6
%files -n deltaiso
e742a6
%defattr(-, root, root, 0755)
e742a6
%doc LICENSE.BSD README
e742a6
%doc %{_mandir}/man8/applydeltaiso*
e742a6
%doc %{_mandir}/man8/makedeltaiso*
e742a6
%doc %{_mandir}/man8/fragiso*
e742a6
%{_bindir}/applydeltaiso
e742a6
%{_bindir}/fragiso
e742a6
%{_bindir}/makedeltaiso
e742a6
e742a6
%files -n drpmsync
e742a6
%defattr(-, root, root, 0755)
e742a6
%doc LICENSE.BSD README
e742a6
%doc %{_mandir}/man8/drpmsync*
e742a6
%{_bindir}/drpmsync
e742a6
e742a6
%files -n python-deltarpm
e742a6
%defattr(-, root, root, 0755)
e742a6
%doc LICENSE.BSD
e742a6
%{python_sitearch}/*
e742a6
e742a6
%if 0%{?with_python3}
e742a6
e742a6
%files -n python3-deltarpm
e742a6
%defattr(-, root, root, 0755)
e742a6
%doc LICENSE.BSD
e742a6
%{python3_sitearch}/*
e742a6
e742a6
%endif
e742a6
e742a6
%changelog
e742a6
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 3.6-3
e742a6
- Mass rebuild 2014-01-24
e742a6
e742a6
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 3.6-2
e742a6
- Mass rebuild 2013-12-27
e742a6
e742a6
* Thu Jun 20 2013 Jonathan Dieter <jdieter@lesbg.com> - 3.6-1
e742a6
- Update to 3.6 which, among other things, fixes a bug when applying a deltarpm
e742a6
  to create a gzip-compressed rpm using full compression
e742a6
e742a6
* Mon May 20 2013 Jonathan Dieter <jdieter@lesbg.com> - 3.6-0.13.20130520git
e742a6
- Clearer error message when applydeltaiso fails (#825428) (Thanks, John!)
e742a6
- Add details to applydeltaiso and makedeltaiso man pages (#569499)
e742a6
- Add fragiso man page to deltaiso package (#569776)
e742a6
- Fix section for applydeltaiso (#548970)
e742a6
- Add arch-specific requires (#677060)
e742a6
e742a6
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6-0.12.20110223git
e742a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e742a6
e742a6
* Fri Aug 03 2012 David Malcolm <dmalcolm@redhat.com> - 3.6-0.11.20110223git
e742a6
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
e742a6
e742a6
* Fri Aug  3 2012 David Malcolm <dmalcolm@redhat.com> - 3.6-0.10.20110223git
e742a6
- remove rhel logic from with_python3 conditional
e742a6
e742a6
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6-0.9.20110223git
e742a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e742a6
e742a6
* Tue Mar 20 2012 Jindrich Novy <jnovy@redhat.com> - 3.6-0.8.20110223git
e742a6
- rebuild against new rpm
e742a6
e742a6
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6-0.7.20110223git
e742a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e742a6
e742a6
* Wed Feb 23 2011 - Jonathan Dieter <jdieter@lesbg.com> - 3.6-0.6.20110223git
e742a6
- Fix makedeltaiso so it (partially) works when compression formats change
e742a6
- Fix fix for makedeltaiso so it gets checksums right
e742a6
e742a6
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6-0.5.20110121git
e742a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
e742a6
e742a6
* Fri Jan 21 2011 - Jonathan Dieter <jdieter@lesbg.com> - 3.6-0.4.20110121git
e742a6
- Python 3 module now works again
e742a6
e742a6
* Tue Jan 18 2011 - Jonathan Dieter <jdieter@lesbg.com> - 3.6-0.4.20110118git
e742a6
- Re-enable Python 3 support, but it still won't work even though it builds
e742a6
- Remove upstreamed patches
e742a6
e742a6
* Tue Jan 18 2011 - Richard W.M. Jones <rjones@redhat.com> - 3.6-0.3.20101230git
e742a6
- Disable Python 3 support, since it is quite broken.
e742a6
e742a6
* Thu Dec 30 2010 Jonathan Dieter <jdieter@lesbg.com> - 3.6-0.1.20101230git
e742a6
- Update to current git
e742a6
- Temporary extra verbosity patch
e742a6
- Add groups to subpackages for EL5
e742a6
e742a6
* Thu Jul  8 2010 Jonathan Dieter <jdieter@lesbg.com> - 3.6-0.1.20100708git
e742a6
- Deltarpm can now limit memory usage when generating deltarpms
e742a6
e742a6
* Wed Feb 10 2010 Thomas Spura <tomspur@fedoraproject.org> - 3.5-0.7.20100121git
e742a6
- build python3-deltarpm
e742a6
e742a6
* Thu Jan 21 2010 Jonathan Dieter <jdieter@lesbg.com> - 3.5-0.6.20100121git
e742a6
- Make rpmio link explicit
e742a6
e742a6
* Tue Dec 08 2009 Jesse Keating <jkeating@redhat.com> - 3.5-0.5.20090913git
e742a6
- Rebuild for new rpm
e742a6
e742a6
* Wed Sep 30 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 3.5-0.4.20090913git
e742a6
- Update patch to properly detect when an rpm is built with an rsync-friendly
e742a6
  zlib and bail out.
e742a6
e742a6
* Wed Sep 30 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 3.5-0.3.20090913git
e742a6
- Make building with system zlib selectable at build time.
e742a6
- Fix cfile_detect_rsync() to detect rsync even if we don't have a zlib capable
e742a6
  of making rsync-friendly compressed files.
e742a6
e742a6
* Wed Sep 30 2009 Toshio Kuratomi <toshio@fedoraproject.org> - 3.5-0.2.20090913git
e742a6
- Correct prerelease rlease numbering.
e742a6
- Build against the system zlib, not the bundled library.  This remedies the
e742a6
  fact that the included zlib is affected by CAN-2005-1849.
e742a6
e742a6
* Sun Sep 13 2009 Jonathan Dieter <jdieter@lesbg.com> - 3.5-0.git.20090913
e742a6
- Merge python error patch upstream
e742a6
e742a6
* Thu Sep 10 2009 Bill Nottingham <notting@redhat.com> - 3.5-0.git.20090831.1.4
e742a6
- fix python bindings to not require kernel >= 2.6.27
e742a6
e742a6
* Wed Sep  9 2009 Bill Nottingham <notting@redhat.com> - 3.5-0.git.20090831.1.3
e742a6
- fix python bindings to:
e742a6
  - call _exit(), not exit()
e742a6
  - properly pythonize errors
e742a6
  - not leak file descriptors
e742a6
e742a6
* Mon Aug 31 2009 Jonathan Dieter <jdieter@lesbg.com> - 3.5-0.git.20090831.1
e742a6
- Add python bindings sub-package
e742a6
- Fix build error
e742a6
e742a6
* Mon Aug 17 2009 Jonathan Dieter <jdieter@gmail.com> - 3.5-0.git.20090729.1
e742a6
- Explain where we get the source from
e742a6
- Split *deltaiso commands into deltaiso subpackage (#501953)
e742a6
e742a6
* Wed Jul 29 2009 Jonathan Dieter <jdieter@gmail.com> - 3.5-0.git.20090729
e742a6
- Fix bug in writing Fedora's xz-compressed rpms (surely that's the last one)
e742a6
e742a6
* Mon Jul 27 2009 Jonathan Dieter <jdieter@gmail.com> - 3.5-0.git.20090727.1
e742a6
- Fix bug in reading Fedora's xz-compressed rpms
e742a6
e742a6
* Mon Jul 27 2009 Jonathan Dieter <jdieter@gmail.com> - 3.5-0.git.20090727
e742a6
- Update to current upstream git repository
e742a6
- Add upstream xz compression support
e742a6
- Drop all patches (they're now in upstream)
e742a6
- Fix spelling mistakes (#505713)
e742a6
- Fix url error (#506179)
e742a6
e742a6
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4-17
e742a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
e742a6
e742a6
* Wed Apr 22 2009 Jonathan Dieter <jdieter@gmail.com> - 3.4-16
e742a6
- Split drpmsync into a separate subpackage (#489231)
e742a6
e742a6
* Thu Mar 26 2009 Jonathan Dieter <jdieter@gmail.com> - 3.4-15
e742a6
- Fix bug when checking sequence with new sha256 file digests
e742a6
e742a6
* Tue Mar 24 2009 Jonathan Dieter <jdieter@gmail.com> - 3.4-14
e742a6
- Add support for rpms with sha256 file digests
e742a6
e742a6
* Fri Mar 06 2009 Jesse Keating <jkeating@redhat.com> - 3.4-13
e742a6
- Rebuild for new rpm libs
e742a6
e742a6
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4-12
e742a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e742a6
e742a6
* Sun Jul 13 2008 Jonathan Dieter <jdieter@gmail.com> - 3.4-11
e742a6
- Rebuild for rpm 4.6
e742a6
e742a6
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.4-10
e742a6
- Autorebuild for GCC 4.3
e742a6
e742a6
* Mon Jan  7 2008 Jonathan Dieter <jdieter@gmail.com> - 3.4-9
e742a6
- Add patch that allows deltarpm to rebuild rpms from deltarpms that have
e742a6
  had the rpm signature added after their creation.  The code came from
e742a6
  upstream.
e742a6
- Drop nodoc patch added in 3.4-4 as most packages in repository have been
e742a6
  updated since April-May 2007 and this patch was supposed to be temporary.
e742a6
e742a6
* Wed Aug 29 2007 Jonathan Dieter <jdieter@gmail.com> - 3.4-6
e742a6
- Bring in popt-devel in BuildRequires to fix build in x86_64
e742a6
e742a6
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 3.4-5
e742a6
- Rebuild for selinux ppc32 issue.
e742a6
e742a6
* Wed Jul 11 2007 Jonathan Dieter <jdieter@gmail.com> - 3.4-4
e742a6
- Fix prelink bug
e742a6
- Ignore verify bits on doc files as they were set incorrectly in older
e742a6
  versions of rpm.  Without this patch, deltarpm will not delta doc files
e742a6
  in rpm created before April-May 2007
e742a6
e742a6
* Tue Jun  5 2007 Jeremy Katz <katzj@redhat.com> - 3.4-3
e742a6
- include colored binaries from non-multilib-dirs so that deltas can work 
e742a6
  on multilib platforms
e742a6
e742a6
* Wed May 09 2007 Adam Jackson <ajax@redhat.com> 3.4-2
e742a6
- Add -a flag to work around multilib ignorance. (#238964)
e742a6
e742a6
* Tue Mar 06 2007 Adam Jackson <ajax@redhat.com> 3.4-1
e742a6
- Update to 3.4 (#231154)
e742a6
e742a6
* Mon Feb 12 2007 Adam Jackson <ajax@redhat.com> 3.3-7
e742a6
- Add RPM_OPT_FLAGS to make line. (#227380)
e742a6
e742a6
* Mon Feb 05 2007 Adam Jackson <ajax@redhat.com> 3.3-6
e742a6
- Fix rpm db corruption in rpmdumpheader.  (#227326)
e742a6
e742a6
* Mon Sep 11 2006 Mihai Ibanescu <misa@redhat.com> - 3.3-5
e742a6
- Rebuilding for new toolset
e742a6
e742a6
* Thu Aug 17 2006 Mihai Ibanescu <misa@redhat.com> - 3.3-4
e742a6
- Removing BuildRequires: gcc
e742a6
e742a6
* Tue Aug 15 2006 Mihai Ibanescu <misa@redhat.com> - 3.3-3
e742a6
- Fedora packaging guidelines build
e742a6
e742a6
* Tue Aug  8 2006 Mihai Ibanescu <misa@redhat.com> - 3.3-2
e742a6
- Added BuildRequires: rpm-devel, gcc
e742a6
e742a6
* Sat Dec 03 2005 Dries Verachtert <dries@ulyssis.org> - 3.3-1 - 3768/dries
e742a6
- Initial package.