Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:mnhauke
dietlibc
dietlibc.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File dietlibc.spec of Package dietlibc
# # spec file for package dietlibc # # Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: dietlibc Version: 0.34 Release: 0 Summary: A Libc Optimized for Small Size License: GPL-2.0-or-later Group: Development/Languages/C and C++ #Source23: %{name}-0.30-setjmp-longjmpg.diff #Patch0: %{name}-0.31-tls.diff #Patch1: %{name}-0.30-tcsetattr.diff #Patch6: long-double-workaround.diff #Patch7: %{name}-0.30-features.diff #Patch31: %{name}-0.30-ppc-syscall.diff #Patch32: %{name}-0.30-pause.diff #Patch33: parisc-clone.S-fix-build-failure-on-hppa.diff #Patch34: fix-arm-regex-in-makefile.diff #Patch35: dietlibc-ppc.patch #BuildRequires: gpg-offline URL: https://www.fefe.de/dietlibc/ Source0: https://www.fefe.de/dietlibc/%{name}-%{version}.tar.xz #Source1: https://www.fefe.de/dietlibc/%{name}-%{version}.tar.xz.sig # See README.maintainers to understand next four source files Source9: README.maintainers Source12: %{name}.keyring Source99: %{name}-rpmlintrc Provides: diet ExcludeArch: %arm ppc64le %description Diet libc is optimized for small size. It can be used to create small statically-linked binaries for Linux on many platforms. %define prefix /opt/dietlibc %prep #%%gpg_verify %{S:11} %setup -q #%%patch -P 0 #%%patch -P 1 #%%patch -P 6 #%%patch -P 7 #%%patch -P 31 #%%patch -P 32 #%%patch -P 33 -p1 #%%patch -P 34 #%%patch -P 35 -p1 %build %define _lto_cflags %{nil} MY_RPM_OPT_FLAGS=$(echo %{optflags} | sed -e 's,-O2,-Os,' \ -e 's/-D_FORTIFY_SOURCE[=0-9]*//' \ -e 's/-ffortify[=0-9]*//' \ ) # Makefile relies on `uname -m` to determine bitness (bad), # so need extra args to rectify. %make_build \ %ifarch sparc sparcv9 MYARCH=sparc ARCH=sparc \ %endif prefix=%{prefix} CFLAGS="$CFLAGS $MY_RPM_OPT_FLAGS -fno-strict-aliasing" %install %ifarch hppa export RPM_ARCH=parisc %endif %ifarch %arm export RPM_ARCH=arm %endif %ifarch sparc sparcv9 export RPM_ARCH=sparc %endif mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{prefix}/{bin-$RPM_ARCH,lib-$RPM_ARCH},%{_mandir}/man1} cd bin-$RPM_ARCH mv -f dietlibc.a libc.a mv -f diet-i diet install -m644 start.o lib*.a %{buildroot}/%{prefix}/lib-$RPM_ARCH install -m755 diet elftrunc %{buildroot}/%{prefix}/bin-$RPM_ARCH install -m644 ../diet.1 %{buildroot}/%{_mandir}/man1 cp -a ../include %{buildroot}/%{prefix} ln -sfv lib-$RPM_ARCH %{buildroot}/%{prefix}/lib ln -sfv bin-$RPM_ARCH %{buildroot}/%{prefix}/bin ln -sfv %{prefix}/bin-$RPM_ARCH/{diet,elftrunc} %{buildroot}%{_bindir} %files %license COPYING %doc AUTHOR BUGS CAVEAT CHANGES FAQ PORTING README SECURITY TODO THANKS %{_bindir}/diet %{_bindir}/elftrunc %{_mandir}/man1/diet.1%{?ext_man} %{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