2008-07-05 04:39:13 +02:00
|
|
|
#
|
2011-04-05 21:11:26 +02:00
|
|
|
# spec file for package libHX
|
2008-07-05 04:39:13 +02:00
|
|
|
#
|
2023-01-23 02:51:09 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2008-07-05 04:39:13 +02:00
|
|
|
#
|
2008-08-15 00:48:18 +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.
|
|
|
|
|
2018-10-17 21:26:41 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-07-05 04:39:13 +02:00
|
|
|
#
|
|
|
|
|
2012-05-10 05:30:26 +02:00
|
|
|
|
2008-07-05 04:39:13 +02:00
|
|
|
Name: libHX
|
2020-05-14 13:15:28 +02:00
|
|
|
%define lname libHX32
|
2023-11-27 12:32:57 +01:00
|
|
|
Version: 4.18
|
2020-05-14 13:15:28 +02:00
|
|
|
Release: 0
|
2018-08-28 16:42:06 +02:00
|
|
|
Summary: Collection of routines for C and C++ programming
|
2018-10-17 21:31:36 +02:00
|
|
|
License: LGPL-2.1-or-later
|
2011-12-01 16:02:40 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2020-05-14 13:15:28 +02:00
|
|
|
URL: https://inai.de/projects/libhx/
|
2012-12-03 23:36:04 +01:00
|
|
|
|
2020-05-14 13:15:28 +02:00
|
|
|
Source: https://inai.de/files/libhx/libHX-%version.tar.xz
|
|
|
|
Source2: https://inai.de/files/libhx/libHX-%version.tar.asc
|
2012-12-03 23:36:04 +01:00
|
|
|
Source4: %name.keyring
|
2012-02-11 01:21:03 +01:00
|
|
|
BuildRequires: gcc-c++
|
2018-08-28 16:42:06 +02:00
|
|
|
BuildRequires: pkg-config
|
2012-02-11 01:21:03 +01:00
|
|
|
BuildRequires: xz
|
2008-07-05 04:39:13 +02:00
|
|
|
|
|
|
|
%description
|
2011-01-15 17:51:28 +01:00
|
|
|
libHX is a C library (with some C++ bindings available) that provides
|
|
|
|
data structures and functions commonly needed, such as maps, deques,
|
|
|
|
linked lists, string formatting and autoresizing, option and config
|
|
|
|
file parsing, type checking casts and more.
|
|
|
|
|
2010-09-03 14:55:35 +02:00
|
|
|
%package -n %lname
|
2018-08-28 16:42:06 +02:00
|
|
|
Summary: Collection of routines for C and C++ programming
|
2011-12-01 16:02:40 +01:00
|
|
|
Group: System/Libraries
|
2008-07-05 04:39:13 +02:00
|
|
|
|
2010-12-01 03:54:02 +01:00
|
|
|
%description -n %lname
|
2011-01-15 17:51:28 +01:00
|
|
|
libHX is a C library (with some C++ bindings available) that provides
|
|
|
|
data structures and functions commonly needed, such as maps, deques,
|
|
|
|
linked lists, string formatting and autoresizing, option and config
|
|
|
|
file parsing, type checking casts and more.
|
|
|
|
|
2008-07-05 04:39:13 +02:00
|
|
|
%package devel
|
2018-08-28 16:42:06 +02:00
|
|
|
Summary: Development for libHX, a routines collection for C and C++ programming
|
2008-07-05 04:39:13 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2010-12-01 03:54:02 +01:00
|
|
|
Requires: %lname = %version
|
2008-07-05 04:39:13 +02:00
|
|
|
|
|
|
|
%description devel
|
2011-01-15 17:51:28 +01:00
|
|
|
libHX is a C library (with some C++ bindings available) that provides
|
|
|
|
data structures and functions commonly needed, such as maps, deques,
|
|
|
|
linked lists, string formatting and autoresizing, option and config
|
|
|
|
file parsing, type checking casts and more.
|
|
|
|
|
2018-10-17 21:31:36 +02:00
|
|
|
This subpackage contains the header files.
|
|
|
|
|
2008-07-05 04:39:13 +02:00
|
|
|
%prep
|
2020-05-14 13:15:28 +02:00
|
|
|
%autosetup -p1
|
2008-07-05 04:39:13 +02:00
|
|
|
|
|
|
|
%build
|
2014-12-15 01:45:51 +01:00
|
|
|
mkdir obj
|
|
|
|
pushd obj/
|
|
|
|
%define _configure ../configure
|
|
|
|
%configure --includedir="%_includedir/%name" --docdir="%_docdir/%name"
|
2021-10-03 00:08:16 +02:00
|
|
|
%make_build
|
2014-12-15 01:45:51 +01:00
|
|
|
popd
|
2008-07-05 04:39:13 +02:00
|
|
|
|
|
|
|
%install
|
2018-08-28 16:42:06 +02:00
|
|
|
b="%buildroot"
|
2014-12-15 01:45:51 +01:00
|
|
|
%make_install -C obj
|
2013-11-16 05:19:45 +01:00
|
|
|
mkdir -p "$b/%_docdir/%name"
|
|
|
|
install -pm0644 doc/* "$b/%_docdir/%name"
|
|
|
|
rm -f "$b/%_docdir/%name"/Makefile*
|
2018-08-28 16:42:06 +02:00
|
|
|
find "$b/%_libdir" -type f -name "*.la" -delete
|
2008-07-05 04:39:13 +02:00
|
|
|
|
2010-01-25 16:35:48 +01:00
|
|
|
%check
|
2021-10-03 00:08:16 +02:00
|
|
|
%make_build -C obj check
|
2010-01-25 16:35:48 +01:00
|
|
|
|
2013-03-07 21:36:07 +01:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
2010-12-01 03:54:02 +01:00
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2008-07-05 04:39:13 +02:00
|
|
|
|
2010-12-01 03:54:02 +01:00
|
|
|
%files -n %lname
|
2020-05-14 13:15:28 +02:00
|
|
|
%_libdir/libHX*.so.32*
|
2008-07-05 04:39:13 +02:00
|
|
|
|
|
|
|
%files devel
|
2013-09-29 22:06:43 +02:00
|
|
|
%_docdir/%name/
|
2014-12-15 01:45:51 +01:00
|
|
|
%_includedir/%name/
|
2013-09-29 22:06:43 +02:00
|
|
|
%_libdir/libHX*.so
|
|
|
|
%_libdir/pkgconfig/libHX.pc
|
2008-07-05 04:39:13 +02:00
|
|
|
|
|
|
|
%changelog
|