File helloworld.spec of Package HelloWorld

#
# spec file for package eject
#
# 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:           helloworld
BuildRequires:  gcc-c++
BuildRequires:  automake
BuildRequires:  autoconf
Url:            http://eject.sourceforge.net/
Summary:        A Program to Eject Media under Software Control
License:        GPL-2.0+
Group:          System/Base
Version:        0
Release:        0
Source:         %{name}-%{version}.tar.gz
PreReq:         permissions
BuildRoot:      %{_tmppath}/%{name}-%{version}

%description
Eject allows removable media (typically a CD-ROM, floppy disk, tape, or
JAZ or ZIP disk) to be ejected under software control. The command can
also control some multidisc CD-ROM changers, the autoeject feature
supported by some devices, and close the disc tray of some CD-ROM
drives.

%prep
%setup -q

%build
export CFLAGS="-fPIE"
export CPPFLAGS="-fPIC"
export CXXFLAGS="-fPIC"
export LDFLAGS="-pie"
aclocal
automake -a
autoconf
%configure
make

%install
make install DESTDIR=$RPM_BUILD_ROOT
#UsrMerge
mkdir -p $RPM_BUILD_ROOT/bin
#ln -sf %{_bindir}/helloworld $RPM_BUILD_ROOT/bin
#EndUsrMerge
#%find_lang %{name}

%post
%set_permissions %{_bindir}/helloworld

%verifyscript
%verify_permissions -e %{_bindir}/helloworld

%files
#%defattr(-,root,root)
# %doc README COPYING ChangeLog TODO PORTIN
# %doc %{_mandir}/man?/*
#%verify(not mode) %attr(4750,root,audio) %{_bindir}/helloworld
#%{_bindir}/*
#UsrMerge
/usr/bin/helloworld
#EndUsrMerge

%changelog
* Sun Jan 06 2013 Vincent Danen <cbh2000@gmail.com> 0-0
- This is what I did.