2008-07-05 04:39:13 +02:00
|
|
|
#
|
2010-12-01 03:28:41 +01:00
|
|
|
# spec file for package libHX (Version 3.7)
|
2008-07-05 04:39:13 +02:00
|
|
|
#
|
2010-01-25 16:35:48 +01:00
|
|
|
# Copyright (c) 2010 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
|
2010-09-03 14:55:35 +02:00
|
|
|
%define lname libHX25
|
2010-01-25 16:35:48 +01:00
|
|
|
BuildRequires: gcc-c++ xz
|
2010-09-03 14:55:35 +02:00
|
|
|
Summary: Useful collection of routines for C and C++ programming
|
2010-12-01 03:28:41 +01:00
|
|
|
Version: 3.7
|
|
|
|
Release: 0
|
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
|
2008-07-05 04:39:13 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-12-16 13:34:53 +01:00
|
|
|
%define debug_package_requires %lname = %{version}-%{release}
|
2010-09-03 14:55:33 +02:00
|
|
|
Url: http://libhx.sf.net/
|
2008-07-05 04:39:13 +02:00
|
|
|
|
|
|
|
%description
|
2009-12-16 13:34:53 +01:00
|
|
|
A library for:
|
|
|
|
- hash/rbtree-based maps/sets
|
|
|
|
- double-ended queues (stacks/fifos/lists)
|
|
|
|
- platform-independent opendir-style directory access
|
|
|
|
- platform-independent dlopen-style shared library access
|
|
|
|
- auto-storage strings with direct access
|
|
|
|
- command line option (argv) parser
|
|
|
|
- shconfig-style config file parser
|
|
|
|
- various string, memory and zvec ops
|
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
|
|
|
|
|
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
|
|
|
|
|
|
|
|
%description -n %{lname}
|
2009-12-16 13:34:53 +01:00
|
|
|
A library for:
|
|
|
|
- hash/rbtree-based maps/sets
|
|
|
|
- double-ended queues (stacks/fifos/lists)
|
|
|
|
- platform-independent opendir-style directory access
|
|
|
|
- platform-independent dlopen-style shared library access
|
2008-07-05 04:39:13 +02:00
|
|
|
- auto-storage strings with direct access
|
|
|
|
- command line option (argv) parser
|
2009-12-16 13:34:53 +01:00
|
|
|
- shconfig-style config file parser
|
2008-07-05 04:39:13 +02:00
|
|
|
- various string, memory and zvec ops
|
|
|
|
|
|
|
|
|
|
|
|
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++
|
2009-05-16 00:57:07 +02:00
|
|
|
Requires: %{lname} = %{version}
|
2008-07-05 04:39:13 +02:00
|
|
|
|
|
|
|
%description devel
|
2009-12-16 13:34:53 +01:00
|
|
|
A library for:
|
|
|
|
- hash/rbtree-based maps/sets
|
|
|
|
- double-ended queues (stacks/fifos/lists)
|
|
|
|
- platform-independent opendir-style directory access
|
|
|
|
- platform-independent dlopen-style shared library access
|
2008-07-05 04:39:13 +02:00
|
|
|
- auto-storage strings with direct access
|
|
|
|
- command line option (argv) parser
|
2009-12-16 13:34:53 +01:00
|
|
|
- shconfig-style config file parser
|
2008-07-05 04:39:13 +02:00
|
|
|
- various string, memory and zvec ops
|
|
|
|
|
|
|
|
|
|
|
|
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
|
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
|
|
|
|
2010-01-25 16:35:48 +01:00
|
|
|
%check
|
|
|
|
make check
|
|
|
|
|
2008-07-05 04:39:13 +02:00
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%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)
|
2008-07-05 04:39:13 +02:00
|
|
|
%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
|