2011-10-21 18:24:23 +02:00
|
|
|
#
|
2011-12-17 13:05:59 +01:00
|
|
|
# spec file for package dateutils
|
2011-10-21 18:24:23 +02:00
|
|
|
#
|
2024-01-27 07:35:51 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2011-10-21 18:24:23 +02:00
|
|
|
#
|
|
|
|
# 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.
|
2011-10-16 19:15:15 +02:00
|
|
|
|
2020-02-05 20:17:46 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-10-21 18:24:23 +02:00
|
|
|
#
|
|
|
|
|
2013-02-07 21:42:50 +01:00
|
|
|
|
2011-10-21 18:24:23 +02:00
|
|
|
Name: dateutils
|
2024-01-27 07:35:51 +01:00
|
|
|
Version: 0.4.11
|
2011-10-21 18:24:23 +02:00
|
|
|
Release: 0
|
2018-08-26 19:48:23 +02:00
|
|
|
Summary: Command line date and time utilities
|
2011-12-17 13:05:59 +01:00
|
|
|
License: BSD-3-Clause
|
2011-10-21 18:24:23 +02:00
|
|
|
Group: Productivity/Text/Utilities
|
2018-09-24 12:31:05 +02:00
|
|
|
URL: https://github.com/hroptatyr/dateutils/
|
|
|
|
Source0: https://github.com/hroptatyr/dateutils/releases/download/v%{version}/%{name}-%{version}.tar.xz
|
2017-10-28 20:24:20 +02:00
|
|
|
Source1: https://github.com/hroptatyr/dateutils/releases/download/v%{version}/%{name}-%{version}.tar.asc
|
2021-02-22 09:38:26 +01:00
|
|
|
Source2: %{name}.keyring
|
2018-09-24 12:31:05 +02:00
|
|
|
BuildRequires: octave-devel
|
2011-10-21 18:24:23 +02:00
|
|
|
BuildRequires: pkgconfig
|
2012-12-11 14:24:08 +01:00
|
|
|
BuildRequires: timezone
|
2011-12-17 13:05:59 +01:00
|
|
|
|
2011-10-16 19:15:15 +02:00
|
|
|
%description
|
2011-10-21 18:24:23 +02:00
|
|
|
Dateutils are a bunch of tools that revolve around fiddling with dates
|
|
|
|
and times in the command line with a strong focus on use cases that
|
|
|
|
arise when dealing with large amounts of financial data. Their target
|
|
|
|
market is shell scripts that need date calculations or calendar
|
|
|
|
conversions, and as such they are highly pipe-able and modeled after
|
|
|
|
their well-known cousins (e.g. dtest vs. test, or dgrep vs. grep).
|
|
|
|
|
2014-10-06 15:18:48 +02:00
|
|
|
%package octave
|
2014-10-09 12:43:43 +02:00
|
|
|
Summary: Dateutils functions for matlab and octave
|
2011-10-21 18:24:23 +02:00
|
|
|
Group: Development/Libraries/Other
|
|
|
|
Requires: %{name} = %{version}
|
2014-10-06 15:18:48 +02:00
|
|
|
Requires: octave
|
2011-10-21 18:24:23 +02:00
|
|
|
|
2014-10-06 15:18:48 +02:00
|
|
|
%description octave
|
|
|
|
Dateutils can be used from within matlab or ocatave.
|
2011-10-16 19:15:15 +02:00
|
|
|
|
|
|
|
%prep
|
2024-01-27 07:35:51 +01:00
|
|
|
%setup -q
|
2011-10-16 19:15:15 +02:00
|
|
|
|
|
|
|
%build
|
2014-10-06 15:18:48 +02:00
|
|
|
%configure \
|
2018-09-24 12:31:05 +02:00
|
|
|
--enable-contrib
|
2021-02-22 09:38:26 +01:00
|
|
|
%make_build
|
2011-10-16 19:15:15 +02:00
|
|
|
|
|
|
|
%install
|
2018-09-24 12:31:05 +02:00
|
|
|
%make_install
|
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/dateutils
|
|
|
|
rm -rf %{buildroot}%{_libdir}/octave/site/oct/*/dateutils/tzconv.la
|
2011-10-16 19:15:15 +02:00
|
|
|
|
2011-10-21 18:24:23 +02:00
|
|
|
%check
|
2021-02-22 09:38:26 +01:00
|
|
|
%make_build check
|
2011-10-16 19:15:15 +02:00
|
|
|
|
|
|
|
%files
|
2018-09-24 12:31:05 +02:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
2021-02-22 09:38:26 +01:00
|
|
|
%{_bindir}/*
|
|
|
|
%{_datadir}/dateutils/
|
|
|
|
%{_mandir}/man1/*
|
2018-09-24 12:31:05 +02:00
|
|
|
%{_infodir}/%{name}.info%{?ext_info}
|
2017-10-28 20:24:20 +02:00
|
|
|
|
2014-10-06 15:18:48 +02:00
|
|
|
%files octave
|
|
|
|
%dir %{_libdir}/octave/site/oct/*/dateutils/
|
2016-06-15 12:12:15 +02:00
|
|
|
%{_libdir}/octave/site/oct/*/dateutils/tzconv.m
|
|
|
|
%{_libdir}/octave/site/oct/*/dateutils/tzconv.mex
|
2011-10-16 19:15:15 +02:00
|
|
|
|
2011-10-21 18:24:23 +02:00
|
|
|
%changelog
|