5 Star 0 Fork 1

src-openEuler/perl-File-BOM

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
perl-File-BOM.spec 2.25 KB
一键复制 编辑 原始数据 按行查看 历史
jhon-hsu 提交于 2021-07-07 15:59 . commit source package and SPEC file
%global _empty_manifest_terminate_build 0
Name: perl-File-BOM
Version: 0.18
Release: 1
Summary: Utilities for handling Byte Order Marks
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/File-BOM/
Source0: http://www.cpan.org/authors/id/M/MA/MATTLAW/File-BOM-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl >= 1:v5.8.3
BuildRequires: perl-generators
BuildRequires: perl(Encode) >= 1.99
BuildRequires: perl(Module::Build)
BuildRequires: perl(Readonly) >= 0.06
BuildRequires: perl(Test::Exception) >= 0.20
BuildRequires: perl(Test::More) >= 0.10
Requires: perl(Encode) >= 1.99
Requires: perl(Readonly) >= 0.06
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
This module provides functions for handling unicode byte order marks, which are to be found at the beginning of some files and streams.
%package help
Summary : Utilities for handling Byte Order Marks
Provides: perl-File-BOM-doc
%description help
This module provides functions for handling unicode byte order marks, which are to be found at the beginning of some files and streams.
%prep
%setup -q -n File-BOM-%{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}
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 META.json README README-cygwin testrules.yml TODO
%{perl_vendorlib}/*
%files help
%{_mandir}/*
%changelog
* Wed Jul 07 2021 Perl_Bot <[email protected]> 0.18-1
- Specfile autogenerated by Perl_Bot
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/perl-File-BOM.git
[email protected]:src-openeuler/perl-File-BOM.git
src-openeuler
perl-File-BOM
perl-File-BOM
master

搜索帮助