Browse Source

added SPEC file for SUSE distributions

usable packages are available at the following URL:
https://build.opensuse.org/project/show?project=home%3Acberendt
Christian Berendt 13 years ago
parent
commit
df8e449d7e

+ 11 - 0
packaging/suse/Makefile.am.patch

@@ -0,0 +1,11 @@
+--- a/Makefile.am	2013-04-04 18:03:03.676180429 +0200
++++ b/Makefile.am	2013-04-04 18:03:28.760195976 +0200
+@@ -36,7 +36,7 @@
+ if NEED_LIBBLKMAKER
+ SUBDIRS           += libblkmaker
+ bfgminer_CPPFLAGS += -Ilibblkmaker
+-bfgminer_LDFLAGS  += -Llibblkmaker/.libs -Wl,-rpath,libblkmaker/.libs
++bfgminer_LDFLAGS  += -Llibblkmaker/.libs
+ bfgminer_LDADD    += -lblkmaker-0.1 -lblkmaker_jansson-0.1
+ 
+ if HAVE_CYGWIN

+ 11 - 0
packaging/suse/Makefile.in.patch

@@ -0,0 +1,11 @@
+--- a/Makefile.in	2013-04-04 18:03:11.198185097 +0200
++++ b/Makefile.in	2013-04-04 18:03:39.020202287 +0200
+@@ -57,7 +57,7 @@
+ bin_PROGRAMS = bfgminer$(EXEEXT) $(am__EXEEXT_1) bfgminer-rpc$(EXEEXT)
+ @NEED_LIBBLKMAKER_TRUE@am__append_1 = libblkmaker
+ @NEED_LIBBLKMAKER_TRUE@am__append_2 = -Ilibblkmaker
+-@NEED_LIBBLKMAKER_TRUE@am__append_3 = -Llibblkmaker/.libs -Wl,-rpath,libblkmaker/.libs
++@NEED_LIBBLKMAKER_TRUE@am__append_3 = -Llibblkmaker/.libs
+ @NEED_LIBBLKMAKER_TRUE@am__append_4 = -lblkmaker-0.1 -lblkmaker_jansson-0.1
+ @HAVE_CYGWIN_TRUE@@NEED_LIBBLKMAKER_TRUE@am__append_5 = cygblkmaker-0.1-0.dll cygblkmaker_jansson-0.1-0.dll
+ @HAS_SCRYPT_TRUE@am__append_6 = scrypt.c scrypt.h

+ 4 - 0
packaging/suse/bfgminer.changes

@@ -0,0 +1,4 @@
+-------------------------------------------------------------------
+Thu Apr  4 17:06:56 CEST 2013 - berendt@b1-systems.de
+
+- initial package for bfgminer version 2.99.1

+ 6 - 0
packaging/suse/bfgminer.rpmlintrc

@@ -0,0 +1,6 @@
+addFilter("devel-file-in-non-devel-package")
+addFilter("no-manual-page-for-binary")
+addFilter("wrong-script-end-of-line-encoding")
+addFilter("standard-dir-owned-by-package")
+addFilter("script-without-shebang")
+addFilter("binary-or-shlib-calls-gethostbyname")

+ 90 - 0
packaging/suse/bfgminer.spec

@@ -0,0 +1,90 @@
+#
+# Copyright (c) 2013 Christian Berendt.
+#
+# All modifications and additions to the file contributed by third parties
+# remain the property of their copyright owners, unless otherwise agreed
+# upon. The license for this file, and modifications and additions to the
+# file, is the same license as for the pristine package itself (unless the
+# license for the pristine package is not an Open Source License, in which
+# case the license is the MIT License). An "Open Source License" is a
+# license that conforms to the Open Source Definition (Version 1.9)
+# published by the Open Source Initiative.
+#
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
+#
+
+Name:           bfgminer
+Version:        2.99.1
+Release:        0
+Summary:        A BitCoin miner
+License:        GPL-3.0
+Group:          Productivity/Other
+Url:            https://github.com/luke-jr/bfgminer
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+Source:         http://luke.dashjr.org/programs/bitcoin/files/bfgminer/%{version}/%{name}-%{version}.tbz2
+Patch0:         Makefile.in.patch
+Patch1:         Makefile.am.patch
+
+BuildRequires:  automake
+BuildRequires:  libtool
+BuildRequires:  pkg-config
+BuildRequires:  make
+BuildRequires:  gcc
+BuildRequires:  yasm
+BuildRequires:  libjansson-devel
+BuildRequires:  libcurl-devel
+BuildRequires:  libusb-devel
+BuildRequires:  libudev-devel
+BuildRequires:  ncurses-devel
+
+%description
+This is a multi-threaded multi-pool FPGA, GPU and CPU miner with ATI GPU
+monitoring, (over)clocking and fanspeed support for bitcoin and derivative
+coins.
+
+%package devel
+Summary:        A BitCoin miner
+Group:          Development/Libraries/C and C++
+Requires:       %{name} = %{version}-%{release}
+
+%description devel
+This is a multi-threaded multi-pool FPGA, GPU and CPU miner with ATI GPU
+monitoring, (over)clocking and fanspeed support for bitcoin and derivative
+coins.
+
+%prep
+%setup -q
+%patch0 -p1
+%patch1 -p1
+%configure \
+  --enable-cpumining \
+  --enable-scrypt
+
+%build
+make %{?_smp_mflags}
+
+%install
+%make_install
+
+install -d -m 755 %{buildroot}/%{_datadir}/%{name}
+mv %{buildroot}%{_bindir}/*.cl %{buildroot}/%{_datadir}/%{name}
+mv %{buildroot}%{_bindir}/bitstreams %{buildroot}/%{_datadir}/%{name}
+
+%clean
+rm -rf %{buildroot}
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%{_bindir}/*
+%{_libdir}/*
+%dir %{_datadir}/%{name}
+%{_datadir}/%{name}/*
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/*
+
+%changelog