LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File cross-audit.spec.in of Package cross-audit (Project home:a_faerber:mips)

Name:           cross-%{cross_arch}-audit
Version:        2.4.4
Release:        0
Summary:        Foo
License:        GPL-2.0+
Group:          foo
Source0:        audit-%{version}.tar.gz
Source2:        cross-audit-rpmlintrc
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  autoconf >= 2.12
BuildRequires:  cross-%{cross_arch}-binutils
BuildRequires:  cross-%{cross_arch}-gcc
BuildRequires:  cross-%{cross_arch}-glibc-devel
BuildRequires:  cross-%{cross_arch}-pkg-config
BuildRequires:  libtool
Requires:       libaudit1
Provides:       cross-%{cross_arch}-audit-devel

%description
Foo

%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
%setup -q -n audit-%{version}

%build
autoreconf -fi
./configure \
	--host=%{gcc_target_arch} \
	--prefix=%{_prefix} \
	--libdir=%{cross_libdir} \
	--libexecdir=%{_libexecdir}/audit \
	--without-libcap-ng \
	--without-python \
	--disable-static \

pushd lib
make %{?_smp_mflags}
popd

%install
export NO_BRP_CHECK_RPATH=true
export NO_BRP_STRIP_DEBUG=true
export NO_DEBUGINFO_STRIP_DEBUG=true
pushd lib
make %{?_smp_mflags} install \
     DESTDIR=%{buildroot}%{sysroot}
popd
rm -f %{buildroot}%{sysroot}%{cross_libdir}/*.la

%files
%defattr(-,root,root)
%dir %{sysroot}
%dir %{sysroot}%{_prefix}
%{sysroot}%{_prefix}/

%changelog