File tutorial.spec of Package tutorial

#
# spec file for package hello
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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:           tutorial
# How to define macros
%define hello echo "hello world"
Summary:        This is trivial package with bad style, but easy to use the OBS tutorial
License:        GPL-3.0+
Group:          Development/Tools/Other
Version:        2.8
Release:        0
Url:            none
Source0:        tutorial-2.8.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
PreReq:         %install_info_prereq

%description
This is trivial package with bad style, but easy to use the OBS tutorial.

There is absolutely no value in this package other than it is easy to modify in the tutorial

%prep
# Use defined macro
%{hello}
%setup -q

%build
export CFLAGS="%{optflags}"
make
ls -l tutorial

%install
echo %{_bindir}/*
ls %{_bindir}/
%make_install

%files 
%defattr(-, root, root)
%{_bindir}/*

%changelog