s4/s4.spec

61 lines
1.8 KiB
RPMSpec

Name: s4
Version: 20211211git
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: https://web.stanford.edu/group/fan/S4/
Source: https://github.com/victorliu/S4.git/master/S4-%{version}.tar.bz2
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libatlas-devel
BuildRequires: libgcc
BuildRequires: liblapack-devel
BuildRequires: liblua-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
%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}
%build
%make -j1
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
#% makeinstall
install -D -m0755 build/S4 %{buildroot}%{_bindir}/S4
install -D -m0755 docold/S4.1 %{buildroot}%{_mandir}/man1/S4.1
%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*
%doc AUTHORS COPYING
#%doc ChangeLog README TODO
%changelog
* Sat Dec 11 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 20211211git-1mamba
- update to 20211211git
* Sat Nov 16 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 20131116git-1mamba
- package created by silvan using the webbuild interface