- Fix build on Tumbleweed, add wcalc_gtk_fix_globals.patch - Use netpbm instead of ImageMagick for icon conversion (significantly less dependencies) - Cleanup spec file OBS-URL: https://build.opensuse.org/request/show/1036306 OBS-URL: https://build.opensuse.org/package/show/science/wcalc?expand=0&rev=9
113 lines
3.6 KiB
RPMSpec
113 lines
3.6 KiB
RPMSpec
#
|
|
# spec file for package wcalc
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
Name: wcalc
|
|
%define libname lib%{name}
|
|
Version: 1.1
|
|
%define somajor 1
|
|
Release: 0
|
|
License: GPL-2.0-only
|
|
Summary: Analyses and synthesis of transmission lines
|
|
Group: Productivity/Scientific/Electronics
|
|
Url: https://wcalc.sourceforge.net/
|
|
Source0: https://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
|
Source1: %{name}.desktop
|
|
# PATCH-FIX-OPENSUSE -- Fix redefinition of global variables
|
|
Patch0: wcalc_gtk_fix_globals.patch
|
|
BuildRequires: fdupes
|
|
BuildRequires: gtk2-devel
|
|
BuildRequires: hicolor-icon-theme
|
|
BuildRequires: netpbm
|
|
BuildRequires: update-desktop-files
|
|
Requires: hicolor-icon-theme
|
|
|
|
%description
|
|
Wcalc is a tool for the analysis and synthesis of transmission line
|
|
structures and related components. Wcalc provides the ability to
|
|
analyze the electrical parameters of a particular structure based on
|
|
the physical dimensions and material parameters. The synthesis portion
|
|
calculates the required physical parameters to meet desired electrical
|
|
specifications. Wcalc includes several models and places an emphasis
|
|
on accuracy. Several frontends provide the user with several options
|
|
for its use.
|
|
|
|
%package -n %{libname}%{somajor}
|
|
Summary: Analyses and synthesis of transmission lines
|
|
Group: System/Libraries
|
|
|
|
%description -n %{libname}%{somajor}
|
|
Wcalc library , allows developers ability to analyze the electrical parameters
|
|
of a particular structure based on the physical dimensions and material
|
|
parameters into other programs.
|
|
|
|
%package devel
|
|
Summary: Analyses and synthesis of transmission lines
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{libname}%{somajor} = %{version}
|
|
|
|
%description devel
|
|
This package contains development files for developing applications
|
|
that use wcalc library.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
%configure \
|
|
--disable-static \
|
|
--disable-rpath \
|
|
--disable-gtk1 \
|
|
--enable-gtk2
|
|
%make_build
|
|
|
|
%install
|
|
%make_install
|
|
|
|
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
|
|
%fdupes -s %{buildroot}%{_datadir}/wcalc-%{version}/
|
|
|
|
# create and install icon for desktop file
|
|
pamtopng win32/wcalc_icon_big_256.ppm > %{name}.png
|
|
install -Dm 644 %{name}.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
|
|
install -Dm 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
|
|
# remove mann for octave module
|
|
rm -rf %{buildroot}%{_mandir}/mann/
|
|
|
|
%suse_update_desktop_file %{name}
|
|
|
|
%post -n %{libname}%{somajor} -p /sbin/ldconfig
|
|
%postun -n %{libname}%{somajor} -p /sbin/ldconfig
|
|
|
|
%files
|
|
%doc README ChangeLog AUTHORS TODO
|
|
%{_bindir}/*
|
|
%{_mandir}/man1/*
|
|
%{_datadir}/wcalc-%{version}/
|
|
%{_libexecdir}/cgi-bin/
|
|
%{_datadir}/applications/%{name}.desktop
|
|
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
|
|
|
|
%files -n %{libname}%{somajor}
|
|
%{_libdir}/%{libname}.so.%{somajor}*
|
|
|
|
%files devel
|
|
%{_includedir}/*
|
|
%{_libdir}/%{libname}.so
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
%changelog
|