Projects
home:Eustace:branches:Eulaceura:Factory
perl-Locale-SubCountry
_service:obs_scm:perl-Locale-SubCountry.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:perl-Locale-SubCountry.spec of Package perl-Locale-SubCountry
%global cpan_name Locale-SubCountry %global _empty_manifest_terminate_build 0 Name: perl-%{cpan_name} Version: 2.07 Release: 1 Summary: Convert state, province, county etc. names to/from ISO 3166-2 codes, get all states in a country License: Perl License URL: http://search.cpan.org/dist/%{cpan_name}/ Source0: http://www.cpan.org/authors/id/K/KI/KIMRYAN/%{cpan_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: perl-generators BuildRequires: perl(JSON) >= 1 BuildRequires: perl(Module::Build) BuildRequires: perl(strict) BuildRequires: perl(Test::More) >= 0.94 BuildRequires: perl(Test::Pod) >= 1.04 BuildRequires: perl(utf8) BuildRequires: perl(warnings) Requires: perl(JSON) >= 1 Requires: perl(strict) Requires: perl(utf8) Requires: perl(warnings) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description This module allows you to convert the full name for a country's administrative region to the code commonly used for postal addressing. The reverse look up can also be done. %package help Summary : Convert state, province, county etc. names to/from ISO 3166-2 codes, get all states in a country Provides: perl-%{cpan_name}-doc %description help This module allows you to convert the full name for a country's administrative region to the code commonly used for postal addressing. The reverse look up can also be done. %prep %setup -q -n %{cpan_name}-%{version} %build export PERL_MM_OPT="" %{__perl} Build.PL --installdirs=vendor ./Build %install export PERL_MM_OPT="" rm -rf $RPM_BUILD_ROOT ./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0 find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* pushd %{buildroot} mkdir -p .%{perl_vendorlib} mkdir -p .%{_mandir} if [ -d root/perl5/lib ];then mv root/perl5/lib .%{perl_vendorlib} fi if [ -d root/perl5/man ];then mv root/perl5/man/* .%{_mandir} fi touch filelist.lst if [ -d usr/bin ];then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ];then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ];then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib ];then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi popd mv %{buildroot}/filelist.lst . %check ./Build test %clean rm -rf $RPM_BUILD_ROOT %files -f filelist.lst %defattr(-,root,root,-) %doc Changes examples META.json README xt %{perl_vendorlib}/* %files help %{_mandir}/* %changelog * Wed Feb 07 2024 woody2918 <wudi1@uniontech.com> - 2.07-1 - Update version to 2.07 - Added Kosovo https://laendercode.net/en/2-letter-code/xk, RT bug - Updated to latest codes from: https://salsa.debian.org/iso-codes-team/ * Wed Jul 14 2021 ice-kylin <wminid@yeah.net> - 2.06-1 - Initial package
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2