snappy-vl.spec 3.4 KB

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