-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathortep.spec
43 lines (32 loc) · 981 Bytes
/
ortep.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
Name: ortep
Version: 1.0.3
Release: 1%{?dist}
Summary: Oak Ridge Thermal Ellipsoid Plot Program for Crystal Structure Illustrations
Group: Development/Tools
Vendor: Carroll K. Johnson <ckj@ornl.gov>
Packager: Peter F. Peterson <petersonpf@ornl.gov>
License: unknown
URL: https://github.com/ornl-ndav/ortep/
Source0: %{name}-%{version}.tar.gz
#Source0: http://www.github.com/ornl-dav/ortep/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: gcc-gfortran pgplot-devel
#Prefix: /usr/local
%description
%prep
%setup -q
%build
%{!?make_build: %define make_build %{__make} %{?_smp_mflags}}
%make_build
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/bin
%make_install
%clean
if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi
rm -rf $RPM_BUILD_DIR/%{name}-%{version}
#%check
#ctest
%files
%defattr(-,root,root,-)
%{_prefix}/bin/ortep3
%doc