Name: libcsv
Version: 3.0.3
Release: 4%{?dist}
Summary: Small, simple and fast CSV library
Group: Development/Libraries
License: LGPLv2+
URL: http://sourceforge.net/projects/libcsv/
Source0: http://downloads.sourceforge.net/project/libcsv/libcsv/libcsv-%{version}/libcsv-%{version}.tar.gz
Patch0: fix-soname-version.patch
%description
libcsv is a small, simple and fast CSV library written in pure ANSI C89
that can read and write CSV data. It provides a straight-forward interface
using callback functions to handle parsed fields and rows and can parse
improperly formatted CSV files.
%package devel
Summary: Small, simple and fast CSV library - development package
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
libcsv is a small, simple and fast CSV library written in pure ANSI C89
that can read and write CSV data. It provides a straight-forward interface
using callback functions to handle parsed fields and rows and can parse
improperly formatted CSV files.
This package contains header file and development libraries.
%prep
%setup -q
%patch0 -p1
%build
%configure --disable-static
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%{_libdir}/libcsv.so.3
%{_libdir}/libcsv.so.3.0.3
%doc ChangeLog FAQ COPYING.LESSER
%files devel
%{_includedir}/csv.h
%{_libdir}/libcsv.so
%doc %{_mandir}/man3/csv.3*
%exclude %{_libdir}/libcsv.la
%changelog
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Thu Jun 19 2014 Jan Holcapek <holcapek@gmail.com> - 3.0.3-2
- Fixed trailing white space in fix-soname-version.patch.
* Fri Jun 13 2014 Jan Holcapek <holcapek@gmail.com> - 3.0.3-1
- Initial build.