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

File cross-libsemanage.spec.in of Package cross-libsemanage

Name:           cross-%{cross_arch}-libsemanage
Version:        2.3
Release:        0
Summary:        Foo
License:        LGPL-2.1+
Group:          foo
Source0:        libsemanage-%{version}.tar.gz
Source2:        cross-libsemanage-rpmlintrc
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  bison
BuildRequires:  cross-%{cross_arch}-audit-devel
BuildRequires:  cross-%{cross_arch}-binutils
BuildRequires:  cross-%{cross_arch}-gcc
BuildRequires:  cross-%{cross_arch}-glibc-devel
BuildRequires:  cross-%{cross_arch}-libbz2-devel
BuildRequires:  cross-%{cross_arch}-libselinux-devel
BuildRequires:  cross-%{cross_arch}-libsepol-devel
BuildRequires:  cross-%{cross_arch}-libustr-devel
BuildRequires:  cross-%{cross_arch}-pkg-config
BuildRequires:  flex
Requires:       cross-%{cross_arch}-audit
Requires:       cross-%{cross_arch}-bzip2
Requires:       cross-%{cross_arch}-libustr
Requires:       cross-%{cross_arch}-libselinux
Requires:       cross-%{cross_arch}-libsepol
Provides:       cross-%{cross_arch}-libsemanage-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 libsemanage-%{version}

%build
make -j1 \
	INCLUDEDIR="%{sysroot}%{_includedir}" \
	CC="%{gcc_target_arch}-gcc" \
	CFLAGS=""
make -j1 all \
	INCLUDEDIR="%{sysroot}%{_includedir}" \
	LIBDIR="%{cross_libdir}" \
	SHLIBDIR="%{cross_lib}" \
	CC="%{gcc_target_arch}-gcc" \
	CFLAGS=""

%install
export NO_BRP_CHECK_RPATH=true
export NO_BRP_STRIP_DEBUG=true
export NO_DEBUGINFO_STRIP_DEBUG=true
make %{?_smp_mflags} install \
     DESTDIR=%{buildroot}%{sysroot} \
     LIBDIR=%{buildroot}%{sysroot}%{cross_libdir} \
     SHLIBDIR=%{buildroot}%{sysroot}/%{cross_lib} \

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

%changelog