h2o-vl.spec 960 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. %define ver 1.1.1
  2. %define rel 1
  3. Summary: an optimized HTTP server with support for HTTP/1.x and HTTP/2
  4. Name: h2o
  5. Version: %{ver}
  6. Release: %{rel}%{?_dist_release}
  7. License: MIT
  8. Group: System Environment/Daemons
  9. URL: https://github.com/h2o/h2o/
  10. #https://github.com/h2o/h2o/archive/v%{version}.tar.gz
  11. Source0: %{name}-%{version}.tar.gz
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  13. BuildRequires: cmake
  14. BuildRequires: libyaml-devel
  15. BuildRequires: openssl-devel
  16. %description
  17. H2O is a very fast HTTP server written in C. It can also be used as a library.
  18. %prep
  19. %setup -q
  20. %cmake
  21. %build
  22. %__make
  23. %install
  24. rm -rf $RPM_BUILD_ROOT
  25. %makeinstall DESTDIR=$RPM_BUILD_ROOT
  26. %clean
  27. rm -rf $RPM_BUILD_ROOT
  28. %check
  29. #make test
  30. %files
  31. %defattr(-,root,root,-)
  32. %doc README.md Changes LICENSE examples
  33. %{_bindir}/h2o
  34. %dir %{_datadir}/h2o
  35. %{_datadir}/h2o/fetch-ocsp-response
  36. %changelog
  37. * Mon Mar 23 2015 IWAI, Masaharu <iwaim.sub@gmail.com> 1.1.1-1
  38. - Initial build.