Compare commits
No commits in common. "rawhide" and "f35" have entirely different histories.
3 changed files with 42 additions and 104 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -8,5 +8,3 @@ 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
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (xnec2c-4.4.16.tar.gz) = a2b455140a5d297353e670b088cbaae338e558e27dc566a880589042de21e98cc7bfcf621bfab5b61f62f0e72dd2ee88abcb6bb1db4ceccfb5f4631c3587f14a
|
||||
SHA512 (xnec2c-4.1.1.tar.bz2) = 3a97521f568d79158d5d224958e4cb3708de8214476ba228f9ce0ac122899eb9b06f596d5b0c43a85a18dbd6d86e0751f1a70128c14dd8972f10deeb5a1db980
|
||||
|
|
|
|||
142
xnec2c.spec
142
xnec2c.spec
|
|
@ -1,54 +1,41 @@
|
|||
Name: xnec2c
|
||||
Version: 4.4.16
|
||||
Release: 8%{?dist}
|
||||
Version: 4.1.1
|
||||
Release: 3%{?dist}
|
||||
Summary: GTK based graphical wrapper for nec2c
|
||||
|
||||
# Automatically converted from old format: GPLv2+ - review is highly recommended.
|
||||
License: GPL-2.0-or-later
|
||||
License: GPLv2+
|
||||
URL: http://www.5b4az.org/
|
||||
Source0: https://github.com/KJ7LNW/xnec2c/archive/refs/tags/v%{version}/%{name}-%{version}.tar.gz
|
||||
Source0: http://www.5b4az.org/pkg/nec2/xnec2c/%{name}-%{version}.tar.bz2
|
||||
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 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.
|
||||
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.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
%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
|
||||
|
||||
|
||||
pushd examples
|
||||
iconv --from=ISO-8859-1 --to=UTF-8 conductivity.txt > conductivity.txt.new && \
|
||||
|
|
@ -57,7 +44,6 @@ mv conductivity.txt.new conductivity.txt
|
|||
|
||||
|
||||
%build
|
||||
autoreconf -fi
|
||||
%configure
|
||||
%make_build CFLAGS="%{optflags}"
|
||||
|
||||
|
|
@ -68,13 +54,6 @@ autoreconf -fi
|
|||
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
|
||||
|
|
@ -94,36 +73,43 @@ cat > %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml << EOF
|
|||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<project_license>GPL-2.0+</project_license>
|
||||
<name>xnec2c</name>
|
||||
<summary>A multi-threaded EM tool based on NEC2 to model antenna radiation patterns.</summary>
|
||||
<summary>GTK based graphical wrapper for nec2c</summary>
|
||||
<description>
|
||||
<p>
|
||||
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.
|
||||
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.
|
||||
</p>
|
||||
</description>
|
||||
<categories>
|
||||
<category>Electronics</category>
|
||||
<category>Science</category>
|
||||
<category>Math</category>
|
||||
<category>NumericalAnalysis</category>
|
||||
</categories>
|
||||
<screenshots>
|
||||
<screenshot type="default">
|
||||
<image>https://www.xnec2c.org/images/radiation.png</image>
|
||||
<image>http://www.5b4az.org/pkg/nec2/xnec2c/doc/images/radiation.png</image>
|
||||
</screenshot>
|
||||
</screenshots>
|
||||
<url type="homepage">%{url}</url>
|
||||
<content_rating type="oars-1.1"/>
|
||||
<update_contact>hobbes1069@gmail.com</update_contact>
|
||||
</component>
|
||||
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
|
||||
|
|
@ -133,7 +119,6 @@ EOF
|
|||
%{_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}
|
||||
|
|
@ -141,51 +126,6 @@ EOF
|
|||
|
||||
|
||||
%changelog
|
||||
* Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.16-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
|
||||
|
||||
* Sat Jan 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.16-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild
|
||||
|
||||
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.16-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
||||
|
||||
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.16-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
||||
|
||||
* Fri Jul 26 2024 Miroslav Suchý <msuchy@redhat.com> - 4.4.16-4
|
||||
- convert license to SPDX
|
||||
|
||||
* Sat Jul 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.16-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
||||
|
||||
* Thu Jul 04 2024 Yaakov Selkowitz <yselkowi@redhat.com> - 4.4.16-2
|
||||
- Soften atlas dependency
|
||||
|
||||
* Sun Jun 02 2024 Richard Shaw <hobbes1069@gmail.com> - 4.4.16-1
|
||||
- Update to 4.4.16.
|
||||
|
||||
* Sat Apr 06 2024 Richard Shaw <hobbes1069@gmail.com> - 4.4.13-1
|
||||
- Update to 4.4.13.
|
||||
|
||||
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.1-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.1-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||
|
||||
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.1-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Tue Jan 17 2023 Florian Weimer <fweimer@redhat.com> - 4.1.1-6
|
||||
- Port configure script to C99 (#2161646)
|
||||
|
||||
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.1-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.1-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue