|
|
@ -1,19 +1,19 @@
|
|
|
|
|
|
|
|
%global __cmake_in_source_build 1
|
|
|
|
Name: snappy
|
|
|
|
Name: snappy
|
|
|
|
Version: 1.1.8
|
|
|
|
Version: 1.1.8
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Release: 8%{?dist}
|
|
|
|
Summary: Fast compression and decompression library
|
|
|
|
Summary: Fast compression and decompression library
|
|
|
|
|
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
License: BSD
|
|
|
|
URL: https://github.com/google/snappy
|
|
|
|
URL: https://github.com/google/snappy
|
|
|
|
Source0: https://github.com/google/snappy/archive/%{version}.tar.gz
|
|
|
|
Source0: https://github.com/google/snappy/releases/download/%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
# add missing dependency on gtest to snappy_unittest
|
|
|
|
# add missing dependency on gtest to snappy_unittest
|
|
|
|
Patch0: %{name}-gtest.patch
|
|
|
|
Patch0: %{name}-gtest.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gtest-devel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
Snappy is a compression/decompression library. It does not aim for maximum
|
|
|
|
Snappy is a compression/decompression library. It does not aim for maximum
|
|
|
@ -26,11 +26,9 @@ bigger.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: cmake-filesystem
|
|
|
|
Requires: cmake-filesystem
|
|
|
|
Requires: pkgconfig
|
|
|
|
Requires: pkgconfig
|
|
|
|
Obsoletes: %{name}-devel < %{version}-2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
@ -65,15 +63,6 @@ rm -rf %{buildroot}
|
|
|
|
chmod 644 *.txt AUTHORS COPYING NEWS README.md
|
|
|
|
chmod 644 *.txt AUTHORS COPYING NEWS README.md
|
|
|
|
%make_install
|
|
|
|
%make_install
|
|
|
|
install -m644 -D snappy.pc %{buildroot}%{_libdir}/pkgconfig/snappy.pc
|
|
|
|
install -m644 -D snappy.pc %{buildroot}%{_libdir}/pkgconfig/snappy.pc
|
|
|
|
# Address multilib failures while moving files from _libdir to
|
|
|
|
|
|
|
|
# _datadir
|
|
|
|
|
|
|
|
%ifarch x86_64 s390x ppc64 ppc64le aarch64
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/cmake/Modules/lib64/
|
|
|
|
|
|
|
|
mv %{buildroot}%{_libdir}/cmake/Snappy/*cmake %{buildroot}%{_datadir}/cmake/Modules/lib64/
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/cmake/Modules/lib/
|
|
|
|
|
|
|
|
mv %{buildroot}%{_libdir}/cmake/Snappy/*cmake %{buildroot}%{_datadir}/cmake/Modules/lib/
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/snappy/
|
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/snappy/
|
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/snappy-devel/
|
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/snappy-devel/
|
|
|
|
|
|
|
|
|
|
|
@ -85,36 +74,55 @@ ctest -V %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
|
|
|
%doc AUTHORS COPYING NEWS README.md
|
|
|
|
%doc AUTHORS COPYING NEWS README.md
|
|
|
|
%{_libdir}/libsnappy.so.*
|
|
|
|
%{_libdir}/libsnappy.so.*
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
|
|
|
%doc format_description.txt framing_format.txt
|
|
|
|
%doc format_description.txt framing_format.txt
|
|
|
|
%{_includedir}/snappy*.h
|
|
|
|
%{_includedir}/snappy*.h
|
|
|
|
%{_libdir}/libsnappy.so
|
|
|
|
%{_libdir}/libsnappy.so
|
|
|
|
%{_libdir}/pkgconfig/snappy.pc
|
|
|
|
%{_libdir}/pkgconfig/snappy.pc
|
|
|
|
%ifarch x86_64 s390x ppc64 ppc64le aarch64
|
|
|
|
%{_libdir}/cmake/Snappy/
|
|
|
|
%{_datadir}/cmake/Modules/lib64/*.cmake
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%{_datadir}/cmake/Modules/lib/*.cmake
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Wed Jul 26 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 1.1.8-3
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.1.8-8
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Aug 21 2020 Bhupesh Sharma <bhsharma@redhat.com> - 1.1.8-3
|
|
|
|
* Wed Jun 30 2021 Lianbo Jiang <lijiang@redhat.com> - 1.1.8-7
|
|
|
|
- Obsolete snappy-devel versions lower than 1.1.8-2 as lower versions have multilib issues.
|
|
|
|
- Drop BuildRequires dependency on gtest
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 24 2020 Bhupesh Sharma <bhsharma@redhat.com> - 1.1.8-2
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.1.8-6
|
|
|
|
- Fix multilib (i686 and x86) issues with snappy-devel package
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 22 2020 Bhupesh Sharma <bhsharma@redhat.com> - 1.1.8-1
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.8-5
|
|
|
|
- Rebase to latest github version Snappy-1.1.8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
- Also change the URL to reflect to the updated github location.
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.8-4
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 24 2020 Jeff Law <law@redhat.com> - 1.1.8-3
|
|
|
|
|
|
|
|
- Use __cmake_in_source_build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.8-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 15 2020 Martin Gieseking <martin.gieseking@uos.de> - 1.1.8-1
|
|
|
|
|
|
|
|
- Updated to new release.
|
|
|
|
|
|
|
|
- Dropped version-related patch which has been applied upstream (BZ #1527850).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.7-9
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Feb 25 2019 Martin Gieseking <martin.gieseking@uos.de> - 1.1.7-8
|
|
|
|
|
|
|
|
- Moved cmake files to proper directory (BZ #1679727).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.7-7
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.7-6
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Feb 19 2018 Martin Gieseking <martin.gieseking@uos.de> - 1.1.7-5
|
|
|
|
* Mon Feb 19 2018 Martin Gieseking <martin.gieseking@uos.de> - 1.1.7-5
|
|
|
|
- Added BR: gcc-c++ according to new packaging guidelines.
|
|
|
|
- Added BR: gcc-c++ according to new packaging guidelines.
|
|
|
|