- Initial package for openSUSE

OBS-URL: https://build.opensuse.org/package/show/server:mail/libxls?expand=0&rev=1
This commit is contained in:
Jan Engelhardt 2019-12-01 21:12:00 +00:00 committed by Git OBS Bridge
commit 433ac36cad
5 changed files with 117 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
libxls-1.5.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8d7e52d96ccc6c498e5de78c1988d9838d914eeeb94ac60208378340bd6e6aaa
size 443227

4
libxls.changes Normal file
View File

@ -0,0 +1,4 @@
-------------------------------------------------------------------
Sun Dec 1 21:01:30 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Initial package for openSUSE

86
libxls.spec Normal file
View File

@ -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