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