forked from pool/perl-String-ToIdentifier-EN
initial package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-String-ToIdentifier-EN?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
String-ToIdentifier-EN-0.07.tar.gz
Normal file
3
String-ToIdentifier-EN-0.07.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:5322bf693ca886dd00346a486e709d4b29b50a939c668a1ccfc3ffb71fe5dc1c
|
||||||
|
size 34351
|
6
perl-String-ToIdentifier-EN.changes
Normal file
6
perl-String-ToIdentifier-EN.changes
Normal file
@@ -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
|
||||||
|
|
92
perl-String-ToIdentifier-EN.spec
Normal file
92
perl-String-ToIdentifier-EN.spec
Normal file
@@ -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
|
Reference in New Issue
Block a user