diff --git a/.gitignore b/.gitignore index cbe92fe..4c5cc26 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,5 @@ xnec2c-1.2.tar.gz /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 5a28b16..9792186 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (xnec2c-4.1.1.tar.bz2) = 3a97521f568d79158d5d224958e4cb3708de8214476ba228f9ce0ac122899eb9b06f596d5b0c43a85a18dbd6d86e0751f1a70128c14dd8972f10deeb5a1db980 +SHA512 (xnec2c-4.4.16.tar.gz) = a2b455140a5d297353e670b088cbaae338e558e27dc566a880589042de21e98cc7bfcf621bfab5b61f62f0e72dd2ee88abcb6bb1db4ceccfb5f4631c3587f14a diff --git a/xnec2c.spec b/xnec2c.spec index 0ece3f1..db51878 100644 --- a/xnec2c.spec +++ b/xnec2c.spec @@ -1,41 +1,54 @@ Name: xnec2c -Version: 4.1.1 -Release: 3%{?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}.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: 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 -%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 && \ @@ -44,6 +57,7 @@ mv conductivity.txt.new conductivity.txt %build +autoreconf -fi %configure %make_build CFLAGS="%{optflags}" @@ -54,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 @@ -73,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} && 0%{?rhel} <= 7 -%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 @@ -119,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} @@ -126,6 +141,51 @@ 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