LFS-RPM/SPECS/perl.spec

61 lines
2.3 KiB
Plaintext
Raw Normal View History

2020-06-01 16:11:06 -04:00
#TARBALL: https://www.cpan.org/src/5.0/perl-5.30.1.tar.xz
#MD5SUM: f399f3aaee90ddcff5eadd3bccdaacc0;SOURCES/perl-5.30.1.tar.xz
2019-05-24 08:27:40 -04:00
%define __requires_exclude perl\\((VMS|BSD::|Win32|Tk|Mac::|Your::Module::Here|unicore::Name|FCGI|Locale::Codes::.*(Code|Retired))
#|^perl\\(\s\\)
2020-06-01 16:11:06 -04:00
# the following suppresses dependency checks on all modules in /usr/lib/perl5/5.30.1 directories
2019-05-24 08:27:40 -04:00
%define __requires_exclude_from %{_libdir}/perl5
#-----------------------------------------------------------------------------
Summary: The Perl package contains the Practical Extraction and Report Language.
Name: perl
2020-06-01 16:11:06 -04:00
Version: 5.30.1
2019-05-24 08:27:40 -04:00
Release: 1
License: GPLv1
URL: Any
Group: LFS/Base
Source0: http://www.cpan.org/src/5.0/%{name}-%{version}.tar.xz
Provides: perl = 1:5
Provides: perl = 1:5.8.0
Provides: perl = 0:5.008001
Provides: perl = 0:5.009001
Requires: filesystem
%description
The Perl package contains the Practical Extraction and Report Language.
#-----------------------------------------------------------------------------
%prep
%setup -q -n %{NAME}-%{VERSION}
%build
export BUILD_ZLIB=False
export BUILD_BZIP2=0
sh Configure -des -Dprefix=/usr \
-Dvendorprefix=/usr \
-Dman1dir=%{_mandir}/man1 \
-Dman3dir=%{_mandir}/man3 \
-Dpager="${_sbindir}/less -isR" \
-Duseshrplib \
-Dusethreads
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
#-----------------------------------------------------------------------------
# Copy license/copying file
install -D -m644 Copying %{buildroot}/usr/share/licenses/%{name}/LICENSE
#-----------------------------------------------------------------------------
# Create file list
find %{buildroot} -name '*.la' -delete
2020-06-01 16:11:06 -04:00
find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list
sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list
sed -i '/man\/man/d' filelist.list
sed -i '/\/usr\/share\/info/d' filelist.list
2019-05-24 08:27:40 -04:00
#-----------------------------------------------------------------------------
2020-06-01 16:11:06 -04:00
%files -f filelist.list
2019-05-24 08:27:40 -04:00
%defattr(-,root,root)
2019-05-25 21:36:26 -04:00
%{_mandir}/man1/*
%{_mandir}/man3/*
2019-05-24 08:27:40 -04:00
#-----------------------------------------------------------------------------
%changelog
2020-06-01 16:11:06 -04:00
* Sun May 31 2020 Chris Cromer <chris@cromer.cl> 5.30.1-1
2019-05-24 08:27:40 -04:00
* Fri Apr 05 2019 baho-utot <baho-utot@columbus.rr.com> 5.28.1-1
- Update for LFS-8.4
* Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 5.26.1-1
- Initial build. First version