File csvprintf.spec of Package csvprintf

# csvprintf - Simple CSV file parser for the UNIX command line
# Copyright 2010 Archie L. Cobbs <>
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
# $Id: csvprintf.spec 19 2012-03-09 21:46:45Z archie.cobbs $

Name:           csvprintf
Version:        1.0.3
Release:        1
License:        Apache-2.0
Summary:        Simple CSV file parser for the UNIX command line
Group:          Productivity/Text/Utilities
Source:         %{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-root
BuildRequires:  make
BuildRequires:  gcc
Requires:       xsltproc

%{name} is a simple UNIX command line utility for parsing CSV files.

%{name} works just like the printf(1) command line utility. You
supply a printf(1) format string on the command line and each record
in the CSV file is formatted accordingly. Each format specifier in
the format string contains a column accessor to specify which CSV
column to use, so for example '%%3$d' would format the third column
as a decimal value.

%{name} can also convert CSV files into XML documents and back.

%setup -q



rm -rf %{buildroot}

%attr(0755,root,root) %{_bindir}/%{name}
%attr(0755,root,root) %{_bindir}/xml2csv
%attr(0644,root,root) %{_mandir}/man1/*
%doc %{_datadir}/doc/packages/%{name}