## START: Set by rpmautospec ## (rpmautospec version 0.6.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global debug_package %{nil} %define lib_name dportals %define lib_ver 0.1.0 %define lib_gitver 0.1.0 %define lib_semver 0.1.0 %define lib_dist 0 %define lib_commit 0000000 %define lib_short 0000000 %if 0%{lib_dist} > 0 %define lib_suffix ^%{lib_dist}.git%{lib_short} %endif Name: zdub-%{lib_name} Version: %{lib_ver}%{?lib_suffix:} Release: %autorelease Summary: xdg-portals for D Group: Development/Libraries License: BSD-2-Clause URL: https://github.com/Inochi2D/%{lib_name} Source0: https://code.dlang.org/packages/%{lib_name}/%{lib_gitver}.zip Source1: LICENSE BuildRequires: setgittag BuildRequires: git BuildRequires: ldc BuildRequires: dub BuildRequires: zdub-ddbus-static BuildRequires: zdub-silly-static BuildRequires: dbus-devel %description This D library allows you to interface with XDG Desktop Portals when you aren't using GTK or Qt. %package devel Provides: %{name}-static = %{version}-%{release} Summary: Support to use %{lib_name} for developing D applications Group: Development/Libraries Requires: zdub-dub-settings-hack Requires: zdub-ddbus-static Requires: zdub-silly-static Requires: dbus-devel %description devel Sources to use the %{lib_name} library on dub using the zdub-dub-settings-hack method. %prep %autosetup -n %{lib_name}-%{lib_gitver} -p1 setgittag --rm -f v%{lib_gitver} cp %{SOURCE1} . %check dub build \ --config=unittest \ --cache=local --temp-build \ --skip-registry=all \ --compiler=ldc2 \ --deep dub clean %install mkdir -p %{buildroot}%{_includedir}/zdub/%{lib_name}/%{lib_gitver} cp -r . %{buildroot}%{_includedir}/zdub/%{lib_name}/%{lib_gitver}/%{lib_name} %files devel %license LICENSE %{_includedir}/zdub/%{lib_name}/%{lib_gitver}/%{lib_name}/ %changelog ## START: Generated by rpmautospec * Fri Aug 09 2024 John Doe - 0.1.0-1 - Uncommitted changes ## END: Generated by rpmautospec