File stgit.spec of Package stgit

#
# spec file for package stgit (Version 0.14.3)
#
# Copyright (c) 2009 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:           stgit
BuildRequires:  asciidoc git-core python-devel xmlto
Summary:        Stacked GIT - Source Code Management Tool
Version:        0.14.3
Release:        72
License:        GPL v2 or later
Group:          Development/Tools/Version Control
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://www.procode.org/stgit
Source:         %{name}-%{version}.tar.bz2
Patch:          stgit-doc-install-fix.diff
Requires:       git-core python
%py_requires
%if %suse_version > 1110
BuildArch:      noarch
%endif

%description
StGIT is a Python application providing similar functionality to Quilt
(i.e. pushing/popping patches to/from a stack) on top of GIT. These
operations are performed using GIT commands and the patches are stored
as GIT commit objects, allowing easy merging of the StGIT patches into
other repositories using standard GIT functionality.

%prep
%setup -q
%patch

%build
make
make doc

%install
make PREFIX=%{_prefix} DESTDIR="$RPM_BUILD_ROOT" install
make -C Documentation PREFIX=%{_prefix} mandir=%{_mandir} DESTDIR="$RPM_BUILD_ROOT" install

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc AUTHORS ChangeLog COPYING README TODO
%doc %{_mandir}/man?/*
%{_bindir}/*
%if %suse_version > 1110
%{python_sitelib}/*
%else
%{py_sitedir}/*
%endif
%{_datadir}/stgit

%changelog