From a8b8a0a2b64e47c4a5511d76b55d64bfebf2f136d90d60eceabb32a0c31d5e24 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Fri, 21 Jan 2011 20:12:16 +0000 Subject: [PATCH] iniital package OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Dist-Zilla-Plugin-Repository?expand=0&rev=1 --- .gitattributes | 23 +++++ .gitignore | 1 + Dist-Zilla-Plugin-Repository-0.17.tar.bz2 | 3 + perl-Dist-Zilla-Plugin-Repository.changes | 6 ++ perl-Dist-Zilla-Plugin-Repository.spec | 108 ++++++++++++++++++++++ 5 files changed, 141 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Dist-Zilla-Plugin-Repository-0.17.tar.bz2 create mode 100644 perl-Dist-Zilla-Plugin-Repository.changes create mode 100644 perl-Dist-Zilla-Plugin-Repository.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Dist-Zilla-Plugin-Repository-0.17.tar.bz2 b/Dist-Zilla-Plugin-Repository-0.17.tar.bz2 new file mode 100644 index 0000000..ad8646c --- /dev/null +++ b/Dist-Zilla-Plugin-Repository-0.17.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5f3a3b22635134f6c85a290a5ed5375eb80c3105ba2023a7730b82c3c3ce1a41 +size 13765 diff --git a/perl-Dist-Zilla-Plugin-Repository.changes b/perl-Dist-Zilla-Plugin-Repository.changes new file mode 100644 index 0000000..3c9f41b --- /dev/null +++ b/perl-Dist-Zilla-Plugin-Repository.changes @@ -0,0 +1,6 @@ +------------------------------------------------------------------- +Fri Jan 21 20:12:12 UTC 2011 - coolo@novell.com + +- initial package 0.17 + * created by cpanspec 1.78.03 + diff --git a/perl-Dist-Zilla-Plugin-Repository.spec b/perl-Dist-Zilla-Plugin-Repository.spec new file mode 100644 index 0000000..e0b330e --- /dev/null +++ b/perl-Dist-Zilla-Plugin-Repository.spec @@ -0,0 +1,108 @@ +# +# 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