File stgit.spec of Package stgit

#
# spec file for package stgit
#
# 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:           stgit
BuildRequires:  asciidoc
BuildRequires:  git-core
BuildRequires:  python-devel
BuildRequires:  xmlto
Summary:        Stacked GIT - Source Code Management Tool
License:        GPL-2.0+
Group:          Development/Tools/Version Control
Version:        0.16
Release:        0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://www.procode.org/stgit
Source:         %{name}-%{version}.tar.gz
Requires:       git-core
Requires:       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

%build
make prefix=%{_prefix}
make doc prefix=%{_prefix}

%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 %attr(644,root,root) AUTHORS ChangeLog COPYING README TODO
%doc %{_mandir}/man?/*
%{_bindir}/*
%if %suse_version > 1110
%{python_sitelib}/*
%else
%{py_sitedir}/*
%endif
%{_datadir}/stgit

%changelog
openSUSE Build Service is sponsored by