diff options
author | Ron Olson <tachoknight@gmail.com> | 2018-04-17 13:24:41 -0500 |
---|---|---|
committer | Ron Olson <tachoknight@gmail.com> | 2018-04-17 13:24:41 -0500 |
commit | c9ecb2d1f412d32fd082a760293152a18cddf7ff (patch) | |
tree | f6e99dd5f0894a5d27466d092f1bd7d881e65b20 | |
parent | 0cbc00287d1d3f0c582956784f780341a3252ce2 (diff) | |
download | swift-lang-c9ecb2d1f412d32fd082a760293152a18cddf7ff.tar.gz swift-lang-c9ecb2d1f412d32fd082a760293152a18cddf7ff.tar.xz swift-lang-c9ecb2d1f412d32fd082a760293152a18cddf7ff.zip |
Had to rework the build directory a bit for the license file
-rw-r--r-- | swift-lang.spec | 6 |
1 files changed, 5 insertions, 1 deletions
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}/* |