Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Fruchtratte:ppc
cross-ppc-gcc
cross-powerpc-gcc.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cross-powerpc-gcc.spec of Package cross-ppc-gcc
# # spec file for package cross-avr-gcc (Version 4.3.3) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # # http://old-en.opensuse.org/Packaging/SUSE_Package_Conventions/RPM_Style#1.2._norootforbuild # # norootforbuild %define prefix /opt/cross/powerpc-linux %define vers 4.4.5 Name: cross-ppc-gcc Version: 4.4.5_20110227 Release: 27feb2011 Summary: The GNU C Compiler for PowerPC BuildRequires: chrpath BuildRequires: texinfo libmpfr1 libexpat-devel expat BuildRequires: bison flex cross-avr-binutils BuildRequires: gmp-devel = 4.3.2 -gmp mpfr-devel = 2.4.2 # http://old-en.opensuse.org/Packaging/SUSE_Package_Conventions/RPM_Macros#3.39_.25fdupes # suggests to put this in %if 0%{?suse_version} > 1020, but # the new wiki has nothing comparable, and autobuild team now # rejects the mentioning of the old 1020 release. # # For any updates see # http://wiki.opensuse.org/openSUSE:Packaging_Conventions_RPM_Macros BuildRequires: fdupes # # .osc/_buildconfig_* contains this nonsense: # ## from CrossToolchain:avr # Substitute: cross-avr-gcc cross-avr-gcc43 # # this causes /usr/bin/build to edit changes into the spec file. # -> we compensate by providing this symbol Provides: cross-pcc-gcc44 = %{version} Source0: http://mirrors.kernel.org/gnu/gcc/gcc-%vers/gcc-%vers.tar.bz2 Url: http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=42631 Group: Development/Libraries/C and C++ License: GPLv3+ AutoReqProv: on BuildRoot: %{_tmppath}/%{name}-%{vers}-build %description TODO %prep %setup -n gcc-%{vers} %build export CFLAGS="$RPM_OPT_FLAGS" export target=powerpc-eabisim ## I am running into http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32212 # # http://gcc.gnu.org/install/configure.html # suggests to build 'outside the source dir' like this: mkdir ../build cd ../build echo "RPM_OPT_FLAGS: $RPM_OPT_FLAGS" echo "($0) configuring GCC source" ../gcc-%{vers}/configure -v --target=${target} --disable-nls \ --mandir=%prefix/share/man --infodir=%prefix/share/info \ --prefix=%prefix --without-headers --enable-languages="c,c++" --disable-libssp make all LANGUAGES="c c++" %install cd ../build make install LANGUAGES="c c++" DESTDIR=$RPM_BUILD_ROOT gzip -f $RPM_BUILD_ROOT%prefix/share/man/man1/*.1 gzip -f $RPM_BUILD_ROOT%prefix/share/man/man7/*.7 %fdupes -s $RPM_BUILD_ROOT/%prefix/ ## binutils has the same file. do not create conflicts. ## probably none of the two should be packaged, but a dir dile should rather be generated ## during %post rm -f $RPM_BUILD_ROOT%prefix/share/info/dir chmod 644 ../*.sh # install -d $RPM_BUILD_ROOT/usr/bin # for i in avr-c++ avr-cpp avr-g++ avr-gcc avr-gcc-4.3.3 avr-gccbug # do # ln -s %prefix/bin/$i $RPM_BUILD_ROOT/usr/bin # done # # install -d $RPM_BUILD_ROOT/usr/share/man/man1 # for i in avr-cpp avr-g++ avr-gcc avr-gcov # do # ln -s %prefix/share/man/man1/$i.1.gz $RPM_BUILD_ROOT/usr/share/man/man1 # done %clean rm -rf $RPM_BUILD_ROOT %files %defattr (-, root, root) %doc ChangeLog COPYING* LAST_UPDATED README NEWS /opt/cross /usr/bin/* /usr/share/man/man1/*
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