From 966bd3bb643bb8445d58bdbc9c107d6b6a56c2a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Volker=20Fr=C3=B6hlich?= Date: Tue, 10 Jan 2012 21:38:14 +0530 Subject: [PATCH] IMPORT --- .gitignore | 1 + freexl.spec | 107 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 109 insertions(+) create mode 100644 freexl.spec diff --git a/.gitignore b/.gitignore index e69de29..ad46a4b 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/freexl-1.0.0a.tar.gz diff --git a/freexl.spec b/freexl.spec new file mode 100644 index 0000000..a1e4125 --- /dev/null +++ b/freexl.spec @@ -0,0 +1,107 @@ +Name: freexl +Version: 1.0.0a +Release: 1%{?dist} +Summary: Library to extract data from within an Excel spreadsheet +Group: System Environment/Libraries +License: MPLv1.1 or GPLv2+ or LGPLv2+ +URL: http://www.gaia-gis.it/FreeXL +Source0: http://www.gaia-gis.it/FreeXL/%{name}-%{version}.tar.gz +BuildRequires: doxygen +BuildRequires: lcov + +%description +FreeXL is a library to extract valid data +from within an Excel spreadsheet (.xls) + +Design goals: + * simple and lightweight + * stable, robust and efficient + * easily and universally portable + * completely ignore any GUI-related oddity + +%package devel +Summary: Development Libraries for FreeXL +Group: Development/Libraries +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: pkgconfig + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%prep +%setup -q + + +%build +%configure --enable-gcov=yes --disable-static +make %{?_smp_mflags} + +# Mailed the author on Dec 5th 2011 +# Preserve date of header file +sed -i 's/^INSTALL_HEADER = \$(INSTALL_DATA)/& -p/' headers/Makefile.in + +# Generate HTML documentation and clean unused installdox script +doxygen +rm -f html/installdox + + +%check +make coverage-init +make check +make coverage + +# Clean up +pushd examples + make clean +popd + + +%install +make install DESTDIR=%{buildroot} + +# Delete undesired libtool archives +rm -f %{buildroot}%{_libdir}/lib%{name}.la + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + +%files +%doc COPYING AUTHORS README +%{_libdir}/lib%{name}.so.* + +%files devel +%doc examples html +%{_includedir}/freexl.h +%{_libdir}/lib%{name}.so +%{_libdir}/pkgconfig/freexl.pc + + +%changelog +* Fri Jan 08 2012 Volker Fröhlich 1.0.0a-1 +- Correct versioning scheme to post-release +- Correct Source and setup macro accordingly + +* Fri Nov 18 2011 Volker Fröhlich 1.0.0-0.1.a +- Move development lib symlink to devel +- Don't build static lib +- Add README +- Build with enable-gcov +- BR lcov and doxygen +- Shorten description and summary +- Use macros in Source tag +- Add check section +- Change version and release +- Correct URL +- Correct to multiple licensing scenario +- Drop defattr +- Add pkgconfig and isa macro to devel's BR +- Use upstream tarball, as file size is different +- Remove EPEL 5 specific elements + +* Wed Nov 26 2010 Peter Hopfgartber 1.0.0a-0.1 +- Initial packaging diff --git a/sources b/sources index e69de29..ca14aa9 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +ca9241384901b7d47ae01981561d2da5 freexl-1.0.0a.tar.gz