From cc2dc98c30da3b2a70a3a703bad53f5c1b9fbb6a Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 11 Apr 2023 23:18:42 +0000 Subject: automatic import of python-jsbsim --- .gitignore | 1 + python-jsbsim.spec | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 80 insertions(+) create mode 100644 python-jsbsim.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..d274d1d 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/JSBSim-1.1.13.tar.gz diff --git a/python-jsbsim.spec b/python-jsbsim.spec new file mode 100644 index 0000000..29410b2 --- /dev/null +++ b/python-jsbsim.spec @@ -0,0 +1,78 @@ +%global _empty_manifest_terminate_build 0 +Name: python-JSBSim +Version: 1.1.13 +Release: 1 +Summary: An open source flight dynamics & control software library +License: LGPL 2.1 +URL: https://github.com/JSBSim-Team/jsbsim +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f4/e4/2db3fccb40a0f02e9a9a8b66ae66e338074fb1f2415361796d9495013a00/JSBSim-1.1.13.tar.gz + +Requires: python3-numpy + +%description +JSBSim is a multi-platform, general purpose object-oriented Flight Dynamics Model (FDM) written in C++. The FDM is essentially the physics & math model that defines the movement of an aircraft, rocket, etc., under the forces and moments applied to it using the various control mechanisms and from the forces of nature. JSBSim can be run in a standalone batch mode flight simulator (no graphical displays) for testing and study, or integrated with [FlightGear](http://home.flightgear.org/) or other flight simulator. + + +%package -n python3-JSBSim +Summary: An open source flight dynamics & control software library +Provides: python-JSBSim +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-JSBSim +JSBSim is a multi-platform, general purpose object-oriented Flight Dynamics Model (FDM) written in C++. The FDM is essentially the physics & math model that defines the movement of an aircraft, rocket, etc., under the forces and moments applied to it using the various control mechanisms and from the forces of nature. JSBSim can be run in a standalone batch mode flight simulator (no graphical displays) for testing and study, or integrated with [FlightGear](http://home.flightgear.org/) or other flight simulator. + + +%package help +Summary: Development documents and examples for JSBSim +Provides: python3-JSBSim-doc +%description help +JSBSim is a multi-platform, general purpose object-oriented Flight Dynamics Model (FDM) written in C++. The FDM is essentially the physics & math model that defines the movement of an aircraft, rocket, etc., under the forces and moments applied to it using the various control mechanisms and from the forces of nature. JSBSim can be run in a standalone batch mode flight simulator (no graphical displays) for testing and study, or integrated with [FlightGear](http://home.flightgear.org/) or other flight simulator. + + +%prep +%autosetup -n JSBSim-1.1.13 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-JSBSim -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot - 1.1.13-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..83804a2 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +f1177cc2fe2dded665cbfded6c53ea8f JSBSim-1.1.13.tar.gz -- cgit v1.2.3