Blame SPECS/deltarpm.spec

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