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