124 lines
3.5 KiB
RPMSpec
124 lines
3.5 KiB
RPMSpec
Name: build2
|
|
Version: 0.17.0
|
|
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}
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%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
|
|
|
|
mkdir -p build/usr
|
|
./build.sh --trust yes --local --system libsqlite3 --install-dir ${PWD}/build/usr g++
|
|
|
|
%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
|
|
%{_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*
|
|
|
|
%files -n lib%{name}
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libbuild2-*.so
|
|
%{_libdir}/libbuild2.so
|
|
%{_libdir}/libbpkg-0.17.so
|
|
%{_libdir}/libbutl-0.17.so
|
|
%{_libdir}/libbutl-odb-0.17.so
|
|
%{_libdir}/libbutl-pkg-config-0.17.so
|
|
%doc AUTHORS LICENSE
|
|
|
|
%files -n lib%{name}-devel
|
|
%defattr(-,root,root)
|
|
%dir %{_includedir}/libbuild2
|
|
%{_includedir}/libbuild2/*
|
|
%dir %{_includedir}/libbutl
|
|
%{_includedir}/libbutl/*
|
|
%{_libdir}/libbutl-pkg-config.so
|
|
%{_libdir}/libbutl.so
|
|
%{_libdir}/pkgconfig/libbuild2*.pc
|
|
%{_libdir}/pkgconfig/libbutl.pc
|
|
%{_libdir}/pkgconfig/libbutl-pkg-config.pc
|
|
%{_libdir}/pkgconfig/libbutl-pkg-config.shared.pc
|
|
%{_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
|
|
* Fri Jul 12 2024 Automatic Build System <autodist@openmamba.org> 0.17.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Feb 08 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 0.16.0-1mamba
|
|
- package created using the webbuild interface
|