From 1d4cf02e8aed6f95bf85574df0ca41234159af6e Mon Sep 17 00:00:00 2001 From: Ron Olson Date: Wed, 17 Jan 2018 13:35:48 -0600 Subject: Builds but doesn't package. Switched to %{_tmpdir} for putting the built files --- swift-lang.spec | 42 ++++++++++++++++++++++++++++-------------- 1 file 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 4.1-1 +- Initial package for Fedora -- cgit