-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathyorick_yao.fedora.spec
90 lines (77 loc) · 2.9 KB
/
yorick_yao.fedora.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
%define name yorick-yao
%define version 5.10.8
%define release gemini2010sep16
Summary: yorick adaptive optics simulation package
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{name}-%{version}.tar.bz2
License: BSD
Group: Applications/Engineering
Packager: Francois Rigaut <[email protected]>
Url: http://www.maumae.net/yorick/doc/plugins.php
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Requires: yorick >= 2.1 yorick-imutil >= 0.5 yorick-yutils >= 1.0 fftw
%description
Multi-usage adaptive optics Monte-Carlo simulation package.
Can simulate versatile configs (classical, LGS, GLAO, MCAO)
with Shack-Hartmann or curvature sensors. Fast.
From version 4.0, yao has now a gtk interface.
%prep
%setup -q
%build
yorick -batch make.i
make
if [ -f check.i ] ; then
mv check.i %{name}_check.i
fi;
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/lib/yorick/lib
mkdir -p $RPM_BUILD_ROOT/usr/lib/yorick/i0
mkdir -p $RPM_BUILD_ROOT/usr/lib/yorick/i
mkdir -p $RPM_BUILD_ROOT/usr/lib/yorick/g
mkdir -p $RPM_BUILD_ROOT/usr/lib/yorick/glade
mkdir -p $RPM_BUILD_ROOT/usr/lib/yorick/python
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/yorick-yao
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1
mkdir -p $RPM_BUILD_ROOT/usr/bin
mkdir -p $RPM_BUILD_ROOT/usr/lib/yorick/packages/installed
install -m 755 yao.so $RPM_BUILD_ROOT/usr/lib/yorick/lib
install -m 755 yao $RPM_BUILD_ROOT/usr/bin
install -m 644 yao_fast.i $RPM_BUILD_ROOT/usr/lib/yorick/i0
install -m 644 yao_utils.i $RPM_BUILD_ROOT/usr/lib/yorick/i0
install -m 644 *.i $RPM_BUILD_ROOT/usr/lib/yorick/i
install -m 644 *.gs $RPM_BUILD_ROOT/usr/lib/yorick/g
install -m 644 yao.glade $RPM_BUILD_ROOT/usr/lib/yorick/glade
install -m 755 yao.py $RPM_BUILD_ROOT/usr/lib/yorick/python
install -m 644 LICENSE $RPM_BUILD_ROOT/usr/share/doc/yorick-yao
install -m 644 README $RPM_BUILD_ROOT/usr/share/doc/yorick-yao
install -dm 755 examples $RPM_BUILD_ROOT/usr/share/doc/yorick-yao/examples
install -m 644 examples/*.par $RPM_BUILD_ROOT/usr/share/doc/yorick-yao/examples
install -m 644 examples/*.i $RPM_BUILD_ROOT/usr/share/doc/yorick-yao/examples
install -m 755 examples/testclean $RPM_BUILD_ROOT/usr/share/doc/yorick-yao/examples
install -m 644 doc/yao.1 $RPM_BUILD_ROOT/usr/share/man/man1
install -m 644 yao.info $RPM_BUILD_ROOT/usr/lib/yorick/packages/installed
rm $RPM_BUILD_ROOT/usr/lib/yorick/i/yao_fast.i
rm $RPM_BUILD_ROOT/usr/lib/yorick/i/yao_utils.i
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
/usr/lib/yorick/lib/yao.so
/usr/bin/yao
/usr/lib/yorick/i0/*.i
/usr/lib/yorick/i/*.i
/usr/lib/yorick/g/*.gs
/usr/lib/yorick/glade/yao.glade
/usr/lib/yorick/python/yao.py*
/usr/share/doc/yorick-yao
/usr/share/man/man1
/usr/lib/yorick/packages/installed/*
%changelog
* Tue Jan 09 2008 <[email protected]>
- included the info file for compat with pkg_mngr
* Mon Dec 31 2007 <[email protected]>
- new distro directory structure
- updated to cvs