From b9ff23757de3ce2a229e07a5c5c34cd3e1968598 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Apr 30 2019 13:41:22 +0000 Subject: Import package after review --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cbf64d1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +/python-fisx-*.tar.gz +/fisx-*/ +/.build*.log +/x86_64/ +*~ diff --git a/python-fisx.spec b/python-fisx.spec new file mode 100644 index 0000000..a79f971 --- /dev/null +++ b/python-fisx.spec @@ -0,0 +1,48 @@ +Name: python-fisx +Version: 1.1.6 +Release: 1%{?dist} +Summary: Calculate x-ray fluorescence intensities + +License: MIT +URL: https://github.com/vasole/fisx +Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz + +BuildRequires: python3-devel +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: %py3_dist cython +BuildRequires: %py3_dist numpy + +%global _description \ +Calculate expected x-ray fluorescence intensities. The library accounts\ +for secondary and tertiary excitation, K, L and M shell emission lines\ +and de-excitation cascade effects. + +%description %_description + +%package -n python3-fisx +Summary: %summary + +%description -n python3-fisx %_description + +%prep +%autosetup -n fisx-%{version} + +%build +%py3_build + +%install +%py3_install + +%check +PYTHONPATH=%{buildroot}%{python3_sitearch} %__python3 -m fisx.tests.testAll + +%files -n python3-fisx +%license LICENSE +%doc README.rst +%{python3_sitearch}/fisx/ +%{python3_sitearch}/fisx-%{version}-py%{python3_version}.egg-info/ + +%changelog +* Tue Apr 30 2019 Zbigniew Jędrzejewski-Szmek - 1.1.6-1 +- Initial packaging diff --git a/sources b/sources new file mode 100644 index 0000000..6cc3002 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (python-fisx-1.1.6.tar.gz) = 25098a2ac5e6d17ec37778943f33497662a1b5f37f3e2ac636ab9490b3e421046a9f4a07461cbfccf8ce19d6964bbd08505aa6ec2e24dd3e8dd739f80c704520