bfgminer.spec 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. #
  2. # Copyright (c) 2013 Christian Berendt.
  3. #
  4. # All modifications and additions to the file contributed by third parties
  5. # remain the property of their copyright owners, unless otherwise agreed
  6. # upon. The license for this file, and modifications and additions to the
  7. # file, is the same license as for the pristine package itself (unless the
  8. # license for the pristine package is not an Open Source License, in which
  9. # case the license is the MIT License). An "Open Source License" is a
  10. # license that conforms to the Open Source Definition (Version 1.9)
  11. # published by the Open Source Initiative.
  12. #
  13. # Please submit bugfixes or comments via http://bugs.opensuse.org/
  14. #
  15. Name: bfgminer
  16. Version: 3.0.0
  17. Release: 0
  18. Summary: A BitCoin miner
  19. License: GPL-3.0
  20. Group: Productivity/Other
  21. Url: https://github.com/luke-jr/bfgminer
  22. BuildRoot: %{_tmppath}/%{name}-%{version}-build
  23. Source: http://luke.dashjr.org/programs/bitcoin/files/bfgminer/%{version}/%{name}-%{version}.tbz2
  24. Patch0: Makefile.in.patch
  25. Patch1: Makefile.am.patch
  26. BuildRequires: automake
  27. BuildRequires: libtool
  28. BuildRequires: pkg-config
  29. BuildRequires: make
  30. BuildRequires: gcc
  31. BuildRequires: yasm
  32. BuildRequires: libjansson-devel
  33. BuildRequires: libcurl-devel
  34. BuildRequires: libusb-devel
  35. BuildRequires: libudev-devel
  36. BuildRequires: ncurses-devel
  37. %description
  38. This is a multi-threaded multi-pool FPGA, GPU and CPU miner with ATI GPU
  39. monitoring, (over)clocking and fanspeed support for bitcoin and derivative
  40. coins.
  41. %package devel
  42. Summary: A BitCoin miner
  43. Group: Development/Libraries/C and C++
  44. Requires: %{name} = %{version}-%{release}
  45. %description devel
  46. This is a multi-threaded multi-pool FPGA, GPU and CPU miner with ATI GPU
  47. monitoring, (over)clocking and fanspeed support for bitcoin and derivative
  48. coins.
  49. %prep
  50. %setup -q
  51. %patch0 -p1
  52. %patch1 -p1
  53. %configure \
  54. --enable-cpumining \
  55. --enable-scrypt
  56. %build
  57. make %{?_smp_mflags}
  58. %install
  59. %make_install
  60. install -d -m 755 %{buildroot}/%{_datadir}/%{name}
  61. mv %{buildroot}%{_bindir}/*.cl %{buildroot}/%{_datadir}/%{name}
  62. mv %{buildroot}%{_bindir}/bitstreams %{buildroot}/%{_datadir}/%{name}
  63. %clean
  64. rm -rf %{buildroot}
  65. %post -p /sbin/ldconfig
  66. %postun -p /sbin/ldconfig
  67. %files
  68. %defattr(-,root,root,-)
  69. %{_bindir}/*
  70. %{_libdir}/*
  71. %dir %{_datadir}/%{name}
  72. %{_datadir}/%{name}/*
  73. %files devel
  74. %defattr(-,root,root,-)
  75. %{_includedir}/*
  76. %changelog