2024-02-09 11:23:39 +01:00
|
|
|
Name: build2
|
2024-07-13 10:26:44 +02:00
|
|
|
Version: 0.17.0
|
2024-02-09 11:23:39 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: Cross-platform toolchain for building and packaging C/C++ code
|
|
|
|
Group: Development/Tools
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://build2.org/
|
|
|
|
Source: https://download.build2.org/%{version}/build2-toolchain-%{version}.tar.xz
|
|
|
|
License: MIT
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libgcc
|
|
|
|
BuildRequires: libsqlite-devel
|
|
|
|
BuildRequires: libstdc++6-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description
|
|
|
|
Cross-platform toolchain for building and packaging C/C++ code.
|
|
|
|
|
|
|
|
%package -n lib%{name}
|
|
|
|
Group: System/Libraries
|
|
|
|
Summary: Shared libraries for %{name}
|
2024-07-13 10:26:44 +02:00
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
2024-02-09 11:23:39 +01:00
|
|
|
|
|
|
|
%description -n lib%{name}
|
|
|
|
This package contains shared libraries for %{name}.
|
|
|
|
|
|
|
|
%package -n lib%{name}-devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description -n lib%{name}-devel
|
|
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
|
|
|
|
%debug_package
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-toolchain-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
# Prevent from using ccache, which is not supported
|
|
|
|
export PATH=%{_bindir}:$PATH
|
|
|
|
|
2024-07-13 10:26:44 +02:00
|
|
|
mkdir -p build/usr
|
|
|
|
./build.sh --trust yes --local --system libsqlite3 --install-dir ${PWD}/build/usr g++
|
2024-02-09 11:23:39 +01:00
|
|
|
|
|
|
|
%ifarch x86_64 aarch64
|
|
|
|
mv build/usr/lib{,64}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
for f in build/usr/%{_lib}/pkgconfig/*.pc; do sed -i "s|${PWD}/build||" ${f}; done
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
install -d -m0755 %{buildroot}
|
|
|
|
cp -a build/usr %{buildroot}/
|
|
|
|
chrpath -d %{buildroot}%{_bindir}/{b,bpkg,bdep} %{buildroot}%{_libdir}/*.so
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post -n lib%{name} -p /sbin/ldconfig
|
|
|
|
%postun -n lib%{name} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/b
|
|
|
|
%{_bindir}/bdep
|
|
|
|
%{_bindir}/bpkg
|
2024-07-13 10:26:44 +02:00
|
|
|
%{_datadir}/build2/libbuild2/cc/std.compat.cppm
|
|
|
|
%{_datadir}/build2/libbuild2/cc/std.cppm
|
|
|
|
%{_mandir}/man1/b.1*
|
|
|
|
%{_mandir}/man1/bdep*.1*
|
|
|
|
%{_mandir}/man1/bpkg-argument-grouping.1*
|
|
|
|
%{_mandir}/man1/bpkg*1*
|
2024-02-09 11:23:39 +01:00
|
|
|
|
|
|
|
%files -n lib%{name}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libbuild2-*.so
|
|
|
|
%{_libdir}/libbuild2.so
|
2024-07-13 10:26:44 +02:00
|
|
|
%{_libdir}/libbpkg-0.17.so
|
|
|
|
%{_libdir}/libbutl-0.17.so
|
|
|
|
%{_libdir}/libbutl-odb-0.17.so
|
|
|
|
%{_libdir}/libbutl-pkg-config-0.17.so
|
2024-02-09 11:23:39 +01:00
|
|
|
%doc AUTHORS LICENSE
|
|
|
|
|
|
|
|
%files -n lib%{name}-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_includedir}/libbuild2
|
|
|
|
%{_includedir}/libbuild2/*
|
|
|
|
%dir %{_includedir}/libbutl
|
|
|
|
%{_includedir}/libbutl/*
|
2024-07-13 10:26:44 +02:00
|
|
|
%{_libdir}/libbutl-pkg-config.so
|
|
|
|
%{_libdir}/libbutl.so
|
2024-02-09 11:23:39 +01:00
|
|
|
%{_libdir}/pkgconfig/libbuild2*.pc
|
|
|
|
%{_libdir}/pkgconfig/libbutl.pc
|
2024-07-13 10:26:44 +02:00
|
|
|
%{_libdir}/pkgconfig/libbutl-pkg-config.pc
|
|
|
|
%{_libdir}/pkgconfig/libbutl-pkg-config.shared.pc
|
2024-02-09 11:23:39 +01:00
|
|
|
%{_libdir}/pkgconfig/libbutl.shared.pc
|
|
|
|
%dir %{_docdir}/bdep
|
|
|
|
%{_docdir}/bdep/*
|
|
|
|
%dir %{_docdir}/bpkg
|
|
|
|
%{_docdir}/bpkg/*
|
|
|
|
%dir %{_docdir}/build2
|
|
|
|
%{_docdir}/build2/*
|
|
|
|
%dir %{_docdir}/libbuild2-autoconf
|
|
|
|
%{_docdir}/libbuild2-autoconf/*
|
|
|
|
%dir %{_docdir}/libbuild2-kconfig
|
|
|
|
%{_docdir}/libbuild2-kconfig/*
|
|
|
|
%{_docdir}/libbutl/manifest
|
|
|
|
%doc README
|
|
|
|
|
|
|
|
%changelog
|
2024-07-13 10:26:44 +02:00
|
|
|
* Fri Jul 12 2024 Automatic Build System <autodist@openmamba.org> 0.17.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-02-09 11:23:39 +01:00
|
|
|
* Thu Feb 08 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 0.16.0-1mamba
|
|
|
|
- package created using the webbuild interface
|