forked from pool/libHX
Jan Engelhardt
84f8abe6ec
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libHX?expand=0&rev=15
134 lines
3.5 KiB
RPMSpec
134 lines
3.5 KiB
RPMSpec
#
|
|
# spec file for package libHX (Version 3.7)
|
|
#
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: libHX
|
|
%define lname libHX25
|
|
BuildRequires: gcc-c++, xz
|
|
Summary: Useful collection of routines for C and C++ programming
|
|
Version: 3.7
|
|
Release: 0
|
|
License: LGPL v2+
|
|
Group: System/Libraries
|
|
Source: http://downloads.sf.net/libhx/libHX-%version.tar.xz
|
|
Source3: http://downloads.sf.net/libhx/libHX-%version.tar.xz.asc
|
|
Source2: baselibs.conf
|
|
BuildRoot: %_tmppath/%name-%version-build
|
|
%define debug_package_requires %lname = %version-%release
|
|
URL: http://libhx.sf.net/
|
|
|
|
%description
|
|
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
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Jan Engelhardt <jengelh [at] medozas de>
|
|
|
|
%package -n %lname
|
|
|
|
License: LGPL v2+
|
|
Summary: Useful collection of routines for C and C++ programming
|
|
Group: System/Libraries
|
|
|
|
%description -n %lname
|
|
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
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Jan Engelhardt <jengelh [at] medozas de>
|
|
|
|
|
|
%package devel
|
|
License: LGPL v2+
|
|
Summary: Useful collection of routines for C and C++ programming
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %lname = %version
|
|
|
|
%description devel
|
|
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
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Jan Engelhardt <jengelh [at] medozas de>
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
if [ ! -e configure ]; then
|
|
./autogen.sh
|
|
fi
|
|
%configure
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
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
|
|
|
|
%check
|
|
make check
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
%files -n %lname
|
|
%defattr(-,root,root)
|
|
/%_libdir/%{name}*.so.*
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%docdir %_docdir/%name
|
|
%_docdir/%name
|
|
%_includedir/%{name}*
|
|
/%_libdir/%{name}*.so
|
|
%_libdir/pkgconfig/*.pc
|
|
|
|
%changelog
|