90 lines
2.3 KiB
RPMSpec
90 lines
2.3 KiB
RPMSpec
Name: snappy
|
|
Version: 1.0.0
|
|
Release: 3%{?dist}
|
|
Summary: Fast compression and decompression library
|
|
|
|
Group: System Environment/Libraries
|
|
License: ASL 2.0
|
|
URL: http://code.google.com/p/snappy/
|
|
Source0: http://snappy.googlecode.com/files/%{name}-%{version}.tar.gz
|
|
|
|
# Add file COPYING from the upstream trunk as the one bundled with the current
|
|
# tarball contains the wrong license text (BSD).
|
|
Source1: http://snappy.googlecode.com/svn/trunk/COPYING
|
|
|
|
# Initialize gtest properly.
|
|
# http://code.google.com/p/snappy/issues/detail?id=19
|
|
Patch0: %{name}-%{version}-gtest.patch
|
|
|
|
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}
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description devel
|
|
The %{name}-devel package contains libraries and header files for
|
|
developing applications that use %{name}.
|
|
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch0 -p1
|
|
|
|
cp -p %{SOURCE1} .
|
|
|
|
|
|
%build
|
|
%configure CXXFLAGS="%{optflags} -DNDEBUG" --disable-static
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
make install DESTDIR=%{buildroot}
|
|
rm -rf %{buildroot}%{_datadir}/doc/snappy/
|
|
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
|
|
|
|
|
%check
|
|
make check
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc AUTHORS ChangeLog COPYING NEWS README
|
|
%{_libdir}/libsnappy.so.*
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%{_includedir}/snappy*.h
|
|
%{_libdir}/libsnappy.so
|
|
|
|
|
|
%changelog
|
|
* 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
|
|
|