commit 433ac36cad9dbda93705011a3b3e9211fd27c9cfaab650c9ff547666675dc9d8 Author: Jan Engelhardt Date: Sun Dec 1 21:12:00 2019 +0000 - Initial package for openSUSE OBS-URL: https://build.opensuse.org/package/show/server:mail/libxls?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/libxls-1.5.2.tar.gz b/libxls-1.5.2.tar.gz new file mode 100644 index 0000000..f5ee7ad --- /dev/null +++ b/libxls-1.5.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8d7e52d96ccc6c498e5de78c1988d9838d914eeeb94ac60208378340bd6e6aaa +size 443227 diff --git a/libxls.changes b/libxls.changes new file mode 100644 index 0000000..f38aa4b --- /dev/null +++ b/libxls.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Sun Dec 1 21:01:30 UTC 2019 - Jan Engelhardt + +- Initial package for openSUSE diff --git a/libxls.spec b/libxls.spec new file mode 100644 index 0000000..b6fe31b --- /dev/null +++ b/libxls.spec @@ -0,0 +1,86 @@ +# +# spec file for package libxls +# +# Copyright (c) 2019 SUSE LLC +# +# 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. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: libxls +%define lname libxlsreader1 +Version: 1.5.2 +Release: 0 +Summary: Library for Parsing Excel (XLS) Files +License: BSD-2-Clause +Group: Development/Libraries/C and C++ +URL: http://libxls.sourceforge.net/ +Source: https://github.com/libxls/libxls/releases/download/v%version/libxls-%version.tar.gz +BuildRequires: pkg-config + +%description +libxls is a C library which can read Excel (xls) files since Excel 97 +(the BIFF8 format). libxls cannot write Excel files. + +%package -n %lname +Summary: Library for Parsing Excel (XLS) Files +Group: System/Libraries + +%description -n %lname +libxlsreader is a C library which can read Excel (xls) files since Excel +97 (the BIFF8 format). libxlsreader cannot write Excel files. + +%package devel +Summary: Header files for libxls +Group: Development/Libraries/C and C++ +Requires: %lname = %version + +%description devel +Development files for libxls. + +%package tools +Summary: Utility for parsing Excel (XLS) files +Group: Productivity/Office/Other +Conflicts: xls2csv + +%description tools +This package contains libxls2csv, a tool which converts an XLS file to +CSV format, more suitable for parsing. + +%prep +%autosetup -p1 + +%build +%configure --disable-static +make %{?_smp_mflags} + +%install +%make_install +rm -f %buildroot/%_libdir/*.la + +%post -n %lname -p /sbin/ldconfig +%postun -n %lname -p /sbin/ldconfig + +%files -n %lname +%license LICENSE +%_libdir/*.so.* + +%files devel +%_includedir/* +%_libdir/*.so +%_libdir/pkgconfig/*.pc + +%files tools +%_bindir/xls2csv +%_mandir/man*/xls2csv* + +%changelog