2013-04-19 09:53:46 +02:00
|
|
|
#
|
|
|
|
# spec file for package libcsplit
|
|
|
|
#
|
2022-01-09 11:27:11 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2013-04-19 09:53:46 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2021-06-07 23:41:29 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-04-19 09:53:46 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libcsplit
|
|
|
|
%define lname libcsplit1
|
2022-01-09 11:27:11 +01:00
|
|
|
Version: 20220109
|
2013-04-19 09:53:46 +02:00
|
|
|
Release: 0
|
2021-06-07 23:41:29 +02:00
|
|
|
Summary: Library for C split string functions
|
|
|
|
License: LGPL-3.0-or-later
|
2013-04-19 09:53:46 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2021-06-07 23:41:29 +02:00
|
|
|
URL: https://github.com/libyal/libcsplit
|
2022-01-09 11:27:11 +01:00
|
|
|
Source: https://github.com/libyal/libcsplit/releases/download/%version/libcsplit-beta-%version.tar.gz
|
|
|
|
Source2: https://github.com/libyal/libcsplit/releases/download/%version/libcsplit-beta-%version.tar.gz.asc
|
|
|
|
Source9: %name.keyring
|
2021-06-07 23:41:29 +02:00
|
|
|
BuildRequires: c_compiler
|
|
|
|
BuildRequires: pkg-config
|
2022-11-27 00:02:53 +01:00
|
|
|
BuildRequires: pkgconfig(libcerror) >= 20220101
|
|
|
|
# Various notes: https://en.opensuse.org/libyal
|
2013-04-19 09:53:46 +02:00
|
|
|
|
|
|
|
%description
|
2021-06-07 23:41:29 +02:00
|
|
|
A library for C split string functions.
|
2013-04-19 09:53:46 +02:00
|
|
|
|
2013-10-11 08:54:40 +02:00
|
|
|
This package is part of the libyal library collection and is used by other libraries in the collection
|
|
|
|
|
2013-04-19 09:53:46 +02:00
|
|
|
%package -n %lname
|
2021-06-07 23:41:29 +02:00
|
|
|
Summary: Library for C split string functions
|
2013-04-19 09:53:46 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %lname
|
2021-06-07 23:41:29 +02:00
|
|
|
Library for C split string functions.
|
2015-01-09 20:52:09 +01:00
|
|
|
|
|
|
|
Part of the libyal family of libraries.
|
2013-07-31 17:23:21 +02:00
|
|
|
|
2013-04-19 09:53:46 +02:00
|
|
|
%package devel
|
2021-06-07 23:41:29 +02:00
|
|
|
Summary: Development files for libcsplit, a C split string library
|
2013-04-19 09:53:46 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2013-07-31 17:23:21 +02:00
|
|
|
Requires: %lname = %{version}
|
2013-04-19 09:53:46 +02:00
|
|
|
|
|
|
|
%description devel
|
2021-06-07 23:41:29 +02:00
|
|
|
A library for C split string functions.
|
2013-04-19 09:53:46 +02:00
|
|
|
|
|
|
|
This subpackage contains libraries and header files for developing
|
|
|
|
applications that want to make use of libcsplit.
|
|
|
|
|
|
|
|
%prep
|
2021-06-07 23:41:29 +02:00
|
|
|
%autosetup -p1
|
2013-04-19 09:53:46 +02:00
|
|
|
|
|
|
|
%build
|
2022-08-08 16:27:23 +02:00
|
|
|
echo "V_%version { global: *; };" >v.sym
|
|
|
|
%configure --disable-static --enable-wide-character-type LDFLAGS="-Wl,--version-script=$PWD/v.sym"
|
2022-11-27 00:02:53 +01:00
|
|
|
grep ' local' config.log && exit 1
|
2021-06-07 23:41:29 +02:00
|
|
|
%make_build
|
2013-04-19 09:53:46 +02:00
|
|
|
|
|
|
|
%install
|
2013-07-31 17:23:21 +02:00
|
|
|
%make_install
|
|
|
|
rm -f "%{buildroot}/%{_libdir}"/*.la
|
2013-04-19 09:53:46 +02:00
|
|
|
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %lname
|
2020-12-30 04:56:28 +01:00
|
|
|
%license COPYING*
|
2013-07-31 17:23:21 +02:00
|
|
|
%{_libdir}/libcsplit.so.1*
|
2013-04-19 09:53:46 +02:00
|
|
|
|
|
|
|
%files devel
|
2020-12-30 04:56:28 +01:00
|
|
|
%license COPYING*
|
2013-07-31 17:23:21 +02:00
|
|
|
%{_includedir}/libcsplit*
|
|
|
|
%{_libdir}/libcsplit.so
|
|
|
|
%{_libdir}/pkgconfig/libcsplit.pc
|
|
|
|
%{_mandir}/man3/libcsplit.3*
|
2013-04-19 09:53:46 +02:00
|
|
|
|
|
|
|
%changelog
|