snappy-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. Name: snappy
  2. Version: 1.0.5
  3. Release: 1%{?_dist_release}
  4. Summary: Fast compression and decompression library
  5. Summary(ja): 高速な圧縮・展開ライブラリ
  6. Group: System Environment/Libraries
  7. License: BSD
  8. URL: http://code.google.com/p/snappy/
  9. Source0: http://snappy.googlecode.com/files/%{name}-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  11. BuildRequires: gtest-devel
  12. %description
  13. Snappy is a compression/decompression library. It does not aim for maximum
  14. compression, or compatibility with any other compression library; instead, it
  15. aims for very high speeds and reasonable compression. For instance, compared to
  16. the fastest mode of zlib, Snappy is an order of magnitude faster for most
  17. inputs, but the resulting compressed files are anywhere from 20% to 100%
  18. bigger.
  19. %package devel
  20. Summary: Development files for %{name}
  21. Summary(ja): %{name} の開発ファイル
  22. Group: Development/Libraries
  23. Requires: %{name}%{?_isa} = %{version}-%{release}
  24. %description devel
  25. The %{name}-devel package contains libraries and header files for
  26. developing applications that use %{name}.
  27. %prep
  28. %setup -q
  29. %build
  30. %configure CXXFLAGS="%{optflags} -DNDEBUG" --disable-static
  31. make %{?_smp_mflags}
  32. %install
  33. rm -rf %{buildroot}
  34. make install DESTDIR=%{buildroot}
  35. rm -rf %{buildroot}%{_datadir}/doc/snappy/
  36. find %{buildroot} -name '*.la' -exec rm -f {} ';'
  37. %clean
  38. rm -rf %{buildroot}
  39. %check
  40. make check
  41. %post -p /sbin/ldconfig
  42. %postun -p /sbin/ldconfig
  43. %files
  44. %defattr(-,root,root,-)
  45. %doc AUTHORS ChangeLog COPYING NEWS README
  46. %{_libdir}/libsnappy.so.*
  47. %files devel
  48. %defattr(-,root,root,-)
  49. %doc format_description.txt
  50. %{_includedir}/snappy*.h
  51. %{_libdir}/libsnappy.so
  52. %changelog
  53. * Wed Oct 24 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.5-1
  54. - initial build for Vine Linux
  55. * Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.5-2
  56. - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
  57. * Fri Feb 24 2012 Martin Gieseking <martin.gieseking@uos.de> 1.0.5-1
  58. - updated to release 1.0.5
  59. - made dependency of devel package on base package arch dependant
  60. * Tue Jan 17 2012 Nathaniel McCallum <nathaniel@natemccallum.com> - 1.0.4-3
  61. - Add in buildroot stuff for EL5 build
  62. * Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-2
  63. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  64. * Fri Sep 16 2011 Martin Gieseking <martin.gieseking@uos.de> 1.0.4-1
  65. - updated to release 1.0.4
  66. * Sat Jun 04 2011 Martin Gieseking <martin.gieseking@uos.de> 1.0.3-1
  67. - updated to release 1.0.3
  68. - added format description to devel package
  69. * Fri Apr 29 2011 Martin Gieseking <martin.gieseking@uos.de> 1.0.2-1
  70. - updated to release 1.0.2
  71. - changed License to BSD
  72. - dropped the patch as it has been applied upstream
  73. * Thu Mar 24 2011 Martin Gieseking <martin.gieseking@uos.de> 1.0.0-3
  74. - added file COPYING from the upstream repo
  75. * Thu Mar 24 2011 Martin Gieseking <martin.gieseking@uos.de> 1.0.0-2
  76. - replaced $CXXFLAGS with %%{optflags} in %%build section
  77. - removed empty %%doc entry from %%files devel
  78. * Thu Mar 24 2011 Martin Gieseking <martin.gieseking@uos.de> 1.0.0-1
  79. - initial package