SHA256
1
0
forked from pool/libHX
libHX/libHX.spec

141 lines
4.4 KiB
RPMSpec

#
# spec file for package libHX
#
# Copyright (c) 2011 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 libHX27
BuildRequires: gcc-c++ xz
Summary: Useful collection of routines for C and C++ programming
Version: 3.10.1
Release: 3
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
Patch1: pkgincludedir.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: pkg-config
%define debug_package_requires %lname = %version-%release
Url: http://libhx.sf.net/
%description
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.
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
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.
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
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.
Authors:
--------
Jan Engelhardt <jengelh [at] medozas de>
%prep
%setup -q
%patch -P 1 -p1
%build
./autogen.sh
%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)
%_mandir/*/*
%docdir %_docdir/%name
%_docdir/%name
%_includedir/%{name}*
/%_libdir/%{name}*.so
%_libdir/pkgconfig/*.pc
%changelog