forked from pool/perl-String-ToIdentifier-EN
93 lines
3.2 KiB
RPMSpec
93 lines
3.2 KiB
RPMSpec
![]() |
#
|
||
|
# 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
|