forked from SpinWaveGenie/SpinWaveGenie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSpinWaveGenie.spec.in
48 lines (38 loc) · 1.21 KB
/
SpinWaveGenie.spec.in
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
Name: @CPACK_PACKAGE_NAME@
Version: @CPACK_PACKAGE_VERSION@
Release: @CPACK_RPM_PACKAGE_RELEASE@%{?dist}
Summary: @CPACK_PACKAGE_DESCRIPTION_SUMMARY@
Group: @CPACK_RPM_PACKAGE_GROUP@
Vendor: @CPACK_PACKAGE_VENDOR@
Packager: @CPACK_PACKAGE_VENDOR@ <@CPACK_PACKAGE_CONTACT@>
License: @CPACK_RPM_PACKAGE_LICENSE@
URL: @CPACK_RPM_PACKAGE_URL@
Source0: %{name}-%{version}.tar.gz
#Source0: @CPACK_RPM_PACKAGE_URL@/releases/download/v%{version}/SpinWaveGenie-%{version}.tar.gz
BuildRequires: @CPACK_RPM_PACKAGE_REQUIRES@
%{?fedora:Requires: python2 python2-numpy}
%{?rhel:Requires: python numpy}
Prefix: @CPACK_PACKAGING_INSTALL_PREFIX@
%if @CPACK_RPM_USE_THREADS@
BuildRequires: tbb-devel
Requires: tbb
%endif
%description
@CPACK_RPM_PACKAGE_DESCRIPTION@
%prep
%setup -q
%build
%cmake3 -DBUILD_TESTING=True -DPYBIND11_PYTHON_VERSION=2.7 -DPYTHON_SITE_PACKAGES_DIR=%{python2_sitelib}
%{!?make_build: %define make_build %{__make} %{?_smp_mflags}}
%make_build
%install
rm -rf $RPM_BUILD_ROOT
%make_install
%check
%{__make} test
%files
%defattr(-,root,root,-)
%{_libdir}/cmake/SpinWaveGenie/
%{_libdir}/libSpinWaveGenie.so
%{python2_sitelib}/*
%doc