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

Revision 7769, 1.8 KB checked in by alexander, 12 months ago (diff)

Updating RPM spec file, cleaned up extraneous lines

Line 
1%define name    earthworm
2%define version 7.10
3%define release 1
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
19%description
20Earthworm provides users with an advanced open source seismic data acquisition and processing software
21package capable of calculating earthquake locations and magnitudes.
22
23The Earthworm system is a robust a mature software tool, incorporating over 25 years of design and
24development.
25
26%prep
27# set name of build directory to /opt/earthworm, then create and cd to that directory
28# %setup -c -n %{ew_home}
29%setup -n %{name}_%{version}
30
31%build
32source environment/rpm_env.bash
33cd src
34make clean_unix
35make unix
36
37%install
38#broken binaries included with Mole:
39rm -rf $RPM_BUILD_DIR/%{name}_%{version}/src/archiving/mole/
40rm -rf $RPM_BUILD_DIR/%{name}_%{version}/src/data_sources/gcf2ew/
41rm -rf $RPM_BUILD_DIR/%{name}_%{version}/src/data_exchange/sendfile_srv
42install -d $RPM_BUILD_ROOT/opt/earthworm/%{name}_%{version}
43cp -r $RPM_BUILD_DIR/%{name}_%{version}/ $RPM_BUILD_ROOT/opt/earthworm/
44
45%clean
46#rm -rf $RPM_BUILD_ROOT
47
48%files
49%defattr(-,root,root,-)
50%config /opt/earthworm/%{name}_%{version}/params
51%config /opt/earthworm/%{name}_%{version}/environment
52%doc /opt/earthworm/%{name}_%{version}/release_notes*
53%doc /opt/earthworm/%{name}_%{version}/README*
54%docdir /opt/earthworm/%{name}_%{version}/ewdoc
55/opt/earthworm/%{name}_%{version}/*
56
Note: See TracBrowser for help on using the repository browser.