Blame SPECS/drpm.spec

90a957
# Do not build with zstd for RHEL < 8
90a957
%if (0%{?rhel} && 0%{?rhel} < 8) || (0%{?suse_version} && 0%{?suse_version} < 1500)
00f961
%bcond_with zstd
00f961
%else
00f961
%bcond_without zstd
00f961
%endif
00f961
a0f3b3
Name:           drpm
00f961
Version:        0.4.1
83f6ba
Release:        3%{?dist}
a0f3b3
Summary:        A library for making, reading and applying deltarpm packages
00f961
# the entire source code is LGPLv2+, except src/drpm_diff.c and src/drpm_search.c which are BSD
00f961
License:        LGPLv2+ and BSD
00f961
URL:            https://github.com/rpm-software-management/%{name}
00f961
Source:         %{url}/releases/download/%{version}/%{name}-%{version}.tar.bz2
a0f3b3
a0f3b3
# add workaround for gcc7 on ppc64le temporary before it's fixed in gcc
a0f3b3
# https://bugzilla.redhat.com/show_bug.cgi?id=1420350
a0f3b3
Patch1:         drpm-0.3.0-workaround-ppc64le-gcc.patch
83f6ba
Patch2:         Fix-a-memory-leak-on-invalid-input.patch
a0f3b3
00f961
BuildRequires:  cmake >= 2.8.5
a0f3b3
BuildRequires:  gcc
a0f3b3
a0f3b3
BuildRequires:  rpm-devel
a0f3b3
BuildRequires:  openssl-devel
a0f3b3
BuildRequires:  zlib-devel
a0f3b3
BuildRequires:  bzip2-devel
a0f3b3
BuildRequires:  xz-devel
00f961
%if %{with zstd}
00f961
BuildRequires:  pkgconfig(libzstd)
00f961
%endif
a0f3b3
a0f3b3
BuildRequires:  pkgconfig
a0f3b3
BuildRequires:  doxygen
a0f3b3
a0f3b3
BuildRequires:  libcmocka-devel >= 1.0
a0f3b3
%ifarch %{valgrind_arches}
a0f3b3
BuildRequires:  valgrind
a0f3b3
%endif
a0f3b3
a0f3b3
%description
a0f3b3
The drpm package provides a library for making, reading and applying deltarpms,
a0f3b3
compatible with the original deltarpm packages.
a0f3b3
a0f3b3
%package devel
a0f3b3
Summary:        C interface for the drpm library
a0f3b3
Requires:       %{name}%{?_isa} = %{version}-%{release}
a0f3b3
a0f3b3
%description devel
a0f3b3
The drpm-devel package provides a C interface (drpm.h) for the drpm library.
a0f3b3
a0f3b3
%prep
a0f3b3
%autosetup -p1
a0f3b3
mkdir build
a0f3b3
a0f3b3
%build
a0f3b3
pushd build
00f961
%cmake .. -DWITH_ZSTD:BOOL=%{?with_zstd:ON}%{!?with_zstd:OFF} -DHAVE_LZLIB_DEVEL:BOOL=%{?suse_version:ON}%{!?suse_version:OFF} 
a0f3b3
%make_build
a0f3b3
make doc
a0f3b3
popd
a0f3b3
a0f3b3
%install
a0f3b3
pushd build
a0f3b3
%make_install
a0f3b3
popd
a0f3b3
a0f3b3
%check
a0f3b3
pushd build
a0f3b3
ctest -VV
a0f3b3
popd
a0f3b3
00f961
%if (0%{?rhel} && 0%{?rhel} < 8) || 0%{?suse_version}
a0f3b3
%ldconfig_scriptlets
00f961
%endif
a0f3b3
a0f3b3
%files
00f961
%license COPYING LICENSE.BSD
a0f3b3
%{_libdir}/libdrpm.so.*
a0f3b3
a0f3b3
%files devel
a0f3b3
%doc build/doc/html/
a0f3b3
%{_libdir}/libdrpm.so
a0f3b3
%{_includedir}/drpm.h
a0f3b3
%{_libdir}/pkgconfig/drpm.pc
a0f3b3
a0f3b3
%changelog
83f6ba
* Tue Aug 11 2020 Nicola Sella <nsella@redhat.com> - 0.4.1-3
83f6ba
- Fix a memory leak on invalid input (RhBug:1866786)
83f6ba
90a957
* Tue Jun 02 2020 Ales Matej <amatej@gmail.com> 0.4.1-2
90a957
- Rebuild with zstd support (RhBug:1842036)
90a957
00f961
* Wed Oct 23 2019 Ales Matej <amatej@gmail.com> 0.4.1-1
00f961
- Update to 0.4.1
00f961
- Relicense to LGPLv2+
00f961
- Fix number of bugs mainly with drpm_make and drpm_apply
00f961
- Add support for zstd drpms
00f961
- CMake cleanups
00f961
- Make running tests optional
00f961
- Small spec improvements
00f961
a0f3b3
* Fri Aug  3 2018 Florian Weimer <fweimer@redhat.com> - 0.3.0-14
a0f3b3
- Honor %%{valgrind_arches}
a0f3b3
a0f3b3
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-13
a0f3b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a0f3b3
a0f3b3
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.0-12
a0f3b3
- Switch to %%ldconfig_scriptlets
a0f3b3
a0f3b3
* Fri Aug 11 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.3.0-11
a0f3b3
- Rebuilt after RPM update (№ 3)
a0f3b3
a0f3b3
* Thu Aug 10 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.3.0-10
a0f3b3
- Rebuilt for RPM soname bump
a0f3b3
a0f3b3
* Thu Aug 10 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.3.0-9
a0f3b3
- Rebuilt for RPM soname bump
a0f3b3
a0f3b3
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-8
a0f3b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
a0f3b3
a0f3b3
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-7
a0f3b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a0f3b3
a0f3b3
* Thu Apr 13 2017 Than Ngo <than@redhat.com> - 0.3.0-6
a0f3b3
- updated workaround patch
a0f3b3
a0f3b3
* Tue Mar 28 2017 Than Ngo <than@redhat.com> - 0.3.0-5
a0f3b3
- added workaround for gcc7 bug on ppc64le temporary
a0f3b3
a0f3b3
* Thu Sep 29 2016 Pete Walter <pwalter@fedoraproject.org> - 0.3.0-4
a0f3b3
- Simplify spec file
a0f3b3
a0f3b3
* Tue May 3 2016 Matej Chalk <mchalk@redhat.com> 0.3.0-3
a0f3b3
- Now contains makedeltarpm and applydeltarpm functionality
a0f3b3
- Added lzlib-devel dependency for OpenSUSE
a0f3b3
a0f3b3
* Tue Apr 12 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.3.0-2
a0f3b3
- Cleanup spec
a0f3b3
- Make build out-of-tree
a0f3b3
- Sync with valgrind arches
a0f3b3
- Build documentation
a0f3b3
a0f3b3
* Thu Sep 3 2015 Matej Chalk <mchalk@redhat.com> 0.3.0-1
a0f3b3
- Bumped minor version (deltarpm creation added)
a0f3b3
a0f3b3
* Tue Aug 4 2015 Matej Chalk <mchalk@redhat.com> 0.2.1-1
a0f3b3
- Added openssl dependency
a0f3b3
a0f3b3
* Fri Jul 24 2015 Matej Chalk <mchalk@redhat.com> 0.2.0-2
a0f3b3
- Fixed bug in test suite
a0f3b3
a0f3b3
* Tue Jun 23 2015 Matej Chalk <mchalk@redhat.com> 0.2.0-1
a0f3b3
- Bumped minor version
a0f3b3
a0f3b3
* Fri Jun 19 2015 Matej Chalk <mchalk@redhat.com> 0.1.3-4
a0f3b3
- Memory test only for architectures that have valgrind (#1232157)
a0f3b3
a0f3b3
* Wed Mar 11 2015 Matej Chalk <mchalk@redhat.com> 0.1.3-3
a0f3b3
- Added cmocka and valgrind package dependencies
a0f3b3
a0f3b3
* Fri Mar 6 2015 Matej Chalk <mchalk@redhat.com> 0.1.3-2
a0f3b3
- Added check section
a0f3b3
a0f3b3
* Fri Feb 13 2015 Matej Chalk <mchalk@redhat.com> 0.1.3-1
a0f3b3
- Bumped version to 0.1.3
a0f3b3
- Added CMake tool
a0f3b3
a0f3b3
* Fri Dec 19 2014 Matej Chalk <mchalk@redhat.com> 0.1.2-4
a0f3b3
- Enabled hardened build
a0f3b3
a0f3b3
* Mon Dec 15 2014 Matej Chalk <mchalk@redhat.com> 0.1.2-3
a0f3b3
- Added unversioned .so to package to enable linking with -ldrpm
a0f3b3
a0f3b3
* Thu Dec 11 2014 Matej Chalk <mchalk@redhat.com> 0.1.2-2
a0f3b3
- Removed unversioned .so from package
a0f3b3
- Included copies of both GPLv3 and LGPLv3
a0f3b3
a0f3b3
* Wed Dec 3 2014 Matej Chalk <mchalk@redhat.com> 0.1.2-1
a0f3b3
- Bumped version to 0.1.2
a0f3b3
- Added drpm.pc file for pkgconfig tool
a0f3b3
a0f3b3
* Thu Nov 6 2014 Matej Chalk <mchalk@redhat.com> 0.1.1-1
a0f3b3
- Bumped version to 0.1.1
a0f3b3
a0f3b3
* Wed Nov 5 2014 Matej Chalk <mchalk@redhat.com> 0.1.0-1
a0f3b3
- Initial RPM release