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
|
|
|
#
|
2011-04-05 21:11:26 +02:00
|
|
|
# Copyright (c) 2011 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
|
|
|
|
Name: libHX
|
2011-04-05 21:11:26 +02:00
|
|
|
%define lname libHX27
|
2010-12-02 16:23:33 +01:00
|
|
|
BuildRequires: gcc-c++ xz
|
2010-09-03 14:55:35 +02:00
|
|
|
Summary: Useful collection of routines for C and C++ programming
|
2011-04-05 21:11:26 +02:00
|
|
|
Version: 3.10
|
2010-12-02 16:23:33 +01:00
|
|
|
Release: 1
|
2009-12-16 13:34:53 +01:00
|
|
|
License: LGPL v2+
|
2008-07-05 04:39:13 +02:00
|
|
|
Group: System/Libraries
|
2010-01-25 16:35:48 +01:00
|
|
|
Source: http://downloads.sf.net/libhx/libHX-%version.tar.xz
|
2010-09-03 14:55:35 +02:00
|
|
|
Source3: http://downloads.sf.net/libhx/libHX-%version.tar.xz.asc
|
2009-12-16 13:34:53 +01:00
|
|
|
Source2: baselibs.conf
|
2011-04-06 09:51:07 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-01 03:54:02 +01:00
|
|
|
%define debug_package_requires %lname = %version-%release
|
2011-04-06 09:51:07 +02:00
|
|
|
Url: http://libhx.sf.net/
|
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:
|
|
|
|
--------
|
2009-12-16 13:34:53 +01: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
|
2011-04-06 09:51:07 +02:00
|
|
|
|
2009-12-16 13:34:53 +01:00
|
|
|
License: LGPL v2+
|
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: System/Libraries
|
|
|
|
|
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:
|
|
|
|
--------
|
2009-12-16 13:34:53 +01:00
|
|
|
Jan Engelhardt <jengelh [at] medozas de>
|
2008-07-05 04:39:13 +02:00
|
|
|
|
|
|
|
%package devel
|
2009-12-16 13:34:53 +01:00
|
|
|
License: LGPL v2+
|
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:
|
|
|
|
--------
|
2010-01-25 16:35:48 +01:00
|
|
|
Jan Engelhardt <jengelh [at] medozas de>
|
2008-07-05 04:39:13 +02:00
|
|
|
|
|
|
|
%prep
|
2010-01-25 16:35:48 +01:00
|
|
|
%setup -q
|
2008-07-05 04:39:13 +02:00
|
|
|
|
|
|
|
%build
|
2010-01-25 16:35:48 +01:00
|
|
|
if [ ! -e configure ]; then
|
|
|
|
./autogen.sh
|
|
|
|
fi
|
2009-12-16 13:34:53 +01:00
|
|
|
%configure
|
2010-01-25 16:35:48 +01:00
|
|
|
make %{?_smp_mflags}
|
2008-07-05 04:39:13 +02:00
|
|
|
|
|
|
|
%install
|
2010-12-01 03:54:02 +01:00
|
|
|
make install DESTDIR=%buildroot docdir=%_defaultdocdir/%name
|
|
|
|
mkdir -p "%buildroot/%_docdir";
|
|
|
|
install -pm0644 doc/* "%buildroot/%_defaultdocdir/%name"
|
|
|
|
rm -f %buildroot/%_defaultdocdir/%name/Makefile*
|
|
|
|
rm -f %buildroot/%_libdir/%name.la
|
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)
|
2009-04-01 21:56:24 +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)
|
2011-01-15 17:51:28 +01:00
|
|
|
%_mandir/*/*
|
2008-07-05 04:39:13 +02:00
|
|
|
%docdir %_docdir/%name
|
|
|
|
%_docdir/%name
|
|
|
|
%_includedir/%{name}*
|
2010-12-01 03:54:02 +01:00
|
|
|
/%_libdir/%{name}*.so
|
2008-07-05 04:39:13 +02:00
|
|
|
%_libdir/pkgconfig/*.pc
|
|
|
|
|
|
|
|
%changelog
|