forked from pegasus-isi/pegasus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pegasus.spec.in
84 lines (64 loc) · 2.59 KB
/
pegasus.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
75
76
77
78
79
80
81
82
83
Name: pegasus
Version: @PEGASUS_VERSION@
Release: 1%{?dist}
Summary: Workflow management system for HTCondor, grids, and clouds
Group: Applications/System
License: ASL 2.0
URL: http://pegasus.isi.edu/
Packager: Pegasus Development Team <[email protected]>
Source: pegasus-source-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-root
BuildRequires: python-setuptools, openssl-devel, ant, ant-nodeps, ant-apache-regexp, java7-devel, gcc, groff, python-devel, gcc-c++, make, jpackage-utils, /usr/share/java-1.7.0, asciidoc, libxslt, fop
Requires: java, python >= 2.4, condor >= 7.6, graphviz, jpackage-utils
%define sourcedir %{name}-source-%{version}
%description
The Pegasus project encompasses a set of technologies that
help workflow-based applications execute in a number of
different environments including desktops, campus clusters,
grids, and now clouds. Scientific workflows allow users to
easily express multi-step computations. Once an application
is formalized as a workflow the Pegasus Workflow Management
Service can map it onto available compute resources and
execute the steps in appropriate order.
%prep
%setup -q -n %{sourcedir}
%build
ant dist-release
# strip executables
strip dist/pegasus-%{version}/bin/pegasus-cluster
strip dist/pegasus-%{version}/bin/pegasus-kickstart
strip dist/pegasus-%{version}/bin/pegasus-keg
%install
rm -Rf %{buildroot}
mkdir -p %{buildroot}/%{_sysconfdir}/%{name}
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_datadir}
cp -aR dist/pegasus-%{version}/etc/* %{buildroot}/%{_sysconfdir}/%{name}/
cp -aR dist/pegasus-%{version}/bin/* %{buildroot}/%{_bindir}/
cp -aR dist/pegasus-%{version}/lib* %{buildroot}/usr/
cp -aR dist/pegasus-%{version}/share/* %{buildroot}/%{_datadir}/
# rm unwanted files
rm -f %{buildroot}/%{_bindir}/keg.condor
rm -f %{buildroot}/%{_datadir}/%{name}/java/COPYING.*
rm -f %{buildroot}/%{_datadir}/%{name}/java/EXCEPTIONS.*
rm -f %{buildroot}/%{_datadir}/%{name}/java/LICENSE.*
rm -f %{buildroot}/%{_datadir}/%{name}/java/NOTICE.*
%clean
ant clean
rm -Rf %{buildroot}
%files
%defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/%{name}/
%{_bindir}/*
%{_libdir}/pegasus
%{_libdir}/python*
%{_datadir}/doc/%{name}
%{_datadir}/man/man1/*
%{_datadir}/%{name}
%changelog
* @DATE@ Pegasus Development Team <[email protected]> @PEGASUS_VERSION@
- @PEGASUS_VERSION@ automatic build
%changelog
* Mon Dec 02 2013 Pegasus Development Team <[email protected]> 4.3.2cvs
- Relaxed the "java" requirements in order for the package to work on plan
CentOS machines