package created using the webbuild interface [release 1.40.0-1mamba;Fri Sep 05 2025]

This commit is contained in:
2025-09-10 13:41:45 +02:00
parent d4b210a944
commit 2436bded9b
2 changed files with 53 additions and 0 deletions

View File

@@ -1,2 +1,4 @@
# dub
DUB is a package and build manager for D applications and libraries.

51
dub.spec Normal file
View File

@@ -0,0 +1,51 @@
Name: dub
Version: 1.40.0
Release: 1mamba
Summary: Package and build management system for D
Group: Development/Tools
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/dlang/dub
Source: https://github.com/dlang/dub.git/v%{version}/dub-%{version}.tar.bz2
License: MIT
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libldc-devel
## AUTOBUILDREQ-END
BuildRequires: ldc
%description
DUB is a package and build manager for D applications and libraries.
%prep
%setup -q
%build
ldmd2 -run build.d %{_d_optflags}
./bin/dub --single --compiler=ldmd2 scripts/man/gen_man.d
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -Dp -m0755 -t %{buildroot}%{_bindir} bin/dub
install -Dp -m0644 -t %{buildroot}%{_mandir}/man1 scripts/man/dub*.1
install -Dp -m0644 scripts/bash-completion/dub.bash %{buildroot}%{_datadir}/bash-completion/completions/dub
install -Dp -m0644 -t %{buildroot}%{_datadir}/fish/completions scripts/fish-completion/dub.fish
install -Dp -m0644 -t %{buildroot}%{_datadir}/zsh/site-functions scripts/zsh-completion/_dub
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/dub
%{_datadir}/bash-completion/completions/dub
%{_datadir}/fish/completions/dub.fish
%{_datadir}/zsh/site-functions/_dub
%{_mandir}/man1/dub*.1*
%doc LICENSE
%changelog
* Fri Sep 05 2025 Silvan Calarco <silvan.calarco@mambasoft.it> 1.40.0-1mamba
- package created using the webbuild interface