2011-03-24 19:15:37 +00:00
|
|
|
Name: snappy
|
2017-08-25 09:58:38 +00:00
|
|
|
Version: 1.1.7
|
2018-07-14 06:21:07 +00:00
|
|
|
Release: 6%{?dist}
|
2011-03-24 19:15:37 +00:00
|
|
|
Summary: Fast compression and decompression library
|
|
|
|
|
2011-04-29 15:36:18 +00:00
|
|
|
License: BSD
|
2017-08-25 09:58:38 +00:00
|
|
|
URL: https://github.com/google/snappy
|
2015-07-14 21:01:07 +00:00
|
|
|
Source0: https://github.com/google/snappy/releases/download/%{version}/%{name}-%{version}.tar.gz
|
2012-02-24 17:42:44 +00:00
|
|
|
|
2017-08-25 09:58:38 +00:00
|
|
|
# add missing dependency on gtest to snappy_unittest
|
|
|
|
Patch0: %{name}-gtest.patch
|
2017-12-20 10:03:52 +00:00
|
|
|
# fix version macros in snappy-stubs-public.h.in (BZ #1527850)
|
|
|
|
Patch1: %{name}-version-macros.patch
|
2017-08-25 09:58:38 +00:00
|
|
|
|
|
|
|
BuildRequires: cmake
|
2018-02-19 12:22:40 +00:00
|
|
|
BuildRequires: gcc-c++
|
2011-03-24 19:15:37 +00:00
|
|
|
BuildRequires: gtest-devel
|
|
|
|
|
|
|
|
%description
|
|
|
|
Snappy is a compression/decompression library. It does not aim for maximum
|
|
|
|
compression, or compatibility with any other compression library; instead, it
|
|
|
|
aims for very high speeds and reasonable compression. For instance, compared to
|
|
|
|
the fastest mode of zlib, Snappy is an order of magnitude faster for most
|
|
|
|
inputs, but the resulting compressed files are anywhere from 20% to 100%
|
|
|
|
bigger.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
2012-02-24 17:42:44 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2017-08-25 09:58:38 +00:00
|
|
|
Requires: cmake-filesystem
|
2017-01-28 07:59:33 +00:00
|
|
|
Requires: pkgconfig
|
2011-03-24 19:15:37 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2017-08-25 09:58:38 +00:00
|
|
|
%patch0 -p1
|
2017-12-20 10:03:52 +00:00
|
|
|
%patch1 -p1
|
2011-03-24 19:15:37 +00:00
|
|
|
|
|
|
|
%build
|
2017-08-25 09:58:38 +00:00
|
|
|
%cmake .
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
# create pkgconfig file
|
|
|
|
cat << EOF >snappy.pc
|
|
|
|
prefix=%{_prefix}
|
|
|
|
exec_prefix=%{_exec_prefix}
|
|
|
|
includedir=%{_includedir}
|
|
|
|
libdir=%{_libdir}
|
|
|
|
|
|
|
|
Name: %{name}
|
|
|
|
Description: A fast compression/decompression library
|
|
|
|
Version: %{version}
|
|
|
|
Cflags: -I\${includedir}
|
|
|
|
Libs: -L\${libdir} -lsnappy
|
|
|
|
EOF
|
2011-03-24 19:15:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2012-01-17 17:53:25 +00:00
|
|
|
rm -rf %{buildroot}
|
2017-08-25 09:58:38 +00:00
|
|
|
chmod 644 *.txt AUTHORS COPYING NEWS README.md
|
|
|
|
%make_install
|
|
|
|
install -m644 -D snappy.pc %{buildroot}%{_libdir}/pkgconfig/snappy.pc
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/cmake/Modules/
|
|
|
|
mv %{buildroot}%{_libdir}/cmake/Snappy/*cmake %{buildroot}%{_datadir}/cmake/Modules/
|
2011-03-24 19:15:37 +00:00
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/snappy/
|
2017-08-25 09:58:38 +00:00
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/snappy-devel/
|
2011-03-24 19:15:37 +00:00
|
|
|
|
|
|
|
%check
|
2017-08-25 09:58:38 +00:00
|
|
|
ctest -V %{?_smp_mflags}
|
2011-03-24 19:15:37 +00:00
|
|
|
|
|
|
|
|
2018-02-03 17:08:34 +00:00
|
|
|
%ldconfig_scriptlets
|
2011-03-24 19:15:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files
|
2017-08-25 09:58:38 +00:00
|
|
|
%doc AUTHORS COPYING NEWS README.md
|
2011-03-24 19:15:37 +00:00
|
|
|
%{_libdir}/libsnappy.so.*
|
|
|
|
|
|
|
|
%files devel
|
2013-02-06 18:49:06 +00:00
|
|
|
%doc format_description.txt framing_format.txt
|
2011-03-24 19:15:37 +00:00
|
|
|
%{_includedir}/snappy*.h
|
|
|
|
%{_libdir}/libsnappy.so
|
2017-01-28 07:59:33 +00:00
|
|
|
%{_libdir}/pkgconfig/snappy.pc
|
2017-08-25 09:58:38 +00:00
|
|
|
%{_datadir}/cmake/Modules/*.cmake
|
2011-03-24 19:15:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2018-07-14 06:21:07 +00:00
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.7-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-02-19 12:22:40 +00:00
|
|
|
* Mon Feb 19 2018 Martin Gieseking <martin.gieseking@uos.de> - 1.1.7-5
|
|
|
|
- Added BR: gcc-c++ according to new packaging guidelines.
|
|
|
|
|
2018-02-09 17:06:05 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.7-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2018-02-03 17:08:34 +00:00
|
|
|
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.1.7-3
|
|
|
|
- Switch to %%ldconfig_scriptlets
|
|
|
|
|
2017-12-20 10:03:52 +00:00
|
|
|
* Wed Dec 20 2017 Martin Gieseking <martin.gieseking@uos.de> - 1.1.7-2
|
|
|
|
- Fixed https://bugzilla.redhat.com/show_bug.cgi?id=1527850
|
|
|
|
|
2017-08-25 09:58:38 +00:00
|
|
|
* Fri Aug 25 2017 Martin Gieseking <martin.gieseking@uos.de> - 1.1.7-1
|
|
|
|
- Updated to new release.
|
|
|
|
- Build with CMake since autotool support is deprecated.
|
|
|
|
|
2017-08-03 08:37:30 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-27 18:51:27 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-11 13:38:49 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2017-01-28 17:39:22 +00:00
|
|
|
* Sat Jan 28 2017 Martin Gieseking <martin.gieseking@uos.de> - 1.1.4-2
|
|
|
|
- Rebuilt with https://github.com/google/snappy/archive/1.1.4.tar.gz since
|
|
|
|
%%{source0} contains different and buggy code.
|
|
|
|
https://groups.google.com/forum/#!topic/snappy-compression/uhELq553TrI
|
|
|
|
|
2017-01-28 07:59:33 +00:00
|
|
|
* Sat Jan 28 2017 Martin Gieseking <martin.gieseking@uos.de> - 1.1.4-1
|
|
|
|
- Updated to new release.
|
|
|
|
- Added pkgconfig file now coming with the sources.
|
|
|
|
|
2016-02-05 00:13:41 +00:00
|
|
|
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-07-14 21:01:07 +00:00
|
|
|
* Tue Jul 14 2015 Martin Gieseking <martin.gieseking@uos.de> 1.1.3-1
|
|
|
|
- Updated to new release.
|
|
|
|
|
2015-06-19 01:09:55 +00:00
|
|
|
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-05-02 15:51:18 +00:00
|
|
|
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.1.1-5
|
|
|
|
- Rebuilt for GCC 5 C++11 ABI change
|
|
|
|
|
2015-02-25 08:22:33 +00:00
|
|
|
* Wed Feb 25 2015 Martin Gieseking <martin.gieseking@uos.de> 1.1.1-4
|
|
|
|
- Rebuilt for new GCC 5.0 ABI.
|
|
|
|
|
2014-08-18 02:51:40 +00:00
|
|
|
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-08 06:38:57 +00:00
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-02-24 14:31:14 +00:00
|
|
|
* Mon Feb 24 2014 Martin Gieseking <martin.gieseking@uos.de> 1.1.1-1
|
|
|
|
- Updated to new release.
|
|
|
|
|
2013-08-04 15:01:47 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-02-06 18:49:06 +00:00
|
|
|
* Wed Feb 06 2013 Martin Gieseking <martin.gieseking@uos.de> 1.1.0-1
|
|
|
|
- updated to new release
|
|
|
|
|
2012-07-21 20:05:34 +00:00
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.5-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-02-24 17:42:44 +00:00
|
|
|
* Fri Feb 24 2012 Martin Gieseking <martin.gieseking@uos.de> 1.0.5-1
|
|
|
|
- updated to release 1.0.5
|
|
|
|
- made dependency of devel package on base package arch dependant
|
|
|
|
|
2012-01-17 17:53:25 +00:00
|
|
|
* Tue Jan 17 2012 Nathaniel McCallum <nathaniel@natemccallum.com> - 1.0.4-3
|
|
|
|
- Add in buildroot stuff for EL5 build
|
|
|
|
|
2012-01-14 04:05:21 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-09-16 08:29:07 +00:00
|
|
|
* Fri Sep 16 2011 Martin Gieseking <martin.gieseking@uos.de> 1.0.4-1
|
|
|
|
- updated to release 1.0.4
|
|
|
|
|
2011-06-04 08:15:39 +00:00
|
|
|
* Sat Jun 04 2011 Martin Gieseking <martin.gieseking@uos.de> 1.0.3-1
|
|
|
|
- updated to release 1.0.3
|
|
|
|
- added format description to devel package
|
|
|
|
|
2011-04-29 15:36:18 +00:00
|
|
|
* Fri Apr 29 2011 Martin Gieseking <martin.gieseking@uos.de> 1.0.2-1
|
|
|
|
- updated to release 1.0.2
|
|
|
|
- changed License to BSD
|
|
|
|
- dropped the patch as it has been applied upstream
|
|
|
|
|
2011-03-24 19:15:37 +00:00
|
|
|
* Thu Mar 24 2011 Martin Gieseking <martin.gieseking@uos.de> 1.0.0-3
|
|
|
|
- added file COPYING from the upstream repo
|
|
|
|
|
|
|
|
* Thu Mar 24 2011 Martin Gieseking <martin.gieseking@uos.de> 1.0.0-2
|
|
|
|
- replaced $CXXFLAGS with %%{optflags} in %%build section
|
|
|
|
- removed empty %%doc entry from %%files devel
|
|
|
|
|
|
|
|
* Thu Mar 24 2011 Martin Gieseking <martin.gieseking@uos.de> 1.0.0-1
|
|
|
|
- initial package
|
|
|
|
|