summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRon Olson <tachoknight@gmail.com>2018-01-17 19:18:27 -0600
committerRon Olson <tachoknight@gmail.com>2018-01-17 19:18:27 -0600
commita1c0d95331b983b24a7ea2ebda2e820e31b4d6fb (patch)
tree71eeefdb74294405b63357f6984ad55cce83b01c
parent1d4cf02e8aed6f95bf85574df0ca41234159af6e (diff)
downloadswift-lang-a1c0d95331b983b24a7ea2ebda2e820e31b4d6fb.tar.gz
swift-lang-a1c0d95331b983b24a7ea2ebda2e820e31b4d6fb.tar.xz
swift-lang-a1c0d95331b983b24a7ea2ebda2e820e31b4d6fb.zip
Added devel section per packaging guidelines
-rw-r--r--swift-lang.spec21
1 files changed, 18 insertions, 3 deletions
diff --git a/swift-lang.spec b/swift-lang.spec
index eed8639..d11f0ef 100644
--- a/swift-lang.spec
+++ b/swift-lang.spec
@@ -1,3 +1,4 @@
+%global debug_package %{nil}
%global sourcename apple-swift
%global sourcedir %{_tmppath}/%{sourcename}
%global builddir %{sourcedir}/builds
@@ -25,6 +26,15 @@ and desktop apps, scaling up to cloud services. Most
importantly, Swift is designed to make writing and maintaining
correct programs easier for the developer.
+%package devel
+Summary: Development files for the Swift programming language
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Development files for compiling and statically linking
+blocks in a program that uses the Apple blocks
+proposed extension.
+
%prep
%setup -n %{sourcename}
@@ -36,13 +46,18 @@ cp -r %{builddir}/* %{buildroot}
rm %{buildroot}/swift-%{version}-fedora.tar.gz
%files
+%defattr(-, root, root)
%{_bindir}/*
-%{_includedir}/*
-%{_libdir}/*
-%{_usr}/lib/*
%{_mandir}/*
%{_datarootdir}/*
+%files devel
+%{_includedir}/*
+%{_usr}/lib/*
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
%changelog
* Tue Jan 16 2018 Ron Olson <tachoknight@gmail.com> 4.1-1