A new user interface for you! Read more...

File perl.spec of Package perl

Name:           perl
Version:        %(rpm -q cross-%{cross_arch}-perl | cut -d - -f 4 )
Release:        0
Summary:        Foo
License:        GPL-2.0+
Group:          foo
Source1:        perl-rpmlintrc
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  cross-%{cross_arch}-perl
#!BuildIgnore:  post-build-checks
Requires:       perl-base

%description
Bootstrap package

%package base
Summary:        Foo

%description base
Bootstrap package

%define gcc_target_arch %{cross_arch}-suse-linux

%define sysroot %{_prefix}/%{gcc_target_arch}/sys-root

%define cross_lib lib
%if "%{cross_arch}" == "mips64"
%define cross_lib lib64
%endif
%define cross_libdir %{_prefix}/%{cross_lib}

%prep

%build

%install
export NO_BRP_STRIP_DEBUG=true
export NO_DEBUGINFO_STRIP_DEBUG=true
mkdir -p %{buildroot}
rpm -ql cross-%{cross_arch}-perl | \
while IFS= read -r line; do
  if [ ! -d $line ]; then
    echo $line
  fi
done | grep -v '/info/\|/man/' > perl.files
tar cf - -T perl.files | tar xf - --strip-components=3 -C %{buildroot}
sed -i -e "s|^%{sysroot}||" perl.files

%post base -p /sbin/ldconfig

%postun base -p /sbin/ldconfig

%files
%defattr(-,root,root)

%files base -f perl.files
%defattr(-,root,root)

%changelog