-
Notifications
You must be signed in to change notification settings - Fork 1
/
SeqAn.spec
158 lines (127 loc) · 4.51 KB
/
SeqAn.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
%global buildtemp %{_builddir}/%{name}-%{version}
Name: SeqAn
Version: 1.3
Release: 5%{?dist}
Summary: Biological sequence analysis library
Group: Applications/Engineering
License: BSD with advertising
URL: http://seqan.de/
Source0: http://www.seqan.de/uploads/media/Seqan_Release_%{version}.zip
Source1: seqan-debian-manpages.tar
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: python-devel >= 2.5
BuildRequires: cmake
BuildRequires: zlib-devel
BuildRequires: samtools-devel
BuildRequires: dos2unix
BuildRequires: boost-devel
%description
SeqAn is an open source C++ library of efficient algorithms and data
structures for the analysis of sequences with the focus on biological
data. Our library applies a unique generic design that guarantees high
performance, generality, extensibility, and integration with other
libraries. SeqAn is easy to use and simplifies the development of new
software tools with a minimal loss of performance.
%package devel
Summary: Header files and libraries for compiling against %{name}
Group: Development/System
Requires: %name = %version-%release
%description devel
Header files for compiling against %{name}
%prep
%setup -q -c %{name}-%{version}
#Fix incorrect file encodings
dos2unix doc/dddoc.js
dos2unix README
%build
cd cmake
%cmake -DCMAKE_SKIP_RPATH=YES .
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_bindir}
install -p %{buildtemp}/cmake/apps/dfi %{buildroot}%{_bindir}
install -p %{buildtemp}/cmake/apps/insegt %{buildroot}%{_bindir}
install -p %{buildtemp}/cmake/apps/mason %{buildroot}%{_bindir}
install -p %{buildtemp}/cmake/apps/micro_razers %{buildroot}%{_bindir}
install -p %{buildtemp}/cmake/apps/pair_align %{buildroot}%{_bindir}
install -p %{buildtemp}/cmake/apps/param_chooser %{buildroot}%{_bindir}
install -p %{buildtemp}/cmake/apps/rabema %{buildroot}%{_bindir}
install -p %{buildtemp}/cmake/apps/razers %{buildroot}%{_bindir}
install -p %{buildtemp}/cmake/apps/razers2 %{buildroot}%{_bindir}
install -p %{buildtemp}/cmake/apps/read_analyzer %{buildroot}%{_bindir}
install -p %{buildtemp}/cmake/apps/rep_sep %{buildroot}%{_bindir}
install -p %{buildtemp}/cmake/apps/sak %{buildroot}%{_bindir}
install -p %{buildtemp}/cmake/apps/seqan_tcoffee %{buildroot}%{_bindir}
install -p %{buildtemp}/cmake/apps/seqcons %{buildroot}%{_bindir}
install -p %{buildtemp}/cmake/apps/snp_store %{buildroot}%{_bindir}
install -p %{buildtemp}/cmake/apps/splazers %{buildroot}%{_bindir}
install -p %{buildtemp}/cmake/apps/stellar %{buildroot}%{_bindir}
install -p %{buildtemp}/cmake/apps/tree_recon %{buildroot}%{_bindir}
mkdir -p %{buildroot}/%{_includedir}/%{name}
chmod 0644 %{buildtemp}/apps/stellar/*
chmod 0644 %{buildtemp}/apps/rep_sep/*
chmod 0644 %{buildtemp}/apps/snp_store/*
chmod 0644 %{buildtemp}/seqan/random/ext_MersenneTwister.h
chmod 0644 %{buildtemp}/seqan/store/store_io_gff.h
chmod 0644 %{buildtemp}/seqan/index/shape_threshold.h
chmod 0644 %{buildtemp}/seqan/graph_align/graph_align_banded_smith_waterman_clump.h
chmod 0644 %{buildtemp}/seqan/parallel/*
chmod 0644 %{buildtemp}/seqan/store/*
chmod 0644 %{buildtemp}/seqan/index/*
chmod 0644 %{buildtemp}/seqan/platform.h
chmod 0644 %{buildtemp}/seqan/parallel.h
cp -a %{buildtemp}/seqan %{buildroot}/%{_includedir}/
rm %{buildroot}/%{_includedir}/seqan/LICENSE
mkdir -p %{buildroot}%{_mandir}/man1
cd %{buildroot}%{_mandir}/man1
tar xvf %{SOURCE1}
%clean
rm -rf %{buildroot}
%check
ctest
%files
%defattr(-,root,root,-)
%doc README
%{_bindir}/dfi
%{_bindir}/insegt
%{_bindir}/mason
%{_bindir}/micro_razers
%{_bindir}/pair_align
%{_bindir}/param_chooser
%{_bindir}/rabema
%{_bindir}/razers
%{_bindir}/razers2
%{_bindir}/read_analyzer
%{_bindir}/rep_sep
%{_bindir}/sak
%{_bindir}/seqan_tcoffee
%{_bindir}/seqcons
%{_bindir}/snp_store
%{_bindir}/splazers
%{_bindir}/stellar
%{_bindir}/tree_recon
%{_mandir}/man1/dfi.1*
%{_mandir}/man1/micro_razers.1*
%{_mandir}/man1/pair_align.1*
%{_mandir}/man1/razers.1*
%{_mandir}/man1/seqan_tcoffee.1*
%{_mandir}/man1/seqcons.1*
%{_mandir}/man1/tree_recon.1*
%files devel
%defattr(-,root,root,-)
%doc doc seqan/LICENSE
%{_includedir}/seqan
%changelog
* Mon Jan 30 2012 Adam Huffman <[email protected]> - 1.3-5
- add BR for Boost
* Tue Jun 28 2011 Adam Huffman <[email protected]> - 1.3-4
- fix bad permissions
* Fri Jun 3 2011 Adam Huffman <[email protected]> - 1.3-3
- add manpages from Debian package
- add -devel subpackage
* Fri Jun 3 2011 Adam Huffman <[email protected]> - 1.3-2
- initial version
- boost-devel BR
- remove RPATH
- add zlib and samtools BR