Summary: Source distribution management system
Name: autodist
Version: AUTODIST_VERSION
Release: AUTODIST_RELEASE
License: BSD
Group: Development/Tools
URL: http://silcnet.org/software/developers/autodist/
Source0: http://silcnet.org/download/autodist/sources/autodist-%{version}.tar.bz2
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: autoconf >= 2.58
Requires: automake >= 1.9

%description
The Autodist is a source distribution management system that allows
powerful mechanisms to define what is included in and excluded from a
distribution, and what license the distribution is released under.  It
is also used to create the actual distribution source packages.
Autodist allows distribution management in file, directory and file
content level.  Different distributions may include different portions
of files, for example, excluding certain features from certain
distributions.  It is always guaranteed that anything not defined for
the distribution, is removed automatically (files, file content,
directories), thus ensuring that nothing is accidentally included in
the distribution.

%prep
%setup -q

%build
./configure --prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} \
  --bindir=%{_bindir} --datadir=%{_datadir}
make

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT/%{_datadir}/autodist/COPYING

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root, -)
%{_bindir}/*
%{_datadir}/autodist/*.conf
%{_datadir}/autodist/default
%{_infodir}/autodist.info*
%{_mandir}/man1/*
%doc COPYING README TODO CHANGES AUTHORS

%changelog
* Thu May 31 2007 Pekka Riikonen <priikone@silcnet.org>
- Initial version
