File hello.spec of Package hello
# spec file for hello
#
Name: hello
Version: 1.0.0
Release: 0
#
Summary: for test
License: GPL
Group: Development/Libraries/C
#
Url: http://sh.intel.com
Source: %{name}-%{version}.tar.gz
#
BuildRoot: %{_tmppath}/%{name}-build
BuildRequires: gcc
%description
hello for test
%prep
%setup -q
%build
gcc -o hello hello.c
%install
install -d %{buildroot}/usr/bin/
mv hello %{buildroot}/usr/bin/
%post
%postun
%files
%defattr(-, root, root, -)
/usr/bin/hello
%changelog