LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File mpc.spec of Package mpc (Project home:a_faerber:openSUSE:Factory:bootstrap)

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

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

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files -f mpc.files
%defattr(-,root,root)

%changelog