5 Star 0 Fork 4

src-openEuler/perl-Geo-Constants

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
perl-Geo-Constants.spec 1.78 KB
一键复制 编辑 原始数据 按行查看 历史
jinxu 提交于 2024-03-27 13:53 . package init
%global _empty_manifest_terminate_build 0
Name: perl-Geo-Constants
Version: 0.06
Release: 1
Summary: Package for standard Geo:: constants
License: GPL-1.0-only OR Artistic-1.0-Perl
Group: Development/Libraries
URL: http://search.cpan.org/dist/Geo-Constants/
Source0: http://www.cpan.org/authors/id/M/MR/MRDVT/Geo-Constants-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl-generators
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(strict)
Requires: perl(Exporter)
Requires: perl(strict)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
Package for standard Geo:: constants
%prep
%setup -q -n Geo-Constants-%{version}
%build
export PERL_MM_OPT=""
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
export PERL_MM_OPT=""
rm -rf $RPM_BUILD_ROOT
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
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
make test
%clean
rm -rf $RPM_BUILD_ROOT
%files -f filelist.lst
%defattr(-,root,root,-)
%doc CHANGES LICENSE README
%{perl_vendorlib}/*
%{_mandir}/*
%changelog
* Wed Mar 27 2024 Xu Jin <jinxu@kylinos.cn> 0.06-1
- Package init.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/perl-Geo-Constants.git
git@gitee.com:src-openeuler/perl-Geo-Constants.git
src-openeuler
perl-Geo-Constants
perl-Geo-Constants
master

搜索帮助