Blame SPECS/pmdk-convert.spec

70ac91
%global upstreamversion 1.7
70ac91
70ac91
Name:		pmdk-convert
70ac91
Version:	1.7
70ac91
Release:	8%{?dist}
70ac91
Summary:	Conversion tool for PMDK pools
70ac91
# Note: utils/cstyle is CDDL licensed. It's only used during development and it's NOT part of the binary RPM.
70ac91
License:	BSD
70ac91
URL:		https://github.com/pmem/pmdk-convert
70ac91
70ac91
Source0:	https://github.com/pmem/pmdk-convert/releases/download/%{upstreamversion}/pmdk-convert-%{upstreamversion}.tar.gz
70ac91
Source1:	https://github.com/pmem/pmdk/archive/1.0.tar.gz#/nvml-1.0.tar.gz
70ac91
Source2:	https://github.com/pmem/pmdk/archive/1.1.tar.gz#/nvml-1.1.tar.gz
70ac91
Source3:	https://github.com/pmem/pmdk/releases/download/1.2.4/pmdk-1.2.4.tar.gz
70ac91
Source4:	https://github.com/pmem/pmdk/releases/download/1.3.3/pmdk-1.3.3.tar.gz
70ac91
Source5:	https://github.com/pmem/pmdk/releases/download/1.4.3/pmdk-1.4.3.tar.gz
70ac91
Source6:	https://github.com/pmem/pmdk/releases/download/1.5.2/pmdk-1.5.2.tar.gz
70ac91
Source7:	https://github.com/pmem/pmdk/releases/download/1.6.1/pmdk-1.6.1.tar.gz
70ac91
Source8:	https://github.com/pmem/pmdk/releases/download/1.7/pmdk-1.7.tar.gz
70ac91
70ac91
BuildRequires:	cmake >= 3.3
70ac91
BuildRequires:	glibc-devel
70ac91
BuildRequires:	gcc
70ac91
BuildRequires:	g++
70ac91
BuildRequires:	gdb
70ac91
70ac91
# PMDK is currently available only on x86_64
70ac91
# Relevant bug reports:
70ac91
# https://bugzilla.redhat.com/show_bug.cgi?id=1340634
70ac91
# https://bugzilla.redhat.com/show_bug.cgi?id=1340635
70ac91
# https://bugzilla.redhat.com/show_bug.cgi?id=1340636
70ac91
# https://bugzilla.redhat.com/show_bug.cgi?id=1340637
70ac91
ExclusiveArch: x86_64
70ac91
70ac91
%description
70ac91
pmdk-convert is a tool for conversion of PMDK pools from any version
70ac91
to any consecutive version. Currently only libpmemobj pools require
70ac91
conversion and this tool supports only those kind of pools.
70ac91
70ac91
%files
70ac91
%{_bindir}/pmdk-convert
70ac91
%{_mandir}/man1/pmdk-convert.1.gz
70ac91
%dir %{_libdir}/pmdk-convert
70ac91
%{_libdir}/pmdk-convert/libpmem-convert.so
70ac91
%{_libdir}/pmdk-convert/pmemobj_convert_v1.so
70ac91
%{_libdir}/pmdk-convert/pmemobj_convert_v2.so
70ac91
%{_libdir}/pmdk-convert/pmemobj_convert_v3.so
70ac91
%{_libdir}/pmdk-convert/pmemobj_convert_v4.so
70ac91
%{_libdir}/pmdk-convert/pmemobj_convert_v5.so
70ac91
%{_libdir}/pmdk-convert/pmemobj_convert_v6.so
70ac91
70ac91
%license LICENSE
70ac91
70ac91
%doc ChangeLog README.md
70ac91
70ac91
%prep
70ac91
%setup -q
70ac91
cp %{S:1} 1.0.tar.gz
70ac91
cp %{S:2} 1.1.tar.gz
70ac91
cp %{S:3} 1.2.4.tar.gz
70ac91
cp %{S:4} 1.3.3.tar.gz
70ac91
cp %{S:5} 1.4.3.tar.gz
70ac91
cp %{S:6} 1.5.2.tar.gz
70ac91
cp %{S:7} 1.6.1.tar.gz
70ac91
cp %{S:8} 1.7.tar.gz
70ac91
70ac91
%build
70ac91
mkdir build
70ac91
cd build
70ac91
# TESTS_USE_FORCED_PMEM=ON to speed up tests on non-pmem file systems
70ac91
%cmake .. -DTESTS_USE_FORCED_PMEM=ON
70ac91
%cmake_build
70ac91
70ac91
%install
70ac91
cd build
70ac91
%cmake_install
70ac91
70ac91
%check
70ac91
cd build
70ac91
%ctest
70ac91
70ac91
%if 0%{?__debug_package} == 0
70ac91
%debug_package
70ac91
%endif
70ac91
70ac91
%changelog
70ac91
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.7-8
70ac91
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
70ac91
  Related: rhbz#1991688
70ac91
70ac91
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.7-7
70ac91
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
70ac91
70ac91
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-6
70ac91
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
70ac91
70ac91
* Sat Oct 03 2020 Adam Borowski <kilobyte@angband.pl> - 1.7-5
70ac91
- Convert to new cmake macros, fixing FTBFS.
70ac91
70ac91
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-4
70ac91
- Second attempt - Rebuilt for
70ac91
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
70ac91
70ac91
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-3
70ac91
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
70ac91
70ac91
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.7-2
70ac91
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
70ac91
70ac91
* Tue Oct 01 2019 Marcin Ślusarz <marcin.slusarz@intel.com> - 1.7-1
70ac91
- Update to 1.7
70ac91
70ac91
* Tue Oct 01 2019 Marcin Ślusarz <marcin.slusarz@intel.com> - 1.5.2-1
70ac91
- Update to 1.5.2
70ac91
70ac91
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-2
70ac91
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
70ac91
70ac91
* Fri Mar 08 2019 Marcin Ślusarz <marcin.slusarz@intel.com> - 1.5.1-1
70ac91
- Update to 1.5.1
70ac91
70ac91
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-2
70ac91
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
70ac91
70ac91
* Fri Dec 14 2018 Marcin Ślusarz <marcin.slusarz@intel.com> - 1.5-1
70ac91
- Initial RPM release