File helloworld.spec of Package helloworld

Name:     helloworld
Version:  0.1
Release:  1
Summary:  a "Hello World" program
License:  GPLv3+    
Source0:  helloworld-0.1.tar.gz
BuildRequires: cmake gcc-c++

%description
The "Hello World" program

%prep
%setup

%build
cmake .
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
# Install
# There is currently no make install so we do this manually

# Binaries
install -d -m755 $RPM_BUILD_ROOT%{_bindir}
install -m755 src/helloworld $RPM_BUILD_ROOT%{_bindir}/

%files
%{_bindir}/helloworld