snappy/snappy.spec

96 lines
2.4 KiB
RPMSpec
Raw Normal View History

2012-05-24 05:56:46 +04:00
%define major 1
%define libname %mklibname %{name} %{major}
%define develname %mklibname %{name} -d
2012-02-02 01:22:33 +04:00
2012-05-24 05:56:46 +04:00
Summary: Fast compression and decompression library
Name: snappy
Version: 1.0.5
Release: 2
Group: System/Libraries
License: BSD
URL: http://code.google.com/p/snappy/
Source0: http://snappy.googlecode.com/files/%{name}-%{version}.tar.gz
2012-02-02 01:22:33 +04:00
2012-05-24 05:56:46 +04:00
BuildRequires: gtest-devel
2012-02-02 01:22:33 +04:00
%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.
2012-05-24 05:56:46 +04:00
%package -n %{libname}
2012-02-02 01:22:33 +04:00
Group: System/Libraries
2012-05-24 05:56:46 +04:00
Summary: Library for %{name}
%rename %{name}
2012-02-02 01:22:33 +04:00
2012-05-24 05:56:46 +04:00
%description -n %{libname}
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.
2012-02-02 01:22:33 +04:00
2012-05-24 05:56:46 +04:00
This package contains shared libraries for %{name}.
2012-02-02 01:22:33 +04:00
2012-05-24 05:56:46 +04:00
%package -n %{develname}
Summary: Development files for %{name}
Group: Development/C
Requires: %{libname} = %{version}-%{release}
2012-02-02 01:22:33 +04:00
2012-05-24 05:56:46 +04:00
%description -n %{develname}
This package contains libraries and header files for developing applications
that use %{name}.
2012-02-02 01:22:33 +04:00
%prep
%setup -q
%build
2012-05-24 05:56:46 +04:00
%configure2_5x \
--disable-static
2012-02-02 01:22:33 +04:00
%make
%install
%makeinstall_std
rm -rf %{buildroot}%{_datadir}/doc/snappy/
%check
make check
2012-05-24 05:56:46 +04:00
%files -n %{libname}
%doc COPYING
%{_libdir}/libsnappy.so.%{major}*
2012-02-02 01:22:33 +04:00
2012-05-24 05:56:46 +04:00
%files -n %{develname}
%doc AUTHORS ChangeLog NEWS README
2012-02-02 01:22:33 +04:00
%doc format_description.txt
%{_includedir}/snappy*.h
%{_libdir}/libsnappy.so
2012-05-24 05:56:46 +04:00
2012-02-02 01:22:33 +04:00
%changelog
2012-05-24 05:56:46 +04:00
* Tue May 22 2012 Matthew Dawkins <mattydaw@mandriva.org> 1.0.5-2
+ Revision: 800143
- rebuid fixed lib pkg name
* Tue May 22 2012 Matthew Dawkins <mattydaw@mandriva.org> 1.0.5-1
+ Revision: 800121
- imported package snappy
2012-02-02 01:22:33 +04:00
* Fri Dec 02 2011 Alexander Khrukin <akhrukin@mandriva.org> 1.0.4-3
+ Revision: 737249
- release bump
- Fixes accroding to Mandriva library packaging policy #64877
* Tue Nov 22 2011 Alexander Khrukin <akhrukin@mandriva.org> 1.0.4-2
+ Revision: 732268
- BS fix
- BS fix
- imported package snappy