File oxfuse-ldc2.spec of Package oxfuse-ldc2
%define MAJOR_VERSION 0
Name: oxfuse-ldc2
Version: 0.5.0
Summary: High-level binding to libfuse3 for the D programming language, version for ldc2
%if 0%{?suse_version}
License: BSL-1.0 or LGPL-3.0+
%else
License: Boost or LGPLv3+
%endif
URL: https://gitlab.com/os-18/oxfuse
Release: 1%{?dist}
Source0: %{name}-%{version}.tar.xz
%if 0%{?suse_version}
BuildRequires: bash chrpath findutils pkg-config ldc findutils fuse3-devel openSUSE-release lsb-release ldc-bash-completion ldc-phobos-devel ldc-runtime-devel
%else
BuildRequires: bash chrpath findutils pkg-config ldc findutils fuse3-devel generic-release redhat-lsb util-linux
%endif
%description
The library provides an object-oriented API for implementing file systems in userspace.
This version is for the compiler ldc2.
%global debug_package %{nil}
%package -n lib%{name}-%{MAJOR_VERSION}
Summary: Shared library of the OXFuse project
Provides: %{name} = %{version}-%{release}
%description -n lib%{name}-%{MAJOR_VERSION}
High-level binding to libfuse3 for the D programming language, version for ldc2.
This package provides shared library for the ldc2 compiler.
%prep
%autosetup
%build
%make_build DC=ldc2
%install
%make_install PREFIX=usr DC=ldc2
%files -n lib%{name}-%{MAJOR_VERSION}
%_libdir/lib%{name}.so.%{MAJOR_VERSION}
%_libdir/lib%{name}.so.%{version}
%package devel
Summary: Development files of the OXFuse library
Requires: lib%{name}-%{MAJOR_VERSION} = %{version} pkg-config
%post -n lib%{name}-%{MAJOR_VERSION} -p /sbin/ldconfig
%postun -n lib%{name}-%{MAJOR_VERSION} -p /sbin/ldconfig
%files devel
%_includedir/d/
%_includedir/d/oxfuse
%_libdir/lib%{name}.so
%_libdir/lib%{name}.a
%config %_libdir/pkgconfig/%{name}.pc
%config %_libdir/pkgconfig/%{name}-static.pc
%description devel
High-level binding to libfuse3 for the D programming language, version for ldc2.
This package provides static library and files for importing.
Built by the ldc2 compiler.
%changelog
* Fri Oct 10 2025 Eugene 'Vindex' Stulin <tech.vindex@gmail.com> 0.5.0
- new upstream release.