nsq.spec 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. %define name nsq
  2. %define version 1.1.1-alpha
  3. %define release 1
  4. %define path usr/local
  5. %define group Database/Applications
  6. %define __os_install_post %{nil}
  7. Summary: nsq
  8. Name: %{name}
  9. Version: %{version}
  10. Release: %{release}
  11. Group: %{group}
  12. Packager: Matt Reiferson <mreiferson@gmail.com>
  13. License: Apache
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
  15. AutoReqProv: no
  16. # we just assume you have go installed. You may or may not have an RPM to depend on.
  17. # BuildRequires: go
  18. %description
  19. NSQ - A realtime distributed messaging platform
  20. https://github.com/nsqio/nsq
  21. %prep
  22. mkdir -p $RPM_BUILD_DIR/%{name}-%{version}-%{release}
  23. cd $RPM_BUILD_DIR/%{name}-%{version}-%{release}
  24. git clone git@github.com:nsqio/nsq.git
  25. %build
  26. cd $RPM_BUILD_DIR/%{name}-%{version}-%{release}/nsq
  27. make PREFIX=/%{path}
  28. %install
  29. export DONT_STRIP=1
  30. rm -rf $RPM_BUILD_ROOT
  31. cd $RPM_BUILD_DIR/%{name}-%{version}-%{release}/nsq
  32. make PREFIX=/${path} DESTDIR=$RPM_BUILD_ROOT install
  33. %files
  34. /%{path}/bin/nsqadmin
  35. /%{path}/bin/nsqd
  36. /%{path}/bin/nsqlookupd
  37. /%{path}/bin/nsq_to_file
  38. /%{path}/bin/nsq_to_http
  39. /%{path}/bin/nsq_to_nsq
  40. /%{path}/bin/nsq_tail
  41. /%{path}/bin/nsq_stat
  42. /%{path}/bin/to_nsq