summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRon Olson <tachoknight@gmail.com>2018-01-17 13:35:48 -0600
committerRon Olson <tachoknight@gmail.com>2018-01-17 13:35:48 -0600
commit1d4cf02e8aed6f95bf85574df0ca41234159af6e (patch)
tree07d1d4eaa35e7b11cea94d768ea7b91a28bec254
parent49e0b5806ea9a04f94dce789f4db9ee90b99e9de (diff)
downloadswift-lang-1d4cf02e8aed6f95bf85574df0ca41234159af6e.tar.gz
swift-lang-1d4cf02e8aed6f95bf85574df0ca41234159af6e.tar.xz
swift-lang-1d4cf02e8aed6f95bf85574df0ca41234159af6e.zip
Builds but doesn't package. Switched to %{_tmpdir} for putting the built files
-rw-r--r--swift-lang.spec42
1 files changed, 28 insertions, 14 deletions
diff --git a/swift-lang.spec b/swift-lang.spec
index 76307f7..eed8639 100644
--- a/swift-lang.spec
+++ b/swift-lang.spec
@@ -1,35 +1,49 @@
+%global sourcename apple-swift
+%global sourcedir %{_tmppath}/%{sourcename}
+%global builddir %{sourcedir}/builds
+
Name: swift-lang
-Version: 4.1
+Version: 4.1_DEV
Release: 1%{?dist}
Summary: Apple's Swift programming language
License: ASL 2.0
URL: https://swift.org
-Source0:
+Source0: apple-swift.zip
-BuildRequires:
-Requires:
+BuildRequires: clang,libicu-devel,gcc-c++,cmake,libuuid-devel,libedit-devel,swig,pkgconfig,libbsd-devel,libxml2-devel,libsqlite3x-devel,python-devel,ninja-build
+Requires: clang,libicu-devel
%description
+Swift is a general-purpose programming language built using
+a modern approach to safety, performance, and software design
+patterns.
+The goal of the Swift project is to create the best available
+language for uses ranging from systems programming, to mobile
+and desktop apps, scaling up to cloud services. Most
+importantly, Swift is designed to make writing and maintaining
+correct programs easier for the developer.
%prep
-%setup -q
-
+%setup -n %{sourcename}
%build
-%configure
-make %{?_smp_mflags}
-
+./swift/utils/build-script --preset=buildbot_linux,no_test install_destdir=%{builddir} installable_package=%{builddir}/swift-%{version}-fedora.tar.gz
%install
-%make_install
-
+cp -r %{builddir}/* %{buildroot}
+rm %{buildroot}/swift-%{version}-fedora.tar.gz
%files
-%doc
-
+%{_bindir}/*
+%{_includedir}/*
+%{_libdir}/*
+%{_usr}/lib/*
+%{_mandir}/*
+%{_datarootdir}/*
%changelog
-
+* Tue Jan 16 2018 Ron Olson <tachoknight@gmail.com> 4.1-1
+- Initial package for Fedora