aoetools.spec 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. %define sbind %{buildroot}%{_sbindir}
  2. %define mand %{buildroot}%{_mandir}
  3. %define udevrulesd %{buildroot}%{_sysconfdir}/udev/rules.d
  4. %define docfiles COPYING HACKING NEWS README
  5. Summary: ATA over Ethernet (AoE) utilities
  6. Name: aoetools
  7. Vendor: Coraid, Inc.
  8. Packager: Ed Cashin <ecashin@coraid.com>
  9. Version: 36
  10. Release: 1%{dist}
  11. URL: http://aoetools.sourceforge.net/
  12. Source0: %{name}-%{version}.tar.gz
  13. Source1: 60-aoe.rules
  14. License: GPLv2
  15. Group: Application/System
  16. %description
  17. The command-line utilities for using the aoe driver to work with
  18. ATA over Ethernet storage targets on a Linux system.
  19. %define debug_package %{nil}
  20. %prep
  21. %setup -n %{name}-%{version}
  22. %build
  23. make SBINDIR=%{sbind} MANDIR=%{mand}
  24. %install
  25. mkdir -p -m 755 %{sbind}/
  26. mkdir -p -m 755 %{mand}/man8/
  27. make install SBINDIR=%{sbind} MANDIR=%{mand}
  28. mkdir -p -m 755 %{udevrulesd}/
  29. install -m 644 %{SOURCE1} %{udevrulesd}
  30. %files
  31. %defattr(-,root,root)
  32. %doc %docfiles
  33. %attr(0755,root,root) %{_sbindir}/*
  34. %{_mandir}/man8/*
  35. %config %{_sysconfdir}/udev/rules.d/*
  36. %changelog
  37. * Thu Aug 15 2013 Ed Cashin <ecashin@coraid.com> - 36-1
  38. - Update for v36
  39. * Wed Jul 10 2013 Ed Cashin <ecashin@coraid.com> - 35-1
  40. - Initial package for aoetools v35 plus udev rules