ac17570
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
ac17570
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
ac17570
ac17570
Name:           stgit
17ff219
Version:        0.14.3
2e65e93
Release:        5%{?dist}
1d1c56e
Summary:        Patch stack for Git repositories
ac17570
ac17570
Group:          Development/Tools
ac28266
License:        GPLv2
ac17570
URL:            http://www.procode.org/stgit
ac17570
Source0:        http://homepage.ntlworld.com/cmarinas/%{name}/%{name}-%{version}.tar.gz
ac17570
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
ac17570
ac17570
BuildArch:      noarch
ac17570
BuildRequires:  python-devel
1e8eb76
BuildRequires:  git-core
ac17570
ac17570
Requires:       git-core
ac17570
ac17570
%description
ac17570
StGIT is a Python application providing similar functionality to Quilt
ac17570
(i.e. pushing/popping patches to/from a stack) on top of GIT. These
ac17570
operations are performed using GIT commands and the patches are stored
ac17570
as GIT commit objects, allowing easy merging of the StGIT patches into
ac17570
other repositories using standard GIT functionality.
ac17570
ac17570
Note that StGIT is not an SCM interface on top of GIT and it expects a
ac17570
previously initialised GIT repository (unless it is cloned using StGIT
ac17570
directly). For standard SCM operations, either use plain GIT commands
ac17570
or the Cogito tool but it is not recommended to mix them with the
ac17570
StGIT commands.
ac17570
ac17570
ac17570
%prep
ac17570
%setup -q
ac17570
ac17570
ac17570
%build
ac17570
%{__python} setup.py build
ac17570
ac17570
ac17570
%install
ac17570
rm -rf $RPM_BUILD_ROOT
ac17570
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
4dc825c
chmod -x $RPM_BUILD_ROOT%{_datadir}/stgit/contrib/stgbashprompt.sh
ac17570
 
ac17570
%clean
ac17570
rm -rf $RPM_BUILD_ROOT
ac17570
ac17570
ac17570
%files
ac17570
%defattr(-,root,root,-)
ac17570
%doc AUTHORS ChangeLog COPYING README
ac17570
ac17570
%{_bindir}/stg
ac17570
ac17570
# For noarch packages: sitelib
ac17570
%{python_sitelib}/*
ac17570
%{_datadir}/stgit
ac17570
ac17570
ac17570
%changelog
2e65e93
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.3-5
2e65e93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2e65e93
f48322f
* Thu Dec 04 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.14.3-4
f48322f
- Rebuild for Python 2.6
f48322f
1d1c56e
* Tue Dec 02 2008 James Bowes <jbowes@redhat.com> 0.14.3-3
1d1c56e
- Try and make the summary text better
1d1c56e
6ba6a02
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.14.3-2
6ba6a02
- Rebuild for Python 2.6
6ba6a02
17ff219
* Tue Jun 17 2008 James Bowes <jbowes@redhat.com> 0.14.3-1
17ff219
- Update to 0.14.3
17ff219
91ae1bb
* Wed Mar 26 2008 James Bowes <jbowes@redhat.com> 0.14.2-1
91ae1bb
- Update to 0.14.2
91ae1bb
370bed4
* Wed Dec 12 2007 James Bowes <jbowes@redhat.com> - 0.14.1-1
370bed4
- Update to 0.14.1
370bed4
ac28266
* Thu Aug 23 2007 James Bowes <jbowes@redhat.com> - 0.13-2
ac28266
- Mark license as GPLv2+
ac28266
cc0496f
* Sun Aug 05 2007 James Bowes <jbowes@redhat.com> - 0.13-1
cc0496f
- Update to 0.13
cc0496f
4dc825c
* Wed Apr 25 2007 James Bowes <jbowes@redhat.com> - 0.12.1-2
4dc825c
- Use macro for datadir.
4dc825c
ac17570
* Thu Apr 19 2007 James Bowes <jbowes@redhat.com> - 0.12.1-1
ac17570
- Update version.
ac17570
- Don't install the bash prompt shell script as executable.
ac17570
ac17570
* Fri Feb 02 2007 James Bowes <jbowes@redhat.com> - 0.12-1
ac17570
- Initial packaging.