Compare commits
25 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
938bd5b6a9 | ||
|
|
8d8efb7957 | ||
|
|
638450b694 | ||
|
|
308a2ebf37 | ||
|
|
1b019dbbb4 | ||
|
|
b2c3fcf1b9 | ||
|
|
96a9528bc3 | ||
|
|
eef37b282b | ||
|
|
d72774c3b8 | ||
|
|
2e0e96ee8f | ||
|
|
66bd8bcad6 | ||
|
|
cdb42326f7 | ||
|
|
9b270a6761 | ||
|
|
d4667673d7 | ||
|
|
bc06f8f305 | ||
|
|
920f6b4a1f | ||
|
|
09a8339cd1 | ||
|
|
b961b43798 | ||
|
|
af1d03aed6 | ||
|
|
abcda2e7bd | ||
|
|
4254f34beb | ||
|
|
ef0a82f92d | ||
|
|
f549259839 | ||
|
827d043940 |
|||
|
|
2265381d68 |
3 changed files with 131 additions and 43 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -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
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (xnec2c-3.9-beta.tar.bz2) = 25fb09fb556a6c40aa695408749fdafa88be5e735bac66d4d350cc83c57de7824e28b629a02775f55df6e74ea039c50cd2c183107cd9f47560515f49c95d887e
|
||||
SHA512 (xnec2c-4.4.16.tar.gz) = a2b455140a5d297353e670b088cbaae338e558e27dc566a880589042de21e98cc7bfcf621bfab5b61f62f0e72dd2ee88abcb6bb1db4ceccfb5f4631c3587f14a
|
||||
|
|
|
|||
169
xnec2c.spec
169
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
|
|||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<project_license>GPL-2.0+</project_license>
|
||||
<name>xnec2c</name>
|
||||
<summary>GTK based graphical wrapper for nec2c</summary>
|
||||
<summary>A multi-threaded EM tool based on NEC2 to model antenna radiation patterns.</summary>
|
||||
<description>
|
||||
<p>
|
||||
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.
|
||||
</p>
|
||||
</description>
|
||||
<categories>
|
||||
<category>Electronics</category>
|
||||
<category>Science</category>
|
||||
<category>Math</category>
|
||||
<category>NumericalAnalysis</category>
|
||||
</categories>
|
||||
<screenshots>
|
||||
<screenshot type="default">
|
||||
<image>http://www.5b4az.org/pkg/nec2/xnec2c/doc/images/radiation.png</image>
|
||||
<image>https://www.xnec2c.org/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}
|
||||
%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 <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
|
||||
|
||||
* Thu Jan 28 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Sun Jan 10 2021 Richard Shaw <hobbes1069@gmail.com> - 4.1.1-1
|
||||
- Update to 4.1.1.
|
||||
|
||||
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.9-0.6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.9-0.5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.9-0.4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.9-0.3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.9-0.2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Thu May 31 2018 Richard Shaw <hobbes1069@gmail.com> - 3.9-0.1
|
||||
- Update to 3.9 Beta with GTK3 suppoert.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue