ba5735d
# Do not build with zstd for RHEL < 8
ba5735d
%if (0%{?rhel} && 0%{?rhel} < 8) || (0%{?suse_version} && 0%{?suse_version} < 1500)
ba64cc6
%bcond_with zstd
ba64cc6
%else
ba64cc6
%bcond_without zstd
ba64cc6
%endif
ba64cc6
Matej Chalk 5512662
Name:           drpm
ba5735d
Version:        0.5.0
7d1740d
Release:        2%{?dist}
Matej Chalk 428ea9d
Summary:        A library for making, reading and applying deltarpm packages
ba64cc6
# the entire source code is LGPLv2+, except src/drpm_diff.c and src/drpm_search.c which are BSD
ba64cc6
License:        LGPLv2+ and BSD
ba64cc6
URL:            https://github.com/rpm-software-management/%{name}
ba64cc6
Source:         %{url}/releases/download/%{version}/%{name}-%{version}.tar.bz2
d88f028
Matej Chalk 5512662
a1dcd3d
# add workaround for gcc7 on ppc64le temporary before it's fixed in gcc
a1dcd3d
# https://bugzilla.redhat.com/show_bug.cgi?id=1420350
a1dcd3d
Patch1:         drpm-0.3.0-workaround-ppc64le-gcc.patch
a1dcd3d
Igor Gnatenko 12a319a
BuildRequires:  gcc-c++
ba64cc6
BuildRequires:  cmake >= 2.8.5
Igor Gnatenko 9f5ca0f
BuildRequires:  gcc
Matej Chalk 428ea9d
Matej Chalk 5512662
BuildRequires:  rpm-devel
Matej Chalk 428ea9d
BuildRequires:  openssl-devel
Matej Chalk 5512662
BuildRequires:  zlib-devel
Matej Chalk 5512662
BuildRequires:  bzip2-devel
Matej Chalk 5512662
BuildRequires:  xz-devel
ba64cc6
%if 0%{?suse_version}
ba64cc6
BuildRequires:  lzlib-devel
ba64cc6
%endif
ba64cc6
%if %{with zstd}
ba64cc6
BuildRequires:  pkgconfig(libzstd)
ba64cc6
%endif
Matej Chalk 428ea9d
Matej Chalk 428ea9d
BuildRequires:  pkgconfig
Matej Chalk 428ea9d
BuildRequires:  doxygen
Matej Chalk 428ea9d
Matej Chalk fbf8bbb
BuildRequires:  libcmocka-devel >= 1.0
Igor Gnatenko 9f5ca0f
%ifarch %{ix86} x86_64 ppc ppc64 ppc64le s390x armv7hl aarch64
Matej Chalk fbf8bbb
BuildRequires:  valgrind
Matej Chalk 96ef0ec
%endif
Matej Chalk 5512662
Matej Chalk 5512662
%description
Matej Chalk 428ea9d
The drpm package provides a library for making, reading and applying deltarpms,
Matej Chalk 428ea9d
compatible with the original deltarpm packages.
Matej Chalk 5512662
Igor Gnatenko 9f5ca0f
%package devel
Igor Gnatenko 9f5ca0f
Summary:        C interface for the drpm library
Igor Gnatenko 9f5ca0f
Requires:       %{name}%{?_isa} = %{version}-%{release}
Igor Gnatenko 9f5ca0f
Matej Chalk 5512662
%description devel
Matej Chalk 5512662
The drpm-devel package provides a C interface (drpm.h) for the drpm library.
Matej Chalk 5512662
Matej Chalk 5512662
%prep
a1dcd3d
%autosetup -p1
Matej Chalk 5512662
Matej Chalk 5512662
%build
8b096f2
%cmake -DWITH_ZSTD:BOOL=%{?with_zstd:ON}%{!?with_zstd:OFF} -DHAVE_LZLIB_DEVEL:BOOL=%{?suse_version:ON}%{!?suse_version:OFF}
8b096f2
%cmake_build
8b096f2
%cmake_build --target doc
Matej Chalk fbf8bbb
Matej Chalk 5512662
%install
8b096f2
%cmake_install
Matej Chalk 5512662
Matej Chalk 96ef0ec
%check
8b096f2
%ctest
Matej Chalk 96ef0ec
ba64cc6
%if (0%{?rhel} && 0%{?rhel} < 8) || 0%{?suse_version}
ba64cc6
%post -p /sbin/ldconfig
ba64cc6
ba64cc6
%postun -p /sbin/ldconfig
ba64cc6
%endif
Matej Chalk 5512662
Matej Chalk 5512662
%files
ba64cc6
%{_libdir}/lib%{name}.so.*
ba64cc6
%license COPYING LICENSE.BSD
Matej Chalk 5512662
Matej Chalk 5512662
%files devel
8b096f2
%doc %{_vpath_builddir}/doc/html/
ba64cc6
%{_libdir}/lib%{name}.so
ba64cc6
%{_includedir}/%{name}.h
ba64cc6
%{_libdir}/pkgconfig/%{name}.pc
Matej Chalk 5512662
Matej Chalk 5512662
%changelog
7d1740d
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.0-2
7d1740d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
7d1740d
ba5735d
* Wed Jun 03 2020 Ales Matej <amatej@redhat.com> - 0.5.0-1
ba5735d
- Update to 0.5.0
ba5735d
- Fix a memory leak on invalid input
ba5735d
- Hide the internal library symbols
ba5735d
5dde92c
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-2
5dde92c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
5dde92c
ba64cc6
* Tue Sep 17 2019 Ales Matej <amatej@redhat.com> - 0.4.1-1
ba64cc6
- Update to 0.4.1
ba64cc6
- Add support for zstd
ba64cc6
- Fix number of bugs mainly with drpm_make and drpm_apply
ba64cc6
- Relicense to LGPLv2+ 
ba64cc6
97b5b9c
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-19
97b5b9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
97b5b9c
e12076c
* Tue Jun 11 2019 Panu Matilainen <pmatilai@redhat.com> - 0.3.0-18
e12076c
- Fix build with RPM 4.15
e12076c
b541ec1
* Mon Jun 10 22:13:18 CET 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.0-17
b541ec1
- Rebuild for RPM 4.15
b541ec1
2dad370
* Mon Jun 10 15:42:01 CET 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.0-16
2dad370
- Rebuild for RPM 4.15
2dad370
cf9853c
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-15
cf9853c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
cf9853c
4211b5e
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-14
4211b5e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
4211b5e
1ea87e7
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-13
1ea87e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
1ea87e7
296fa1f
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.0-12
296fa1f
- Switch to %%ldconfig_scriptlets
296fa1f
Igor Gnatenko 3acd4a1
* Fri Aug 11 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.3.0-11
Igor Gnatenko 3acd4a1
- Rebuilt after RPM update (№ 3)
Igor Gnatenko 3acd4a1
Igor Gnatenko 00c306c
* Thu Aug 10 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.3.0-10
Igor Gnatenko 00c306c
- Rebuilt for RPM soname bump
Igor Gnatenko 00c306c
Igor Gnatenko aff1e8e
* Thu Aug 10 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.3.0-9
Igor Gnatenko aff1e8e
- Rebuilt for RPM soname bump
Igor Gnatenko aff1e8e
7264a7d
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-8
7264a7d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
7264a7d
917fe75
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-7
917fe75
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
917fe75
a15a225
* Thu Apr 13 2017 Than Ngo <than@redhat.com> - 0.3.0-6
a15a225
- updated workaround patch
a15a225
a1dcd3d
* Tue Mar 28 2017 Than Ngo <than@redhat.com> - 0.3.0-5
a1dcd3d
- added workaround for gcc7 bug on ppc64le temporary
4010654
d88f028
* Thu Sep 29 2016 Pete Walter <pwalter@fedoraproject.org> - 0.3.0-4
d88f028
- Simplify spec file
d88f028
Matej Chalk 428ea9d
* Tue May 3 2016 Matej Chalk <mchalk@redhat.com> 0.3.0-3
Matej Chalk 428ea9d
- Now contains makedeltarpm and applydeltarpm functionality
Matej Chalk 428ea9d
- Added lzlib-devel dependency for OpenSUSE
Matej Chalk 428ea9d
Matej Chalk 428ea9d
* Tue Apr 12 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.3.0-2
Igor Gnatenko 9f5ca0f
- Cleanup spec
Igor Gnatenko 9f5ca0f
- Make build out-of-tree
Igor Gnatenko 9f5ca0f
- Sync with valgrind arches
Igor Gnatenko 9f5ca0f
- Build documentation
Igor Gnatenko 9f5ca0f
Matej Chalk 428ea9d
* Thu Sep 3 2015 Matej Chalk <mchalk@redhat.com> 0.3.0-1
Matej Chalk 428ea9d
- Bumped minor version (deltarpm creation added)
630f93e
Matej Chalk 428ea9d
* Tue Aug 4 2015 Matej Chalk <mchalk@redhat.com> 0.2.1-1
Matej Chalk 428ea9d
- Added openssl dependency
9e3d0d8
Matej Chalk 7a6d144
* Fri Jul 24 2015 Matej Chalk <mchalk@redhat.com> 0.2.0-2
Matej Chalk 7a6d144
- Fixed bug in test suite
Matej Chalk 7a6d144
Matej Chalk 5f97687
* Tue Jun 23 2015 Matej Chalk <mchalk@redhat.com> 0.2.0-1
Matej Chalk 5f97687
- Bumped minor version
Matej Chalk 5f97687
Matej Chalk 96ef0ec
* Fri Jun 19 2015 Matej Chalk <mchalk@redhat.com> 0.1.3-4
Matej Chalk 96ef0ec
- Memory test only for architectures that have valgrind (#1232157)
6a42c3d
Matej Chalk fbf8bbb
* Wed Mar 11 2015 Matej Chalk <mchalk@redhat.com> 0.1.3-3
Matej Chalk fbf8bbb
- Added cmocka and valgrind package dependencies
Matej Chalk fbf8bbb
Matej Chalk fbf8bbb
* Fri Mar 6 2015 Matej Chalk <mchalk@redhat.com> 0.1.3-2
Matej Chalk fbf8bbb
- Added check section
Matej Chalk fbf8bbb
Matej Chalk fbf8bbb
* Fri Feb 13 2015 Matej Chalk <mchalk@redhat.com> 0.1.3-1
Matej Chalk fbf8bbb
- Bumped version to 0.1.3
Matej Chalk fbf8bbb
- Added CMake tool
Matej Chalk fbf8bbb
Matej Chalk 5512662
* Fri Dec 19 2014 Matej Chalk <mchalk@redhat.com> 0.1.2-4
Matej Chalk 5512662
- Enabled hardened build
Matej Chalk 5512662
Matej Chalk 5512662
* Mon Dec 15 2014 Matej Chalk <mchalk@redhat.com> 0.1.2-3
Matej Chalk 5512662
- Added unversioned .so to package to enable linking with -ldrpm
Matej Chalk 5512662
Matej Chalk 5512662
* Thu Dec 11 2014 Matej Chalk <mchalk@redhat.com> 0.1.2-2
Matej Chalk 5512662
- Removed unversioned .so from package
Matej Chalk 5512662
- Included copies of both GPLv3 and LGPLv3
Matej Chalk 5512662
Matej Chalk 5512662
* Wed Dec 3 2014 Matej Chalk <mchalk@redhat.com> 0.1.2-1
Matej Chalk 5512662
- Bumped version to 0.1.2
Matej Chalk 5512662
- Added drpm.pc file for pkgconfig tool
Matej Chalk 5512662
Matej Chalk 5512662
* Thu Nov 6 2014 Matej Chalk <mchalk@redhat.com> 0.1.1-1
Matej Chalk 5512662
- Bumped version to 0.1.1
Matej Chalk 5512662
Matej Chalk 5512662
* Wed Nov 5 2014 Matej Chalk <mchalk@redhat.com> 0.1.0-1
Matej Chalk 5512662
- Initial RPM release