70 lines
1.6 KiB
RPMSpec
70 lines
1.6 KiB
RPMSpec
%define mod_name Locale-Codes
|
|
|
|
Name: perl-%{mod_name}
|
|
Version: 3.68
|
|
Release: 2
|
|
Summary: A distribution of modules to handle locale codes
|
|
License: GPL+ or Artistic
|
|
URL: https://metacpan.org/release/%{mod_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/S/SB/SBECK/%{mod_name}-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
|
|
BuildRequires:coreutils findutils perl-generators perl-interpreter
|
|
BuildRequires:perl(Test::Inter) perl(ExtUtils::MakeMaker) >= 6.76 perl(Test::More)
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
%description
|
|
Locale-Codes is a distribution containing a set of modules designed to
|
|
work with sets of codes which uniquely identify something.
|
|
|
|
%package_help
|
|
|
|
%prep
|
|
%autosetup -n %{mod_name}-%{version} -p1
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1
|
|
%make_build
|
|
|
|
%install
|
|
%make_install
|
|
%{_fixperms} -c %{buildroot}
|
|
|
|
%check
|
|
make test
|
|
|
|
%pre
|
|
|
|
%preun
|
|
|
|
%post
|
|
|
|
%postun
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%license LICENSE
|
|
%doc Changes README examples/
|
|
%{perl_vendorlib}/*
|
|
|
|
%files help
|
|
%defattr(-,root,root)
|
|
%doc README.first
|
|
%{_mandir}/*/*
|
|
|
|
%changelog
|
|
* Thu Oct 20 2022 xujing <xujing99@huawei.com> - 3.68-2
|
|
- define mod_name to opitomize the specfile
|
|
|
|
* Sat Dec 25 2021 tianwei <tianwei12@huawei.com> - 3.68-1
|
|
- upgrade version to 3.68
|
|
|
|
* Fri Jan 29 2021 yuanxin <yuanxin24@huawei.com> - 3.66-1
|
|
- upgrade version to 3.66
|
|
|
|
* Wed Jul 29 2020 shixuantong <shixuantong@huawei.com> - 3.64-1
|
|
- update to 3.64-1
|
|
|
|
* Wed Sep 11 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.58-2
|
|
- Package init
|