-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathblat35-1.spec
executable file
·116 lines (87 loc) · 2.39 KB
/
blat35-1.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# $Id$
Summary: BLAT: BLAST like alignment tool
Name: blat
Version: 35
Release: 1
License: freely distributable
Group: Applications/Life Sciences
Source0: blatSrc35.zip
Packager: [email protected]
%define debug_package %{nil}
%include rpm-dir.inc
%define PNAME blat
%include ../system-defines.inc
%define INSTALL_DIR %{APPS}/%{PNAME}/%{version}
%define MODULE_DIR %{APPS}/%{MODULES}/%{PNAME}
%define MODULE_VAR TACC_BLAT
%description
BLAST like alignment tool
%prep
# Remove older attempts
rm -rf $RPM_BUILD_ROOT/%{INSTALL_DIR}
%setup -n blatSrc
%build
%install
%include ../system-load.inc
module purge
module load TACC
module swap $TACC_FAMILY_COMPILER gcc
# I'm using the old gcc here. The make file has -Wall and -Werror
# on, so I'll have to edit the makefile for it to work with the newer
# gcc. I think we should wait until we have a test system, and then
# look at performance changes from changing the compiler. This at
# least makes the tool available.
mkdir -p $RPM_BUILD_ROOT/%{INSTALL_DIR}
make BINDIR=$RPM_BUILD_ROOT/%{INSTALL_DIR} MACHTYPE=x86_64
# L="$L -Wl,-Bdynamic -L/usr/lib64 -lpng -Wl,-Bstatic"
#-----------------
# Modules Section
#-----------------
rm -rf $RPM_BUILD_ROOT/%{MODULE_DIR}
mkdir -p $RPM_BUILD_ROOT//%{MODULE_DIR}
cat > $RPM_BUILD_ROOT/%{MODULE_DIR}/%{version}.lua << 'EOF'
help(
[[
The %{PNAME} module adds the variable %{MODULE_VAR}_DIR to your environment.
This directory contains the following executables:
blat
faToNib
faToTwoBit
gfClient
gfServer
nibFrag
pslPretty
pslReps
pslSort
twoBitInfo
twoBitToFa
Documentation is available online here:
http://genome.ucsc.edu/goldenPath/help/blatSpec.html
Version %{version}
]]
)
whatis("Name: blat")
whatis("Version: %{version}")
whatis("Category: computational biology, genomics ")
whatis("Keywords: Biology, Blast, Genomics")
whatis("URL: http://users.soe.ucsc.edu/~kent/src/")
whatis("Description: BLAST like alignment tool")
prepend_path("PATH", "%{INSTALL_DIR}/")
setenv ( "%{MODULE_VAR}_DIR", "%{INSTALL_DIR}/")
EOF
#--------------
# Version file.
#--------------
cat > $RPM_BUILD_ROOT/%{MODULE_DIR}/.version.%{version} << 'EOF'
#%Module3.1.1#################################################
##
## version file for %{PNAME}-%{version}
##
set ModulesVersion "%{version}"
EOF
%files
%defattr(755,root,root,-)
%{INSTALL_DIR}
%{MODULE_DIR}
%clean
rm -rf $RPM_BUILD_ROOT