Files
perl-Dist-Zilla-Plugin-Repo…/perl-Dist-Zilla-Plugin-Repository.spec

109 lines
3.7 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Dist-Zilla-Plugin-Repository (Version 0.17)
#
# Copyright (c) 2010 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: perl-Dist-Zilla-Plugin-Repository
Version: 0.17
Release: 1
License: GPL+ or Artistic
%define cpan_name Dist-Zilla-Plugin-Repository
Summary: Automatically sets repository URL from svn/svk/Git checkout for Dist::Zilla
Url: http://search.cpan.org/dist/Dist-Zilla-Plugin-Repository/
Group: Development/Libraries/Perl
#Source: http://www.cpan.org/authors/id/F/FA/FAYLAND/Dist-Zilla-Plugin-Repository-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.bz2
BuildRequires: perl(Dist::Zilla) >= 4.102340
BuildRequires: perl(Dist::Zilla::Tester) >= 4.102340
BuildRequires: perl
BuildRequires: perl-macros
Requires: perl(Dist::Zilla) >= 4.102340
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%{perl_requires}
%description
The code is mostly a copy-paste of the Module::Install::Repository manpage
ATTRIBUTES
* * git_remote
This is the name of the remote to use for the public repository (if
you use Git). By default, unsurprisingly, to _origin_.
* * github_http
*This attribute is deprecated.* If the remote is a GitHub repository,
list only the http url
(http://github.com/fayland/dist-zilla-plugin-repository) and not the
actual clonable url
(git://github.com/fayland/dist-zilla-plugin-repository.git). This
used to default to true, but as of 0.16 it defaults to false.
The CPAN Meta 2 spec defines separate keys for the clonable 'url' and
web front-end 'web'. The Meta 1 specs allowed only 1 URL. If you set
'github_http' to true, the 'url' key will be removed from the v2
metadata, and the v1 metadata will then use the 'web' key.
Instead of setting 'github_http', you should use the MetaJSON plugin
to include a v2 META.json file with both URLs.
* * repository
You can set this attribute if you want a specific repository instead
of the plugin to auto-identify your repository.
An example would be if you're releasing a module from your fork, and
you don't want it to identify your fork, so you can specify the
repository explicitly.
In the CPAN::Meta::Spec, this is the 'url' key.
* * type
This should be the (lower-case) name of the most common program used
to work with the repository, e.g. git, svn, cvs, darcs, bzr or hg.
It's normally determined automatically, but you can override it.
* * web
This is a URL pointing to a human-usable web front-end for the
repository. Currently, only Github repositories get this set
automatically.
%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
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(644,root,root,755)
%doc Changes dist.ini LICENSE README
%changelog