diff --git a/.gitignore b/.gitignore index 733889d..4c5cc26 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,6 @@ xnec2c-1.2.tar.gz /xnec2c-3.3.tar.bz2 /xnec2c-3.5.1.tar.bz2 /xnec2c-3.9-beta.tar.bz2 +/xnec2c-4.1.1.tar.bz2 +/xnec2c-4.4.13.tar.gz +/xnec2c-4.4.16.tar.gz diff --git a/sources b/sources index 98fee34..9792186 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (xnec2c-3.9-beta.tar.bz2) = 25fb09fb556a6c40aa695408749fdafa88be5e735bac66d4d350cc83c57de7824e28b629a02775f55df6e74ea039c50cd2c183107cd9f47560515f49c95d887e +SHA512 (xnec2c-4.4.16.tar.gz) = a2b455140a5d297353e670b088cbaae338e558e27dc566a880589042de21e98cc7bfcf621bfab5b61f62f0e72dd2ee88abcb6bb1db4ceccfb5f4631c3587f14a diff --git a/xnec2c.spec b/xnec2c.spec index cb829f8..db51878 100644 --- a/xnec2c.spec +++ b/xnec2c.spec @@ -1,40 +1,54 @@ Name: xnec2c -Version: 3.9 -Release: 0.1%{?dist} +Version: 4.4.16 +Release: 8%{?dist} Summary: GTK based graphical wrapper for nec2c -License: GPLv2+ +# Automatically converted from old format: GPLv2+ - review is highly recommended. +License: GPL-2.0-or-later URL: http://www.5b4az.org/ -Source0: http://www.5b4az.org/pkg/nec2/xnec2c/%{name}-%{version}-beta.tar.bz2 +Source0: https://github.com/KJ7LNW/xnec2c/archive/refs/tags/v%{version}/%{name}-%{version}.tar.gz Source100: xnec2c.png +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: desktop-file-utils BuildRequires: gcc-c++ +BuildRequires: gettext-devel BuildRequires: gtk3-devel BuildRequires: glib2-devel BuildRequires: intltool -BuildRequires: desktop-file-utils +BuildRequires: libtool +BuildRequires: make Requires: nec2c%{?_isa} +# For BLAS acceleration. Really these are suggested, but strongly +# recommended for performance. xnec2c detects available BLAS +# libraries at runtime: +Recommends: atlas +Recommends: openblas-serial +Recommends: openblas-threads +Recommends: openblas-openmp + %description -xnec2c is a GUI interactive application that (in its current form) reads NEC2 -input files but presents output data in graphical form, e.g. as wire frame -drawings of the radiation pattern or near E/H field, graphs of maximum gain, -input impedance, vswr etc against frequency and simple rendering of the antenna -structure, including color code representation of currents or charge densities. - -These results are only calculated and drawn on user demand via menu items or -buttons, e.g. xnec2c is interactive and does not execute NEC2 "commands" in -batch style as the original does. +Xnec2c is a high-performance multi-threaded electromagnetic simulation +package to model antenna near- and far-field radiation patterns for +Linux and UNIX operating systems. The original FORTRAN version of NEC2 +was ported to C by Neoklis Kyriazis, 5B4AZ and released as nec2c. Later +he wrote xnec2c, a graphical interface for ease of use with many more +features: + Multi-threading operation on SMP machines + On-demand Calculation + Built-in NEC2 input file editor + Accelerated Linear Algebra Support + Interactive Operation + User Interface + Color Coding + and much more. %prep -%autosetup -n %{name}-%{version}-beta -%if 0%{?rhel} - # Force lower version of intltool to be acceptable for RHEL. - sed -i "s|0.50.0|0.40.0|g" configure -%endif - +%autosetup -p1 pushd examples iconv --from=ISO-8859-1 --to=UTF-8 conductivity.txt > conductivity.txt.new && \ @@ -43,6 +57,7 @@ mv conductivity.txt.new conductivity.txt %build +autoreconf -fi %configure %make_build CFLAGS="%{optflags}" @@ -53,6 +68,13 @@ mv conductivity.txt.new conductivity.txt mkdir -p %{buildroot}%{_datadir}/icons/hicolor/256x256/apps install -pm 644 %{SOURCE100} \ %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/ + +# Install scalable icon for Fedora +# Note /usr/share/pixmap/xnec2c.svg is needed for the icon to show in el7. +mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps +install -pm 644 resources/xnec2c.svg \ + %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/ + desktop-file-install --vendor="" \ --dir=%{buildroot}%{_datadir}/applications \ files/%{name}.desktop @@ -72,43 +94,36 @@ cat > %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml << EOF CC0-1.0 GPL-2.0+ xnec2c - GTK based graphical wrapper for nec2c + A multi-threaded EM tool based on NEC2 to model antenna radiation patterns.

-nec2c is a GUI interactive application that (in its current form) reads NEC2 -input files but presents output data in graphical form, e.g. as wire frame -drawings of the radiation pattern or near E/H field, graphs of maximum gain, -input impedance, vswr etc against frequency and simple rendering of the antenna -structure, including color code representation of currents or charge densities. +Xnec2c is a high-performance multi-threaded electromagnetic simulation +package to model antenna near- and far-field radiation patterns for +Linux and UNIX operating systems. The original FORTRAN version of NEC2 +was ported to C by Neoklis Kyriazis, 5B4AZ and released as nec2c. Later +he wrote xnec2c, a graphical interface for ease of use with many more +features.

+ + Electronics + Science + Math + NumericalAnalysis + - http://www.5b4az.org/pkg/nec2/xnec2c/doc/images/radiation.png + https://www.xnec2c.org/images/radiation.png %{url} + hobbes1069@gmail.com EOF %endif -%if 0%{?rhel} -%post -/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : - -%postun -if [ $1 -eq 0 ] ; then - /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null - /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : -fi - -%posttrans -/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : -%endif - - %files %doc AUTHORS ChangeLog README %doc doc/NearFieldCalcs.txt doc/NEC2-bug.txt doc/nec2c.txt doc/xnec2c.html @@ -118,6 +133,7 @@ fi %{_bindir}/* %{_datadir}/%{name}/ %{_datadir}/applications/%{name}.desktop +%{_datadir}/mime/packages/x-nec2.xml %{_datadir}/icons/hicolor/256x256/apps/%{name}.png %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %{?fedora:%{_datadir}/appdata/%{name}.appdata.xml} @@ -125,6 +141,75 @@ fi %changelog +* Fri Jul 17 2026 Fedora Release Engineering - 4.4.16-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild + +* Sat Jan 17 2026 Fedora Release Engineering - 4.4.16-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild + +* Fri Jul 25 2025 Fedora Release Engineering - 4.4.16-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Sun Jan 19 2025 Fedora Release Engineering - 4.4.16-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Fri Jul 26 2024 Miroslav Suchý - 4.4.16-4 +- convert license to SPDX + +* Sat Jul 20 2024 Fedora Release Engineering - 4.4.16-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Thu Jul 04 2024 Yaakov Selkowitz - 4.4.16-2 +- Soften atlas dependency + +* Sun Jun 02 2024 Richard Shaw - 4.4.16-1 +- Update to 4.4.16. + +* Sat Apr 06 2024 Richard Shaw - 4.4.13-1 +- Update to 4.4.13. + +* Sat Jan 27 2024 Fedora Release Engineering - 4.1.1-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Jul 22 2023 Fedora Release Engineering - 4.1.1-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sat Jan 21 2023 Fedora Release Engineering - 4.1.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Tue Jan 17 2023 Florian Weimer - 4.1.1-6 +- Port configure script to C99 (#2161646) + +* Sat Jul 23 2022 Fedora Release Engineering - 4.1.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Sat Jan 22 2022 Fedora Release Engineering - 4.1.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 4.1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Thu Jan 28 2021 Fedora Release Engineering - 4.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Sun Jan 10 2021 Richard Shaw - 4.1.1-1 +- Update to 4.1.1. + +* Wed Jul 29 2020 Fedora Release Engineering - 3.9-0.6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jan 31 2020 Fedora Release Engineering - 3.9-0.5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sat Jul 27 2019 Fedora Release Engineering - 3.9-0.4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sun Feb 03 2019 Fedora Release Engineering - 3.9-0.3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 3.9-0.2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + * Thu May 31 2018 Richard Shaw - 3.9-0.1 - Update to 3.9 Beta with GTK3 suppoert.