-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswift-CPerl.spec
51 lines (34 loc) · 1.24 KB
/
swift-CPerl.spec
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
50
51
Name: swift-CPerl
Version: %{__version}
Release: %{!?__release:1}%{?__release}%{?dist}
Summary: Low-level Swift bindings for Perl
Group: Development/Libraries
License: MIT
URL: https://github.com/my-mail-ru/%{name}
Source0: https://github.com/my-mail-ru/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: swift >= 4
BuildRequires: swift-packaging >= 0.9
BuildRequires: perl
Provides: swiftpm(%{url}.git) = %{version}
Requires: perl-devel
%define debug_package %{nil}
%swift_find_provides_and_requires
%description
swiftperl is designed to provide an easy and smooth interoperability between Swift and Perl languages.
The primary goal is to write XS modules for Perl entirely in Swift, though running Perl Interpreter
in Swift environment is also possible.
%{?__revision:Built from revision %{__revision}.}
%prep
%setup -q
%build
./prepare
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{swift_clangmoduleroot}/CPerl/
cp module.modulemap *.h %{buildroot}%{swift_clangmoduleroot}/CPerl/
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{swift_clangmoduleroot}/CPerl