commit 8a01a4c861e5af78aaa718d9113812e30540ad48cabb830f70f10a4e75d8fa57 Author: Stephan Kulow Date: Thu May 31 13:49:58 2012 +0000 initial package OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-String-ToIdentifier-EN?expand=0&rev=1 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/String-ToIdentifier-EN-0.07.tar.gz b/String-ToIdentifier-EN-0.07.tar.gz new file mode 100644 index 0000000..b321899 --- /dev/null +++ b/String-ToIdentifier-EN-0.07.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5322bf693ca886dd00346a486e709d4b29b50a939c668a1ccfc3ffb71fe5dc1c +size 34351 diff --git a/perl-String-ToIdentifier-EN.changes b/perl-String-ToIdentifier-EN.changes new file mode 100644 index 0000000..baa1246 --- /dev/null +++ b/perl-String-ToIdentifier-EN.changes @@ -0,0 +1,6 @@ +------------------------------------------------------------------- +Thu May 31 13:49:53 UTC 2012 - coolo@suse.com + +- initial package 0.07 + * created by cpanspec 1.78.06 + diff --git a/perl-String-ToIdentifier-EN.spec b/perl-String-ToIdentifier-EN.spec new file mode 100644 index 0000000..26d993f --- /dev/null +++ b/perl-String-ToIdentifier-EN.spec @@ -0,0 +1,92 @@ +# +# spec file for package perl-String-ToIdentifier-EN +# +# Copyright (c) 2012 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-String-ToIdentifier-EN +Version: 0.07 +Release: 0 +%define cpan_name String-ToIdentifier-EN +Summary: Convert Strings to English Program Identifiers +License: Artistic-1.0 or GPL-1.0+ +Group: Development/Libraries/Perl +Url: http://search.cpan.org/dist/String-ToIdentifier-EN/ +Source: http://www.cpan.org/authors/id/R/RK/RKITOVER/%{cpan_name}-%{version}.tar.gz +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: perl +BuildRequires: perl-macros +BuildRequires: perl(Lingua::EN::Inflect::Phrase) >= 0.07 +BuildRequires: perl(Test::More) >= 0.92 +BuildRequires: perl(Text::Unidecode) >= 0.04 +BuildRequires: perl(namespace::clean) >= 0.20 +#BuildRequires: perl(CPANPLUS::Backend) +#BuildRequires: perl(inc::Module::Install) >= 1.02 +#BuildRequires: perl(JSON) +#BuildRequires: perl(LWP::Simple) +#BuildRequires: perl(Module::AutoInstall) +#BuildRequires: perl(Module::Build) +#BuildRequires: perl(Module::Install::Base) +#BuildRequires: perl(Module::Install::ReadmeFromPod) +#BuildRequires: perl(Parse::CPAN::Meta) +#BuildRequires: perl(String::ToIdentifier::EN) +#BuildRequires: perl(String::ToIdentifier::EN::Unicode) +#BuildRequires: perl(TestString) +#BuildRequires: perl(YAML::Tiny) +Requires: perl(Lingua::EN::Inflect::Phrase) >= 0.07 +Requires: perl(Text::Unidecode) >= 0.04 +Requires: perl(namespace::clean) >= 0.20 +%{perl_requires} + +%description +This module provides a utility method, the /to_identifier manpage for +converting an arbitrary string into a readable representation using the +ASCII subset of '\w' for use as an identifier in a computer program. The +intent is to make unique identifier names from which the content of the +original string can be easily inferred by a human just by reading the +identifier. + +If you need the full set of '\w' including Unicode, see the subclass the +String::ToIdentifier::EN::Unicode manpage. + +Currently, this process is one way only, and will likely remain this way. + +The default is to create camelCase identifiers, or you may pass in a +separator char of your choice such as '_'. + +Binary char groups will be separated by '_' even in camelCase identifiers +to make them easier to read, e.g.: 'foo_2_0xFF_Bar'. + +%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 README + +%changelog