From c9ecb2d1f412d32fd082a760293152a18cddf7ff Mon Sep 17 00:00:00 2001 From: Ron Olson Date: Tue, 17 Apr 2018 13:24:41 -0500 Subject: Had to rework the build directory a bit for the license file --- swift-lang.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/swift-lang.spec b/swift-lang.spec index fbeb938..29f0cee 100644 --- a/swift-lang.spec +++ b/swift-lang.spec @@ -91,13 +91,17 @@ mv ninja-1.7.2 ninja # as the swift executable (i.e. /usr/bin). %patch0 -p0 +# And copy our license file so the macro can find it later +cp swift/LICENSE.txt %{_builddir} %build export VERBOSE=1 +export PYTHON_DISALLOW_AMBIGUOUS_VERSION=0 swift/utils/build-script --preset=buildbot_linux,no_test install_destdir=%{_builddir} installable_package=%{_builddir}/swift-%{version}-fedora.tar.gz %install +export PYTHON_DISALLOW_AMBIGUOUS_VERSION=0 mkdir -p %{buildroot}%{_libexecdir}/swift-lldb mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}/usr/lib @@ -154,7 +158,7 @@ install -m 0644 %{_builddir}/usr/share/man/man1/swift.1 %{buildroot}%{_mandir}/m %files -%license swift-source/swift/LICENSE.txt +%license LICENSE.txt %{_bindir}/swift* %{_mandir}/man1/* %{_includedir}/* -- cgit