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 |
ExclusiveArch: %{ix86} x86_64 |
16 |
|
17 |
%description |
18 |
Tools for the D programming language. |
19 |
|
20 |
%prep |
21 |
%setup -q -n tools-%{version} |
22 |
|
23 |
%build |
24 |
mkdir -p ../dmd/src |
25 |
touch ../dmd/src/osmodel.mak |
26 |
make -f posix.mak \ |
27 |
DMD=dmd \ |
28 |
%{?_smp_mflags} |
29 |
|
30 |
%install |
31 |
make -f posix.mak install \ |
32 |
DMD=dmd \ |
33 |
INSTALL_DIR=%{buildroot}%{_prefix} %{?_smp_mflags} |
34 |
for i in catdoc changed checkwhitespace chmodzip contributors detab dget rdmd_test tolf ; do |
35 |
rm -f "%{buildroot}%{_bindir}/$i" |
36 |
done |
37 |
|
38 |
%files |
39 |
%{_bindir}/ddemangle |
40 |
%{_bindir}/dustmite |
41 |
%{_bindir}/rdmd |
42 |
%{_bindir}/updatecopyright |