meep/meep.spec

133 lines
3.6 KiB
RPMSpec
Raw Normal View History

Name: meep
Version: 1.25.0
Release: 1mamba
Summary: A free finite-difference time-domain (FDTD) simulation software package
Group: Applications/Scientific
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/NanoComp/meep
Source: https://github.com/NanoComp/meep.git/v%{version}/meep-%{version}.tar.bz2
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: gcc-fortran
BuildRequires: glibc-devel
BuildRequires: libctl-devel
BuildRequires: libfftw-devel
BuildRequires: libgc-devel
BuildRequires: libgcc
BuildRequires: libgmp-devel
BuildRequires: libgsl-devel
BuildRequires: libguile-devel
BuildRequires: libharminv-devel
BuildRequires: libhdf5-devel
BuildRequires: libopenblas-devel
BuildRequires: libpython310-devel
BuildRequires: libquadmath-devel
BuildRequires: libstdc++6-devel
BuildRequires: libunistring-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: libunistring-devel >= 0.9.6
BuildRequires: libharminv-devel >= 1.4.1
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
Meep (or MEEP) is a free finite-difference time-domain (FDTD) simulation software package developed at MIT to model electromagnetic systems, along with our MPB eigenmode package.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%package -n python-%{name}
Group: System/Libraries/Python
Summary: Python bindings to %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n python-%{name}
This package contains the Python bindings to %{name}.
%debug_package
%prep
%setup -q
./autogen.sh
%build
%configure \
--enable-maintainer-mode \
--enable-shared
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/meep
%dir %{_datadir}/meep
%{_datadir}/meep/*.scm
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libmeep.so.*
%doc AUTHORS COPYRIGHT LICENSE
%files -n lib%{name}-devel
%defattr(-,root,root)
%{_includedir}/meep.hpp
%dir %{_includedir}/meep
%{_includedir}/meep/*
%{_libdir}/libmeep.a
%{_libdir}/libmeep.so
%{_libdir}/pkgconfig/meep.pc
%doc TODO
%files -n python-%{name}
%defattr(-,root,root)
%dir %{python310_sitearch}/meep
%{python310_sitearch}/meep/*
%ifarch x86_64 aarch64
%dir %{python310_sitelib}/meep
%{python310_sitelib}/meep/*
%endif
%changelog
* Wed Dec 28 2022 Automatic Build System <autodist@mambasoft.it> 1.25.0-1mamba
- automatic version update by autodist
* Sat Jul 23 2022 Automatic Build System <autodist@mambasoft.it> 1.24.0-1mamba
- automatic version update by autodist
* Wed May 25 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.23.0-1mamba
- update to 1.23.0
* Sun May 15 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3-1mamba
- update to 1.3
* Thu Nov 06 2014 Automatic Build System <autodist@mambasoft.it> 1.2.1-1mamba
- automatic update by autodist
* Sun Nov 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2-1mamba
- package created by silvan using the webbuild interface