File dlang-tools.spec of Package dlang-tools
#
# spec file for package dlang-tools
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: dlang-tools
Version: 2.079.0
Release: 0
Summary: D Programming Language Tools
License: BSL-1.0, PD
Group: Development/Tools/Other
Url: https://github.com/D-Programming-Language/tools
Source: https://github.com/D-Programming-Language/tools/archive/v%{version}.tar.gz
BuildRequires: curl-devel
BuildRequires: dmd >= 2.069.0
BuildRequires: phobos-devel >= 2.069.0
BuildRequires: phobos-devel-static >= 2.069.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Tools for the D programming language.
%prep
%setup -q -n tools-%{version}
%build
mkdir -p ../dmd/src
touch ../dmd/src/osmodel.mak
make -f posix.mak \
DMD=dmd \
%{?_smp_mflags}
%install
make -f posix.mak install \
DMD=dmd \
INSTALL_DIR=%{buildroot}%{_prefix} %{?_smp_mflags}
for i in catdoc changed checkwhitespace chmodzip contributors detab dget rdmd_test tolf ; do
rm -f "%{buildroot}%{_bindir}/$i"
done
%files
%defattr(-,root,root)
%{_bindir}/ddemangle
%{_bindir}/dustmite
%{_bindir}/rdmd
%changelog