79 lines
2.0 KiB
RPMSpec
79 lines
2.0 KiB
RPMSpec
Name: libcutl
|
|
Version: 1.11.0
|
|
Release: 1mamba
|
|
Summary: A C++ utility library
|
|
Group: System/Libraries
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan@openmamba.org>
|
|
URL: https://www.codesynthesis.com/projects/libcutl/
|
|
Source: https://www.codesynthesis.com/download/xsd/4.2/libcutl-%{version}.tar.gz
|
|
License: MIT
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libgcc
|
|
BuildRequires: libstdc++6-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: build2
|
|
|
|
%description
|
|
libcutl is a C++ utility library. It contains a collection of generic and independent components such as meta-programming tests, smart pointers, containers, compiler building blocks, etc.
|
|
|
|
%package devel
|
|
Group: Development/Libraries
|
|
Summary: Development files for %{name}
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description devel
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
# bpkg/build2 does not produce DWARF debug info in RPM-standard format
|
|
%global debug_package %{nil}
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
# Disable ccache
|
|
export PATH=%{_bindir}:$PATH
|
|
|
|
bpkg create -d ../build cc \
|
|
config.bin.lib=shared \
|
|
config.cxx=g++ \
|
|
config.cc.coptions="%{optflags}"
|
|
|
|
cd ../build
|
|
bpkg add ../%{name}-%{version} --type dir
|
|
bpkg rep-fetch
|
|
bpkg build libcutl
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
cd ../build
|
|
bpkg install \
|
|
config.install.chroot=%{buildroot} \
|
|
config.install.root=%{_prefix} \
|
|
config.install.lib=%{_libdir} libcutl
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libcutl-1.11.so
|
|
%doc LICENSE
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%dir %{_includedir}/libcutl
|
|
%{_includedir}/libcutl/*
|
|
%{_libdir}/libcutl.so
|
|
%{_libdir}/pkgconfig/libcutl.pc
|
|
%{_libdir}/pkgconfig/libcutl.shared.pc
|
|
%dir %{_docdir}/libcutl
|
|
%{_docdir}/libcutl/*
|
|
|
|
%changelog
|
|
* Fri Oct 24 2025 Silvan Calarco <silvan.calarco@mambasoft.it> 1.11.0-1mamba
|
|
- package created using the webbuild interface
|