s4/s4.spec

65 lines
1.8 KiB
RPMSpec

Name: s4
Version: 20131116git
Release: 1mamba
Summary: Stanford Stratified Structure Solver - Electromagnetic simulator for layered periodic structures
Group: Applications/Scientific
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.stanford.edu/group/fan/S4/
## GITSOURCE https://github.com/victorliu/S4.git master
Source: https://github.com/victorliu/S4.git/master/S4-%{version}.tar.bz2
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: gcc-fortran
BuildRequires: glibc-devel
BuildRequires: libatlas-3dnow-devel
BuildRequires: libblas-devel
BuildRequires: libfftw-devel
BuildRequires: libgcc
BuildRequires: liblua-devel
BuildRequires: libquadmath-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
S4 is a frequency domain code to solve layered periodic structures. Internally, it uses Rigorous Coupled Wave Analysis (RCWA; also called the Fourier Modal Method (FMM)) and the S-matrix algorithm. S4 was developed by Victor Liu of the Fan Group in the Stanford Electrical Engineering Department.
%debug_package
%prep
%setup -q -n S4-%{version}
chmod +x configure
%build
aclocal
autoconf
automake
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/S4
%dir %{_docdir}/S4
%{_docdir}/S4/*.html
%{_docdir}/S4/s4.css
%{_docdir}/S4/s4.png
%dir %{_docdir}/S4/examples
%{_docdir}/S4/examples/*
%{_mandir}/man1/S4.1.gz
%doc AUTHORS COPYING
#%doc ChangeLog README TODO
%changelog
* Sat Nov 16 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 20131116git-1mamba
- package created by silvan using the webbuild interface