# # spec file for package perl-Git-Repository # # Copyright (c) 2015 SUSE LINUX 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: perl-Git-Repository Version: 1.315 Release: 0 %define cpan_name Git-Repository Summary: Perl interface to Git repositories License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Git-Repository/ Source0: http://www.cpan.org/authors/id/B/BO/BOOK/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(System::Command) >= 1.103 Requires: perl(System::Command) >= 1.103 %{perl_requires} # MANUAL BEGIN BuildRequires: git-core # MANUAL END %description the Git::Repository manpage is a Perl interface to Git, for scripted interactions with repositories. It's a low-level interface that allows calling any Git command, whether _porcelain_ or _plumbing_, including bidirectional commands such as 'git commit-tree'. A the Git::Repository manpage object simply provides context to the git commands being run. It is possible to call the 'command()' and 'run()' methods against the class itself, and the context (typically _current working directory_) will be obtained from the options and environment. As a low-level interface, it provides no sugar for particular Git commands. Specifically, it will not prepare environment variables that individual Git commands may need or use. However, the 'GIT_DIR' and 'GIT_WORK_TREE' environment variables are special: if the command is run in the context of a the Git::Repository manpage object, they will be overridden by the object's 'git_dir' and 'work_tree' attributes, respectively. It is however still possible to override them if necessary, using the 'env' option. the Git::Repository manpage requires at least Git 1.5.0, and is expected to support any later version. See the Git::Repository::Tutorial manpage for more code examples. %prep %setup -q -n %{cpan_name}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %{?_smp_mflags} %check %{__make} test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %defattr(-,root,root,755) %doc Changes LICENSE README %changelog