2012-11-30 04:12:30 +00:00
|
|
|
#
|
2018-08-01 23:48:04 +00:00
|
|
|
# spec file for package csvprintf
|
2012-11-30 04:12:30 +00:00
|
|
|
#
|
2023-01-25 19:19:39 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2012-11-30 04:12:30 +00:00
|
|
|
#
|
2018-08-01 23:48:04 +00: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.
|
|
|
|
|
|
2019-10-17 17:25:45 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-08-01 23:48:04 +00:00
|
|
|
#
|
|
|
|
|
|
2012-11-30 04:12:30 +00:00
|
|
|
|
|
|
|
|
Name: csvprintf
|
2023-01-25 19:19:39 +00:00
|
|
|
Version: 1.3.2
|
2018-08-01 23:48:04 +00:00
|
|
|
Release: 0
|
2012-11-30 04:12:30 +00:00
|
|
|
Summary: Simple CSV file parser for the UNIX command line
|
2018-08-01 23:48:04 +00:00
|
|
|
License: Apache-2.0
|
2021-02-25 16:17:04 +00:00
|
|
|
Group: Productivity/File utilities
|
|
|
|
|
URL: https://github.com/archiecobbs/csvprintf
|
2021-11-22 19:21:46 +00:00
|
|
|
Source: %{name}/%{name}-%{version}.tar.gz
|
|
|
|
|
BuildRequires: automake
|
2012-11-30 04:12:30 +00:00
|
|
|
BuildRequires: gcc
|
2018-08-01 23:48:04 +00:00
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: xsltproc
|
2013-01-05 15:54:38 +00:00
|
|
|
Requires: xsltproc
|
2012-11-30 04:12:30 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
%{name} is a simple UNIX command line utility for parsing CSV files.
|
|
|
|
|
|
2021-02-25 16:17:04 +00:00
|
|
|
%{name} works like the printf(1) command line utility: you supply a
|
|
|
|
|
printf(1) format string on the command line, and each row of the CSV file
|
|
|
|
|
is split into arguments and formatted accordingly. The format specifiers
|
|
|
|
|
in the format string contain numeric or symbolic column accessors to
|
|
|
|
|
specify which CSV column to format.
|
2012-11-30 04:12:30 +00:00
|
|
|
|
2021-12-09 19:55:43 +00:00
|
|
|
%{name} can also convert CSV files into XML and JSON documents
|
|
|
|
|
and Bash variable assignments suitable for eval(1).
|
2012-11-30 04:12:30 +00:00
|
|
|
|
|
|
|
|
%prep
|
2021-11-22 19:21:46 +00:00
|
|
|
%autosetup -p1
|
2012-11-30 04:12:30 +00:00
|
|
|
|
|
|
|
|
%build
|
2021-11-22 19:21:46 +00:00
|
|
|
./autogen.sh
|
2021-10-20 14:28:25 +00:00
|
|
|
%configure
|
|
|
|
|
%make_build
|
2012-11-30 04:12:30 +00:00
|
|
|
|
2021-11-22 19:21:46 +00:00
|
|
|
%check
|
2021-12-09 19:55:43 +00:00
|
|
|
%make_build tests
|
2021-11-22 19:21:46 +00:00
|
|
|
|
2012-11-30 04:12:30 +00:00
|
|
|
%install
|
2021-10-20 14:28:25 +00:00
|
|
|
%make_install
|
2012-11-30 04:12:30 +00:00
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%attr(0755,root,root) %{_bindir}/%{name}
|
2013-01-05 15:54:38 +00:00
|
|
|
%attr(0755,root,root) %{_bindir}/xml2csv
|
|
|
|
|
%attr(0644,root,root) %{_mandir}/man1/*
|
2012-11-30 04:12:30 +00:00
|
|
|
%defattr(0644,root,root,0755)
|
2021-10-20 14:28:25 +00:00
|
|
|
%doc %{_docdir}/%{name}
|
2013-01-05 15:54:38 +00:00
|
|
|
%{_datadir}/%{name}
|
2012-11-30 04:12:30 +00:00
|
|
|
|
|
|
|
|
%changelog
|