1 |
%define debug_package %{nil} |
2 |
|
3 |
Name: dlang-tools |
4 |
Version: 2.094.1 |
5 |
Release: %mkrel 1 |
6 |
Summary: D Programming Language Tools |
7 |
License: BSL-1.0, PD |
8 |
Group: Development/Other |
9 |
Url: https://github.com/D-Programming-Language/tools |
10 |
Source: https://github.com/D-Programming-Language/tools/archive/v%{version}.tar.gz |
11 |
BuildRequires: curl-devel |
12 |
BuildRequires: dmd >= 2.069.0 |
13 |
BuildRequires: phobos-devel >= 2.069.0 |
14 |
BuildRequires: phobos-static-devel >= 2.069.0 |
15 |
|
16 |
%description |
17 |
Tools for the D programming language. |
18 |
|
19 |
%prep |
20 |
%setup -q -n tools-%{version} |
21 |
|
22 |
%build |
23 |
mkdir -p ../dmd/src |
24 |
touch ../dmd/src/osmodel.mak |
25 |
make -f posix.mak \ |
26 |
DMD=dmd \ |
27 |
%{?_smp_mflags} |
28 |
|
29 |
%install |
30 |
make -f posix.mak install \ |
31 |
DMD=dmd \ |
32 |
INSTALL_DIR=%{buildroot}%{_prefix} %{?_smp_mflags} |
33 |
for i in catdoc changed checkwhitespace chmodzip contributors detab dget rdmd_test tolf ; do |
34 |
rm -f "%{buildroot}%{_bindir}/$i" |
35 |
done |
36 |
|
37 |
%files |
38 |
%{_bindir}/ddemangle |
39 |
%{_bindir}/dustmite |
40 |
%{_bindir}/rdmd |
41 |
%{_bindir}/updatecopyright |