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
|
|
|
#
|
2014-01-03 10:26:15 +01:00
|
|
|
# Copyright (c) 2014 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++
|
2014-08-25 17:22:17 +02:00
|
|
|
Version: 3.22
|
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
|
2014-04-18 18:33:21 +02:00
|
|
|
Source2: http://downloads.sf.net/libhx/libHX-%version.tar.asc
|
2012-12-03 23:36:04 +01:00
|
|
|
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: pkgconfig
|
|
|
|
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
|
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
|
|
|
|
|
|
|
%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.
|
|
|
|
|
2008-07-05 04:39:13 +02:00
|
|
|
%prep
|
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
|
2014-12-15 01:45:51 +01:00
|
|
|
mkdir obj
|
|
|
|
pushd obj/
|
|
|
|
%define _configure ../configure
|
|
|
|
%configure --includedir="%_includedir/%name" --docdir="%_docdir/%name"
|
2010-01-25 16:35:48 +01:00
|
|
|
make %{?_smp_mflags}
|
2014-12-15 01:45:51 +01:00
|
|
|
popd
|
2008-07-05 04:39:13 +02:00
|
|
|
|
|
|
|
%install
|
2012-05-10 05:30:26 +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*
|
2012-05-10 05:30:26 +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
|
2014-12-15 01:45:51 +01:00
|
|
|
make -C obj check %{?_smp_mflags}
|
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
|
2010-12-01 03:28:41 +01:00
|
|
|
%defattr(-,root,root)
|
2013-09-29 22:06:43 +02:00
|
|
|
%_libdir/libHX*.so.28*
|
2008-07-05 04:39:13 +02:00
|
|
|
|
|
|
|
%files devel
|
2010-12-01 03:28:41 +01:00
|
|
|
%defattr(-,root,root)
|
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
|