summaryrefslogtreecommitdiffstats
path: root/swift-lang.spec
blob: eed8639b8369d9bbd83fd95eb3c74edda5e68e43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
%global sourcename apple-swift
%global sourcedir %{_tmppath}/%{sourcename}
%global builddir %{sourcedir}/builds

Name:	    swift-lang
Version:	4.1_DEV
Release:	1%{?dist}
Summary:	Apple's Swift programming language

License:	ASL 2.0
URL:		https://swift.org
Source0:	apple-swift.zip

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 -n %{sourcename}

%build
./swift/utils/build-script --preset=buildbot_linux,no_test install_destdir=%{builddir} installable_package=%{builddir}/swift-%{version}-fedora.tar.gz

%install
cp -r %{builddir}/* %{buildroot}
rm %{buildroot}/swift-%{version}-fedora.tar.gz

%files
%{_bindir}/*
%{_includedir}/*
%{_libdir}/*
%{_usr}/lib/*
%{_mandir}/*
%{_datarootdir}/*


%changelog
* Tue Jan 16 2018 Ron Olson <tachoknight@gmail.com> 4.1-1
- Initial package for Fedora