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
|
|
|
#
|
2013-01-21 14:23:59 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
2008-07-05 04:39:13 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-05-10 05:30:26 +02:00
|
|
|
|
2008-07-05 04:39:13 +02:00
|
|
|
Name: libHX
|
2011-12-03 21:08:37 +01:00
|
|
|
%define lname libHX28
|
2010-09-03 14:55:35 +02:00
|
|
|
Summary: Useful collection of routines for C and C++ programming
|
2011-12-07 15:25:31 +01:00
|
|
|
License: LGPL-2.1 or LGPL-3.0
|
2011-12-01 16:02:40 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2012-12-31 10:11:39 +01:00
|
|
|
Version: 3.14.1
|
2012-02-11 01:21:03 +01:00
|
|
|
Release: 0
|
2012-12-03 23:36:04 +01:00
|
|
|
Url: http://libhx.sf.net/
|
|
|
|
|
2010-01-25 16:35:48 +01:00
|
|
|
Source: http://downloads.sf.net/libhx/libHX-%version.tar.xz
|
2012-12-03 23:36:04 +01:00
|
|
|
Source2: http://downloads.sf.net/libhx/libHX-%version.tar.xz.asc
|
|
|
|
Source3: baselibs.conf
|
|
|
|
Source4: %name.keyring
|
2011-04-06 09:51:07 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-02-11 01:21:03 +01:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: xz
|
2012-12-03 23:36:04 +01:00
|
|
|
%if 0%{?suse_version} >= 1230
|
|
|
|
BuildRequires: gpg-offline
|
|
|
|
%endif
|
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.
|
|
|
|
|
|
|
|
libHX aids in quickly writing up C and C++ data processing programs,
|
|
|
|
by consolidating tasks that often happen to be open-coded, such as
|
|
|
|
(simple) config file reading, option parsing, directory traversal,
|
|
|
|
and others, into a library. The focus is on reducing the amount of
|
|
|
|
time (and secondarily, the amount of code) a developer has to spend
|
|
|
|
for otherwise implementing such.
|
2008-07-05 04:39:13 +02:00
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
2011-07-25 14:14:34 +02:00
|
|
|
Jan Engelhardt <jengelh [at] medozas de>
|
2008-07-05 04:39:13 +02:00
|
|
|
|
2010-09-03 14:55:35 +02:00
|
|
|
%package -n %lname
|
2010-01-25 16:35:48 +01:00
|
|
|
Summary: Useful 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.
|
|
|
|
|
|
|
|
libHX aids in quickly writing up C and C++ data processing programs,
|
|
|
|
by consolidating tasks that often happen to be open-coded, such as
|
|
|
|
(simple) config file reading, option parsing, directory traversal,
|
|
|
|
and others, into a library. The focus is on reducing the amount of
|
|
|
|
time (and secondarily, the amount of code) a developer has to spend
|
|
|
|
for otherwise implementing such.
|
2008-07-05 04:39:13 +02:00
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
2011-07-25 14:14:34 +02:00
|
|
|
Jan Engelhardt <jengelh [at] medozas de>
|
2008-07-05 04:39:13 +02:00
|
|
|
|
|
|
|
%package devel
|
2010-01-25 16:35:48 +01:00
|
|
|
Summary: Useful collection of routines 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.
|
|
|
|
|
|
|
|
libHX aids in quickly writing up C and C++ data processing programs,
|
|
|
|
by consolidating tasks that often happen to be open-coded, such as
|
|
|
|
(simple) config file reading, option parsing, directory traversal,
|
|
|
|
and others, into a library. The focus is on reducing the amount of
|
|
|
|
time (and secondarily, the amount of code) a developer has to spend
|
|
|
|
for otherwise implementing such.
|
2008-07-05 04:39:13 +02:00
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
2011-07-25 14:14:34 +02:00
|
|
|
Jan Engelhardt <jengelh [at] medozas de>
|
2008-07-05 04:39:13 +02:00
|
|
|
|
|
|
|
%prep
|
2012-12-03 23:36:04 +01:00
|
|
|
%if 0%{?gpg_verify:1}
|
|
|
|
%gpg_verify %{S:2}
|
|
|
|
%endif
|
2012-01-28 12:38:07 +01:00
|
|
|
%if 0%{?__xz:1}
|
2010-01-25 16:35:48 +01:00
|
|
|
%setup -q
|
2012-01-28 12:38:07 +01:00
|
|
|
%else
|
|
|
|
tar -xf "%{S:0}" --use=xz;
|
|
|
|
%setup -DTq
|
|
|
|
%endif
|
2008-07-05 04:39:13 +02:00
|
|
|
|
|
|
|
%build
|
2011-08-10 12:38:22 +02:00
|
|
|
%configure --includedir=%_includedir/%name-%version
|
2010-01-25 16:35:48 +01:00
|
|
|
make %{?_smp_mflags}
|
2008-07-05 04:39:13 +02:00
|
|
|
|
|
|
|
%install
|
2012-05-10 05:30:26 +02:00
|
|
|
b="%buildroot";
|
|
|
|
make install DESTDIR="$b" docdir="%_defaultdocdir/%name";
|
|
|
|
install -pm0644 doc/* "$b/%_defaultdocdir/%name";
|
|
|
|
rm -f "$b/%_defaultdocdir/%name"/Makefile*;
|
|
|
|
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
|
|
|
|
make check
|
|
|
|
|
2010-12-01 03:54:02 +01:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
2008-07-05 04:39:13 +02:00
|
|
|
|
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
|
2010-12-01 03:28:41 +01:00
|
|
|
%defattr(-,root,root)
|
2012-05-10 05:30:26 +02:00
|
|
|
%_libdir/%{name}*.so.*
|
2008-07-05 04:39:13 +02:00
|
|
|
|
|
|
|
%files devel
|
2010-12-01 03:28:41 +01:00
|
|
|
%defattr(-,root,root)
|
2012-05-10 05:30:26 +02:00
|
|
|
%doc %_docdir/%name
|
2008-07-05 04:39:13 +02:00
|
|
|
%_docdir/%name
|
|
|
|
%_includedir/%{name}*
|
2012-05-10 05:30:26 +02:00
|
|
|
%_libdir/%{name}*.so
|
2008-07-05 04:39:13 +02:00
|
|
|
%_libdir/pkgconfig/*.pc
|
|
|
|
|
|
|
|
%changelog
|