./rpmmacro problem.

Issues related to applications and software problems
Posts: 149
Joined: 2017/02/07 21:47:51

./rpmmacro problem.

Postby supertight » 2018/01/31 05:21:54

I'm trying to create an rpm package for xmr-stak.

I've gotten pretty far. However, I'm having some issues with my build directory. I think the ./rpmmacro file is a little off.

My .spec file:

Code: Select all

 Name:           xmr-stak-cpu
Version:        0.x86_64
Release:        0
Summary:        CPU miner monero/aeon.
Group:          miner
License:        GPL
URL:            https://github.com/fireice-uk/xmr-stak-cpu
Vendor:         fireice-uk
Source:         xmr-stak-cpu-0.x86_64.tar.gz
Prefix:         %{_prefix}
Packager:       supertight
BuildRoot:      %{_tmppath}/%{name}-root

This is the first attempt to create rpm package for xmr cpu miner. This mining software created by fireice-uk. Can be use to mine monero/aeon.

%setup -q -n %{name}-%{version}

cmake3 .

[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/%{name}

[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT


The error:

Code: Select all

 Installing: /home/joe/rpmbuild/BUILDROOT/xmr-stak-cpu-0.x86_64-0.x86_64/home/joe/rpmbuild/BUILD/xmr-stak-cpu-0.x86_64/bin/config.txt
+ rm -rf /home/joe/rpmbuild/BUILDROOT/xmr-stak-cpu-0.x86_64-0.x86_64/usr/share/doc/xmr-stak-cpu
+ /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 /home/joe/rpmbuild/BUILD/xmr-stak-cpu-0.x86_64
/usr/lib/rpm/sepdebugcrcfix: Updated 0 CRC32s, 0 CRC32s did match.
+ '[' '%{buildarch}' = noarch ']'
+ case "${QA_CHECK_RPATHS:-}" in
+ /usr/lib/rpm/check-rpaths
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1
+ /usr/lib/rpm/redhat/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-java-repack-jars
Processing files: xmr-stak-cpu-0.x86_64-0.x86_64
error: File not found: /home/joe/rpmbuild/BUILDROOT/xmr-stak-cpu-0.x86_64-0.x86_64/bin/xmr-stak-cpu

RPM build errors:
    File not found: /home/joe/rpmbuild/BUILDROOT/xmr-stak-cpu-0.x86_64-0.x86_64/bin/xmr-stak-cpu

Looks like it's trying to build into this crazy long directory. I can figure out how to get it to stop. I think the rpmmacro file needs to be edited but I'm not sure. I've been googling like a big dog, haven't been able to find an answer. Can someone point me in the correct direction?

Thank you for reading.