Name: bdcs-api Version: 0.5.0 Release: 1.el7 Summary: BDCS API Rust Packge License: MIT URL: https://github.com/weldr/bdcs-api-rs Source0: rust-nightly-2017-07-10.tar.gz Source1: bdcs-api-rs.tar.gz #BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gcc BuildRequires: sqlite-devel BuildRequires: openssl-devel BuildRequires: cmake %description %prep %setup -q -b 0 -T -c rust-nightly-2017-07-10 -n rust-nightly-2017-07-10 %setup -q -b 1 -T -c bdcs-api-rs %build export RUSTFLAGS="-C opt-level=3 -g -Clink-args=-Wl,-z,relro,-z,now" PATH=%{_builddir}/rust-nightly-2017-07-10/bin/:$PATH cargo build --release %install #rm -rf $RPM_BUILD_ROOT #make install DESTDIR=$RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_bindir} cp target/release/bdcs-api-server $RPM_BUILD_ROOT%{_bindir} cp target/release/depclose $RPM_BUILD_ROOT%{_bindir} %clean #rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{_bindir}/* %doc %changelog