File ncclamp.spec of Package ncclamp
#
# spec file for package ncclamp
#
# Copyright (c) 2024 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/
#
#---netcdf is for TW no longer available on 32bit archs, disable them:
%if 0%{?suse_version} > 1600
ExcludeArch: %{ix86} %{arm}
%endif
Name: ncclamp
Version: 0.1
Release: 0
Summary: Tool for NetCDF files to replace values in-place
License: LGPL-2.1-or-later
Group: Productivity/Scientific/Other
URL: https://sourceforge.net/projects/ncclamp
Source: https://sourceforge.net/projects/ncclamp/files/%{name}-%{version}/%{name}-%{version}/%{name}-%{version}.tar.gz
BuildRequires: pkgconfig
BuildRequires: pkgconfig(netcdf)
%description
Command-line tool for NetCDF files that allows you to replace
values in-place by specifying the variable, the old value to be replaced,
the new value, and a comparison operator. The change is applied across all
of the variable's dimensions, including the record dimension if any.
%prep
%autosetup
%build
gcc %{optflags} -o %{name} ncclamp.c -lnetcdf
%install
install -d -m 755 %{buildroot}%{_bindir}
install -m 755 ncclamp %{buildroot}%{_bindir}/
%files
%license LICENSE
%doc README
%{_bindir}/%{name}
%changelog