source: trunk/rpm/ew.centos.spec @ 8031

Revision 8031, 1.8 KB checked in by alexander, 7 months ago (diff)

Fixing RPM spec file to include libgfortran

Line 
1%define name    earthworm
2%define version 7.10
3%define release 2
4%define ewhome "/opt/earthworm"
5%define version_dir %{ew_home}/%{name}_%{version}
6Summary: Open source seismic data acquisition and automatic earthquake processing software suite
7License: Free
8Name: earthworm
9Vendor: ISTI
10Packager: Alexander Schnackenberg (a.schnackenberg@isti.com)
11#Provides: earthworm = %{version}-%{release}
12Version: %{version}
13Release: %{release}
14Source: %{name}_%{version}.tar.gz
15URL: http://earthworm.isti.com
16BuildRoot: /tmp/earthworm/
17BuildRequires: gcc-c++
18BuildRequires: gcc-gfortran
19Requires: libgfortran
20
21%description
22Earthworm provides users with an advanced open source seismic data acquisition and processing software
23package capable of calculating earthquake locations and magnitudes.
24
25The Earthworm system is a robust a mature software tool, incorporating over 25 years of design and
26development.
27
28%prep
29# set name of build directory to /opt/earthworm, then create and cd to that directory
30# %setup -c -n %{ew_home}
31%setup -n %{name}_%{version}
32
33%build
34source environment/rpm_env.bash
35cd src
36make clean_unix
37make unix
38
39%install
40#broken binaries included with Mole:
41rm -rf $RPM_BUILD_DIR/%{name}_%{version}/src/archiving/mole/
42rm -rf $RPM_BUILD_DIR/%{name}_%{version}/src/data_sources/gcf2ew/
43rm -rf $RPM_BUILD_DIR/%{name}_%{version}/src/data_exchange/sendfile_srv
44install -d $RPM_BUILD_ROOT/opt/earthworm/%{name}_%{version}
45cp -r $RPM_BUILD_DIR/%{name}_%{version}/ $RPM_BUILD_ROOT/opt/earthworm/
46
47%clean
48#rm -rf $RPM_BUILD_ROOT
49
50%files
51%defattr(-,root,root,-)
52%config /opt/earthworm/%{name}_%{version}/params
53%config /opt/earthworm/%{name}_%{version}/environment
54%doc /opt/earthworm/%{name}_%{version}/release_notes*
55%doc /opt/earthworm/%{name}_%{version}/README*
56%docdir /opt/earthworm/%{name}_%{version}/ewdoc
57/opt/earthworm/%{name}_%{version}/*
58
Note: See TracBrowser for help on using the repository browser.