Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:bberberov:develop:Multi
tcc
tcc.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File tcc.spec of Package tcc
# # spec file for package tcc # # Copyright (c) 2024 Boian Berberov # # 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/ # %global up_name tinycc # TODO: host triplet and version slots #global tccdir %{_libdir}/%{name}/%{HOST_ARCH}-suse-linux %global tccdir %{_libdir}/%{name} Name: tcc Version: 0.9.27 Release: 0%{?dist} Group: Development/Languages/C and C++ Summary: Tiny C Compiler License: LGPL-2.1-or-later URL: https://repo.or.cz/%{up_name}.git Source0: %{up_name}-%{version}.tar.gz %if 0%{?is_opensuse} %if 0%{?sle_version} <= 150600 %if 0%{?sle_version} == 150600 BuildRequires: gcc13 %global gcc_ver gcc-13 %else %if 0%{?sle_version} == 150500 BuildRequires: gcc12 %global gcc_ver gcc-12 %else BuildRequires: gcc >= 10 %global gcc_ver gcc %endif %endif %else BuildRequires: gcc %global gcc_ver gcc %endif %else BuildRequires: gcc %global gcc_ver gcc %endif %if 0%{?is_opensuse} || 0%{?mageia} BuildRequires: makeinfo %else BuildRequires: texinfo %endif Requires: libtcc == %{version} %description Tiny C Compiler %package -n libtcc Summary: Tiny C Compiler library %description -n libtcc Tiny C Compiler library %package -n libtcc-devel Summary: Tiny C Compiler library headers %description -n libtcc-devel Tiny C Compiler library headers %prep %setup -q -n %{up_name}-%{version} %build %set_build_flags # Set proper GCC export CC=%{gcc_ver} %if 0%{?fedora} export LDFLAGS="%{build_ldflags} -fPIC" %endif # Ordered based on `configure` --help ./configure \ --prefix=%{_prefix} \ --exec-prefix=%{_exec_prefix} \ --bindir=%{_bindir} \ --libdir=%{_libdir} \ --tccdir=%{tccdir} \ --includedir=%{_includedir} \ --sharedir=%{_datadir} \ --docdir=%{_defaultdocdir}/%{name} \ --mandir=%{_mandir} \ --infodir=%{_infodir} \ --disable-static \ --disable-rpath # Show config.mak %__cat config.mak %make_build %install %make_install CONFIG_strip=no %files %license COPYING RELICENSING %doc README %{_bindir}/%{name} %dir %{tccdir} %{tccdir}/libtcc1.a %{tccdir}/bcheck.o %{tccdir}/bt-exe.o %{tccdir}/bt-log.o %{tccdir}/runmain.o %dir %{tccdir}/include %{tccdir}/include/float.h %{tccdir}/include/stdalign.h %{tccdir}/include/stdarg.h %{tccdir}/include/stdatomic.h %{tccdir}/include/stdbool.h %{tccdir}/include/stddef.h %{tccdir}/include/stdnoreturn.h %{tccdir}/include/tccdefs.h %{tccdir}/include/tcclib.h %{tccdir}/include/tgmath.h %{tccdir}/include/varargs.h %{_docdir}/%{name}/%{name}-doc.html %{_infodir}/%{name}-doc.info.* %{_mandir}/man1/%{name}.1.* %files -n libtcc %{_libdir}/libtcc.so %files -n libtcc-devel %{_includedir}/libtcc.h %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