Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:schiele:csys
csys-ppc-binutils
csys-ppc-binutils.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File csys-ppc-binutils.spec of Package csys-ppc-binutils
Name: csys-ppc-binutils Version: 2.21.0 Release: 1 Url: http://www.gnu.org/software/binutils/ License: GPLv3+ Group: Development/Tools/Building AutoReqProv: on Summary: GNU Binutils Source: binutils-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build %define _prefix /opt/csys %description C compiler utilities: ar, as, gprof, ld, nm, objcopy, objdump, ranlib, size, strings, and strip. These utilities are needed whenever you want to compile a program or kernel. %define TARGET %(echo %{name} | sed -e "s/csys-\\(.*\\)-binutils/\\1/;s/-/_/g;s/parisc/hppa/;s/i.86/i586/;s/ppc/powerpc/") %define HOST %(echo %{_target_cpu} | sed -e "s/parisc/hppa/" -e "s/i.86/i586/" -e "s/ppc/powerpc/" -e "s/sparc64v.*/sparc64/" -e "s/sparcv.*/sparc/")-linux %prep %setup -q -n binutils-%{version} %build RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wno-error" mkdir build-dir cd build-dir EXTRA_TARGETS= %if "%{TARGET}" == "powerpc" EXTRA_TARGETS="$EXTRA_TARGETS,powerpc64-suse-linux" %endif %if "%{TARGET}" == "i586" EXTRA_TARGETS="$EXTRA_TARGETS,x86_64-suse-linux" %endif TARGET_OS=%{TARGET}-linux ../configure CFLAGS="${RPM_OPT_FLAGS}" \ --prefix=%{_prefix} \ --with-bugurl=http://bugs.opensuse.org/ \ --with-pkgversion="GNU Binutils; CSYS" \ --disable-nls \ --build=%{HOST} --target=$TARGET_OS \ --with-sysroot=%{_prefix}/$TARGET_OS/sys-root \ ${EXTRA_TARGETS:+--enable-targets="${EXTRA_TARGETS#,}"} make %{?_smp_mflags} all-bfd TARGET-bfd=headers # force reconfiguring rm bfd/Makefile make %{?_smp_mflags} %check cd build-dir make -k check CFLAGS="$RPM_OPT_FLAGS -Wno-unused -Wno-unprototyped-calls" || : %install cd build-dir make DESTDIR=$RPM_BUILD_ROOT install rm -rf $RPM_BUILD_ROOT%{_mandir} rm -rf $RPM_BUILD_ROOT%{_infodir} rm -rf $RPM_BUILD_ROOT%{_prefix}/lib* rm -rf $RPM_BUILD_ROOT%{_prefix}/include rm -f $RPM_BUILD_ROOT%{_prefix}/bin/*-c++filt %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %{_prefix} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor