forked from mcvine/mcvine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rpm.spec.in
74 lines (65 loc) · 1.62 KB
/
rpm.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# -*- rpm-spec -*-
Summary: @CPACK_PACKAGE_SUMMARY@
Name: @CPACK_PACKAGE_NAME@
Version: @CPACK_PACKAGE_VERSION@
Release: @CPACK_PACKAGE_RELEASE@
License: @CPACK_PACKAGE_LICENSE@
Group: @CPACK_PACKAGE_APP_GROUP@
Source: @CPACK_PACKAGE_NAME@-@[email protected]
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: gcc-c++
BuildRequires: cmake > 2.6
BuildRequires: make
BuildRequires: python-devel
BuildRequires: gsl-devel
BuildRequires: boost-devel
BuildRequires: boost-python
BuildRequires: mcvine-resources
BuildRequires: journal
BuildRequires: drchops
Requires: python
Requires: python-devel
Requires: numpy
Requires: python-yaml
Requires: python-psutil
Requires: h5py
Requires: mpi4py-mpich2
Requires: gsl-devel
Requires: boost-python
Requires: pyre
Requires: danse.ins.dsm
Requires: danse.ins.numpyext
Requires: danse.ins.bpext
Requires: histogram
Requires: journal
Requires: diffpy.Structure
Requires: periodictable
Requires: drchops
Requires: mcvine-resources
%description
@CPACK_PACKAGE_SUMMARY@
%define prefix @CPACK_PACKAGING_INSTALL_PREFIX@
%define rpmprefix $RPM_BUILD_ROOT%{prefix}
%define srcdirname %{name}-%{version}
%prep
%setup -q -n %{srcdirname}
%build
cd ..
rm -rf build_tree
mkdir build_tree
./%{srcdirname}/builders/build $PWD/%{srcdirname} build_tree %{rpmprefix} /opt/danse/share/mcvine/resources
%install
cd ../build_tree
make install
%clean
cd ..
rm -rf %{srcdirname}
rm -rf build_tree
%files
%defattr(-,root,root,-)
%{prefix}/include/*
%{prefix}/@INSTALL_LIB_DIR@/*
%{prefix}/bin/*
%{prefix}/etc/*
%{prefix}/share/*
%changelog