Sophie

Sophie

distrib > Arklinux > devel > i586 > media > main-src > by-pkgid > 9f7d977752983aef7ae0870f01ee822e > files > 3

git-1.7.5.2-1ark.src.rpm

%define beta %nil

Name: 		git
Version: 	1.7.5.2
Summary:  	The GIT SCM
License: 	GPL
Group: 		Development/Tools
URL: 		http://kernel.org/pub/software/scm/git/
%if "%beta" != ""
Source:		http://kernel.org/pub/software/scm/git/%{name}-%{version}.%beta.tar.bz2
Release: 	0.%beta.1ark
%else
Source: 	http://kernel.org/pub/software/scm/git/%{name}-%{version}.tar.bz2
Release: 	1ark
%endif
BuildRequires:	zlib-devel >= 1.2, openssl-devel, curl-devel, expat-devel  %{!?_without_docs:, xmlto, asciidoc > 6.0.3} python-encodings
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires:	git-core, git-svn, git-cvs, git-arch, gitk

# Workaround for bogus perl(Error) dependency
Source999:	filter-requires-git.sh
%define __find_requires %SOURCE999

%description
This is a stupid (but extremely fast) directory content manager.  It
doesn't do a whole lot, but what it _does_ do is track directory
contents efficiently. It is intended to be the base of an efficient,
distributed source code management system. This package includes
rudimentary tools that can be used as a SCM, but you should look
elsewhere for tools for ordinary humans layered on top of this.

This is a metapackage which brings in all subpackages.

%package core
Summary:	Core git tools
Group:		Development/Tools
Requires:	zlib >= 1.2, rsync, rcs, curl, less, openssh-clients, python >= 2.3, expat

%description core
This is a stupid (but extremely fast) directory content manager.  It
doesn't do a whole lot, but what it _does_ do is track directory
contents efficiently. It is intended to be the base of an efficient,
distributed source code management system. This package includes
rudimentary tools that can be used as a SCM, but you should look
elsewhere for tools for ordinary humans layered on top of this.

These are the core tools with minimal dependencies.

%package svn
Summary:        Git tools for importing Subversion repositories
Group:          Development/Tools
Requires:       git-core = %{version}-%{release}, subversion

%description svn
Git tools for importing Subversion repositories.

%package cvs
Summary:        Git tools for importing CVS repositories
Group:          Development/Tools
Requires:       git-core = %{version}-%{release}, cvs, cvsps

%description cvs
Git tools for importing CVS repositories.

%package arch
Summary:        Git tools for importing Arch repositories
Group:          Development/Tools
Requires:       git-core = %{version}-%{release}, tla

%description arch
Git tools for importing Arch repositories.

%package email
Summary:        Git tools for sending email
Group:          Development/Tools
Requires:	git-core = %{version}-%{release} 

%description email
Git tools for sending email.

%package -n gitk
Summary:        Git revision tree visualiser ('gitk')
Group:          Development/Tools
Requires:       git-core = %{version}-%{release}, tk >= 8.4

%description -n gitk
Git revision tree visualiser ('gitk')

%prep
%if "%beta" != ""
%setup -q -n %name-%version.%beta
%else
%setup -q
%endif

%build
make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" WITH_OWN_SUBPROCESS_PY=YesPlease WITH_SEND_EMAIL=1 \
     prefix=%_prefix mandir=%_mandir all %{!?_without_docs: doc}

%install
rm -rf $RPM_BUILD_ROOT
make %{_smp_mflags} DESTDIR=$RPM_BUILD_ROOT CFLAGS="$RPM_OPT_FLAGS" WITH_OWN_SUBPROCESS_PY=YesPlease WITH_SEND_EMAIL=1 \
     prefix=%_prefix mandir=%_mandir \
     install %{!?_without_docs: install-doc}

(find $RPM_BUILD_ROOT%{_bindir} -type f | grep -vE "arch|svn|cvs|email|gitk" | sed -e s@^$RPM_BUILD_ROOT@@)               > bin-man-doc-files
%if %{!?_without_docs:1}0
(find $RPM_BUILD_ROOT%{_mandir} $RPM_BUILD_ROOT/Documentation -type f | grep -vE "arch|svn|git-cvs|email|gitk" | sed -e s@^$RPM_BUILD_ROOT@@ -e 's/$/*/' ) >> bin-man-doc-files
%endif

# Move perl bits where they belong
cd $RPM_BUILD_ROOT%_prefix/lib/perl5
mv site_perl vendor_perl


%clean
rm -rf $RPM_BUILD_ROOT

%files svn
%defattr(-,root,root)
%doc Documentation/*svn*.txt
%_libexecdir/git-core/git-svn
%{!?_without_docs: %_mandir/man1/*svn*.1*}
%{!?_without_docs: %doc Documentation/*svn*.html }

%files cvs
%defattr(-,root,root)
%doc Documentation/*git-cvs*.txt
%_bindir/*cvs*
%_libexecdir/git-core/git-cvs*
%{!?_without_docs: %_mandir/man1/*cvs*.1*}
%{!?_without_docs: %doc Documentation/*git-cvs*.html }

%files arch
%defattr(-,root,root)
%doc Documentation/*arch*.txt
%_bindir/*arch*
%_libexecdir/git-core/git-archimport
%{!?_without_docs: %_mandir/man1/*arch*.1*}
%{!?_without_docs: %doc Documentation/*arch*.html }

%files email
%defattr(-,root,root)
%doc Documentation/*email*.txt
%_libexecdir/git-core/git-mail*
%_libexecdir/git-core/git-send-email
%{!?_without_docs: %_mandir/man1/*email*.1*}
%{!?_without_docs: %doc Documentation/*email*.html }

%files -n gitk
%defattr(-,root,root)
%doc Documentation/*gitk*.txt
%_bindir/*gitk*
%_libexecdir/git-core/git-gui*
%_datadir/git-gui
%_datadir/gitk
%{!?_without_docs: %_mandir/man1/*gitk*.1*}
%{!?_without_docs: %doc Documentation/*gitk*.html }

%files core -f bin-man-doc-files
%defattr(-,root,root)
%_datadir/git-core/
%_prefix/lib/perl5/vendor_perl/*/*.pm
%_libexecdir/git-core
%exclude %_libexecdir/git-core/git-svn
%exclude %_libexecdir/git-core/git-gui*
%exclude %_libexecdir/git-core/git-cvs*
%exclude %_libexecdir/git-core/git-archimport
%exclude %_libexecdir/git-core/git-mail*
%exclude %_libexecdir/git-core/git-send-email
%_prefix/lib/python*/site-packages/git_remote_helpers
%doc README COPYING Documentation/*.txt
%{!?_without_docs: %doc Documentation/*.html }

%changelog
* Mon May 23 2011 Bernhard Rosenkraenzer <bero@arklinux.org> 1.7.5.2-1ark
- 1.7.5.2

* Tue Feb  1 2011 Bernhard Rosenkraenzer <bero@arklinux.org> 1.7.4-1ark
- 1.7.4

* Thu Jan  6 2011 Bernhard Rosenkraenzer <bero@arklinux.org> 1.7.3.5-1ark
- 1.7.3.5

* Tue Dec  7 2010 Bernhard Rosenkraenzer <bero@arklinux.org> 1.7.3.3-1ark
- 1.7.3.3

* Sun Oct 24 2010 Bernhard Rosenkraenzer <bero@arklinux.org> 1.7.3.2-1ark
- 1.7.3.2

* Mon Sep 20 2010 Bernhard Rosenkraenzer <bero@arklinux.org> 1.7.3-1ark
- 1.7.3

* Mon Sep  6 2010 Bernhard Rosenkraenzer <bero@arklinux.org> 1.7.2.3-1ark
- 1.7.2.3

* Fri Jul 30 2010 Bernhard Rosenkraenzer <bero@arklinux.org> 1.7.2.1-1ark
- 1.7.2.1

* Fri Jul 23 2010 Bernhard Rosenkraenzer <bero@arklinux.org> 1.7.2-1ark
- 1.7.2

* Mon Jun 14 2010 Bernhard Rosenkraenzer <bero@arklinux.org> 1.7.1-2ark
- Tweak package splitting

* Sun Apr 25 2010 Bernhard Rosenkraenzer <bero@arklinux.org> 1.7.1-1ark
- 1.7.1

* Tue Mar 23 2010 Bernhard Rosenkraenzer <bero@arklinux.org> 1.7.0.3-1ark
- 1.7.0.3

* Thu Jan 21 2010 Bernhard Rosenkraenzer <bero@arklinux.org> 1.6.6.1-1ark
- 1.6.6.1

* Mon May  5 2008 Bernhard Rosenkraenzer <bero@arklinux.org> 1.5.5.1-1ark
- 1.5.5.1

* Thu Jan 17 2008 Bernhard Rosenkraenzer <bero@arklinux.org> 1.5.4-0.rc3.1ark
- 1.5.4-rc3
- Get rid of bogus perl(Error) dependency

* Wed Jan  9 2008 Bernhard Rosenkraenzer <bero@arklinux.org> 1.5.3.8-1ark
- 1.5.3.8

* Wed Jun 13 2007 Bernhard Rosenkraenzer <bero@arklinux.org> 1.5.2.1-1ark
- 1.5.2.1

* Thu Apr 12 2007 Bernhard Rosenkraenzer <bero@arklinux.org> 1.5.1.1-1ark
- 1.5.1.1

* Fri Nov 24 2006 Bernhard Rosenkraenzer <bero@arklinux.org> 1.4.4.1-1ark
- 1.4.4.1

* Thu Sep 28 2006 Bernhard Rosenkraenzer <bero@arklinux.org> 1.4.2.1-1ark
- 1.4.2.1

* Mon Feb 20 2006 Bernhard Rosenkraenzer <bero@arklinux.org> 1.2.2-1ark
- Initial ark rpm based on upstream spec