2008-07-05 04:39:13 +02:00
|
|
|
#
|
2009-07-27 23:09:53 +02:00
|
|
|
# spec file for package libHX (Version 2.9)
|
2008-07-05 04:39:13 +02:00
|
|
|
#
|
2009-01-30 00:20:00 +01:00
|
|
|
# Copyright (c) 2009 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
|
2009-04-01 21:56:24 +02:00
|
|
|
%define lname libHX18
|
2009-05-16 00:57:07 +02:00
|
|
|
BuildRequires: gcc-c++
|
2008-07-05 04:39:13 +02:00
|
|
|
Summary: General-purpose Library
|
2009-07-27 23:09:53 +02:00
|
|
|
Version: 2.9
|
2009-04-01 21:56:24 +02:00
|
|
|
Release: 1
|
2009-07-27 23:09:53 +02:00
|
|
|
License: LGPL v2.1 only ; LGPL v3 only
|
2009-04-01 21:56:24 +02:00
|
|
|
Prefix: /usr
|
2008-07-05 04:39:13 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
Source: %{name}-%{version}.tar.bz2
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-04-01 21:56:24 +02:00
|
|
|
%define debug_package_requires libHX18 = %{version}-%{release}
|
2009-05-16 00:57:07 +02:00
|
|
|
Url: http://libhx.sf.net/
|
2008-07-05 04:39:13 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
A library for: * A+R/B trees to use for lists or maps (associative
|
|
|
|
arrays)
|
|
|
|
|
|
|
|
* Deques (double-ended queues) (Stacks (LIFO) / Queues (FIFOs))
|
|
|
|
|
|
|
|
* platform independent opendir-style directory access
|
|
|
|
|
|
|
|
* platform independent dlopen-style shared library access
|
|
|
|
|
|
|
|
* auto-storage strings with direct access
|
|
|
|
|
|
|
|
* command line option (argv) parser
|
|
|
|
|
|
|
|
* shell-style config file parser
|
|
|
|
|
|
|
|
* platform independent random number generator with transparent
|
|
|
|
/dev/urandom support
|
|
|
|
|
|
|
|
* various string, memory and zvec ops
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Jan Engelhardt <jengelh [at] gmx de>
|
|
|
|
|
2009-04-01 21:56:24 +02:00
|
|
|
%package -n libHX18
|
2009-07-27 23:09:53 +02:00
|
|
|
License: LGPL v2.1 or later ; LGPL v3 or later
|
2008-07-05 04:39:13 +02:00
|
|
|
Summary: General-purpose Library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{lname}
|
|
|
|
A library for: - A+R/B trees to use for lists or maps (associative
|
|
|
|
arrays)
|
|
|
|
|
|
|
|
- Deques (double-ended queues) (Stacks (LIFO) / Queues (FIFOs))
|
|
|
|
|
|
|
|
- platform independent opendir-style directory access
|
|
|
|
|
|
|
|
- platform independent dlopen-style shared library access
|
|
|
|
|
|
|
|
- auto-storage strings with direct access
|
|
|
|
|
|
|
|
- command line option (argv) parser
|
|
|
|
|
|
|
|
- shell-style config file parser
|
|
|
|
|
|
|
|
- platform independent random number generator with transparent
|
|
|
|
/dev/urandom support
|
|
|
|
|
|
|
|
- various string, memory and zvec ops
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Jan Engelhardt <jengelh [at] gmx de>
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
License: LGPL v2.1 or later
|
|
|
|
Summary: General-purpose library
|
|
|
|
Group: Development/Libraries/C and C++
|
2009-05-16 00:57:07 +02:00
|
|
|
Requires: %{lname} = %{version}
|
2008-07-05 04:39:13 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
A library for: - A+R/B trees to use for lists or maps (associative
|
|
|
|
arrays)
|
|
|
|
|
|
|
|
- Deques (double-ended queues) (Stacks (LIFO) / Queues (FIFOs))
|
|
|
|
|
|
|
|
- platform independent opendir-style directory access
|
|
|
|
|
|
|
|
- platform independent dlopen-style shared library access
|
|
|
|
|
|
|
|
- auto-storage strings with direct access
|
|
|
|
|
|
|
|
- command line option (argv) parser
|
|
|
|
|
|
|
|
- shell-style config file parser
|
|
|
|
|
|
|
|
- platform independent random number generator with transparent
|
|
|
|
/dev/urandom support
|
|
|
|
|
|
|
|
- various string, memory and zvec ops
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Jan Engelhardt <jengelh [at] gmx de>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
./autogen.sh;
|
2009-05-16 00:57:07 +02:00
|
|
|
%configure --with-pkgconfigdir=/%_libdir/pkgconfig/
|
2008-07-05 04:39:13 +02:00
|
|
|
make %{?jobs:-j%jobs};
|
|
|
|
perl -i -pe 's/^shouldnotlink=yes/shouldnotlink=no/;' \
|
|
|
|
src/%{name}.la src/.libs/%{name}.lai;
|
|
|
|
|
|
|
|
%install
|
2009-05-16 00:57:07 +02:00
|
|
|
make install DESTDIR=${RPM_BUILD_ROOT} docdir=%{_defaultdocdir}/%{name}
|
2008-07-05 04:39:13 +02:00
|
|
|
mkdir -p "${RPM_BUILD_ROOT}/%_docdir";
|
2009-05-16 00:57:07 +02:00
|
|
|
install -pm0644 doc/* "${RPM_BUILD_ROOT}/%{_defaultdocdir}/%{name}"
|
|
|
|
rm -f ${RPM_BUILD_ROOT}/%{_defaultdocdir}/%{name}/Makefile*
|
2009-04-01 21:56:24 +02:00
|
|
|
rm -f ${RPM_BUILD_ROOT}/%{_libdir}/%{name}.la
|
2008-07-05 04:39:13 +02:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %{lname}
|
|
|
|
%defattr(-, root, root)
|
2009-04-01 21:56:24 +02:00
|
|
|
/%_libdir/%{name}*.so.*
|
2008-07-05 04:39:13 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%docdir %_docdir/%name
|
|
|
|
%_docdir/%name
|
|
|
|
%_includedir/%{name}*
|
2009-04-01 21:56:24 +02:00
|
|
|
/%{_libdir}/%{name}*.so
|
2008-07-05 04:39:13 +02:00
|
|
|
%_libdir/pkgconfig/*.pc
|
|
|
|
|
|
|
|
%changelog
|