File susedoc-buildbook.spec of Package susedoc-buildbook

#
# spec file for package susedoc-buildbook (Version 0.19)
#
# Copyright (c) 2010 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/
#

# norootforbuild


Name:           susedoc-buildbook
License:        GPL-2.0+
Group:          Documentation/SUSE
AutoReqProv:    on
Summary:        susedoc Book Build Script
Version:        0.21
Release:        1
Source:         %{name}-%{version}.tar.bz2
Url:            https://svn.berlios.de/svnroot/repos/opensuse-doc/trunk/susedoc-buildbook
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
The susedoc book build script builds the output formats of a book
or the complete product documentation in the SVN and submits the
result to a Build Service instance such as http://build.opensuse.org
(OBS).

%define INSTALL install -m755
%define INSTALL_DIR install -d -m755
%define INSTALL_DATA install -m644

%prep
%setup -q

%build
./configure --prefix=%{_prefix}
make

%install
make install DESTDIR=$RPM_BUILD_ROOT
for bin in buildbook.sh update_spec.pl; do
  test -f $RPM_BUILD_ROOT/usr/bin/$bin && \
  mv $RPM_BUILD_ROOT/usr/bin/$bin $RPM_BUILD_ROOT/usr/bin/${bin%\.*}
done

%clean
rm -rf %{buildroot}

%files
%defattr(-, root, root)
%doc COPYING
%{_bindir}/*
%{_datadir}/%{name}

%changelog
openSUSE Build Service is sponsored by