69 lines
2.6 KiB
RPMSpec
69 lines
2.6 KiB
RPMSpec
|
#TARBALL: https://www.cpan.org/src/5.0/perl-5.28.1.tar.xz
|
||
|
#MD5SUM: fbb590c305f2f88578f448581b8cf9c4;SOURCES/perl-5.28.1.tar.xz
|
||
|
%define __requires_exclude perl\\((VMS|BSD::|Win32|Tk|Mac::|Your::Module::Here|unicore::Name|FCGI|Locale::Codes::.*(Code|Retired))
|
||
|
#|^perl\\(\s\\)
|
||
|
# the following suppresses dependency checks on all modules in /usr/lib/perl5/5.28.1 directories
|
||
|
%define __requires_exclude_from %{_libdir}/perl5
|
||
|
#-----------------------------------------------------------------------------
|
||
|
Summary: The Perl package contains the Practical Extraction and Report Language.
|
||
|
Name: perl
|
||
|
Version: 5.28.1
|
||
|
Release: 1
|
||
|
License: GPLv1
|
||
|
URL: Any
|
||
|
Group: LFS/Base
|
||
|
Vendor: Elizabeth
|
||
|
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
|
||
|
# -Doptimize="${CFLAGS}" \
|
||
|
# -Dcccdlflags='-fPIC' \
|
||
|
# -Dlddlflags="-shared ${LDFLAGS}" -Dldflags="${LDFLAGS}"
|
||
|
# ulimit -s unlimited;make %{?_smp_mflags}
|
||
|
make %{?_smp_mflags}
|
||
|
%install
|
||
|
make DESTDIR=%{buildroot} install
|
||
|
#-----------------------------------------------------------------------------
|
||
|
# Copy license/copying file
|
||
|
install -D -m644 Copying %{buildroot}/usr/share/licenses/%{name}/LICENSE
|
||
|
# rm -rf %{buildroot}%{_docdir} %{buildroot}%{_mandir}
|
||
|
#-----------------------------------------------------------------------------
|
||
|
# Create file list
|
||
|
# rm %{buildroot}%{_infodir}/dir
|
||
|
find %{buildroot} -name '*.la' -delete
|
||
|
find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.rpm
|
||
|
sed -i "s|^${RPM_BUILD_ROOT}||" filelist.rpm
|
||
|
sed -i '/man\/man/d' filelist.rpm
|
||
|
sed -i '/\/usr\/share\/info/d' filelist.rpm
|
||
|
#-----------------------------------------------------------------------------
|
||
|
%files -f filelist.rpm
|
||
|
%defattr(-,root,root)
|
||
|
%{_mandir}/man1/*.gz
|
||
|
%{_mandir}/man3/*.gz
|
||
|
# %%{_bindir}/%%{NAME}%%{VERSION}
|
||
|
# %%{_libdir}/%%{NAME}5/%%{VERSION}/*.pm
|
||
|
#-----------------------------------------------------------------------------
|
||
|
%changelog
|
||
|
* 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
|