#   FILE: %(FILE) --
# AUTHOR: %(FULLNAME) <%(EMAIL)>
#   DATE: %(DAY) %(MONTH) %(YEAR)
#
# Copyright (c) %(YEAR) %(FULLNAME) <%(EMAIL)>
# All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

%define rel 1
%define prefix /usr

Summary: FIXME: one line summary
Name: @PACKAGE@
Version: @VERSION@
Release: %rel
Copyright: GPL
Group: FIXME: group
Source: %name-%{PACKAGE_VERSION}.tar.gz
BuildRoot: %(RPM_BUILD_ROOT:/)
Packager: %(FULLNAME) <%(EMAIL)>
Vendor: %(COMPANY)
Distribution: %(DISTRIBUTION)
URL: %(URL:FIXME)
Requires: FIXME: list of package dependencies

# ============================= description ====================================
%description
FIXME: a long description of package

# ============================= changelog ======================================
%changelog
FIXME: a log of changes

# ============================= prep ===========================================
%prep
FIXME: scripts to get sources ready to build.

# ============================= setup ==========================================
%setup

# ============================= build ==========================================
%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr
make

# ============================= install ========================================
%install
mkdir -p $RPM_BUILD_ROOT/usr/bin

# NOTE: The following trick only works with a modified header-vars.am.
# Change the line ``DESTDIR ='' in this file to ``DESTDIR =
# ${ENV_DESTDIR}.''
export ENV_DESTDIR=$RPM_BUILD_ROOT
make install

gzip -9 AUTHORS COPYING ChangeLog INSTALL NEWS README

# ============================= clean ==========================================
%clean
rm -rf $RPM_BUILD_ROOT
rm 

# ============================= pre ============================================
%pre
FIXME: pre-install scripts

# ============================= post ===========================================
%post
FIXME: post-install scripts

# ============================= preun ==========================================
%preun
FIXME: pre-uninstall scripts

# ============================= postun =========================================
%postun
FIXME: post-uninstall scripts

# ============================= files ==========================================
%files
%defattr(-, root, root)
FIXME example: %{prefix}/bin
FIXME example: %{prefix}/man/man?/*

# ============================= doc ============================================
%doc AUTHORS.gz COPYING.gz ChangeLog.gz INSTALL.gz NEWS.gz README.gz

# ============================= config =========================================
%config
