File pth.spec of Package pth

#
# spec file for package pth (Version 2.0.7)
#
# Copyright (c) 2009 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:           pth
Url:            http://www.gnu.org/software/pth/
License:        LGPL v2.1 or later
Group:          System/Libraries
Version:        2.0.7
Release:        115
AutoReqProv:    on
Source:         %{name}-%{version}.tar.bz2
Patch:          %{name}-%{version}.diff
Patch1:         pth_sched.patch
Summary:        GNU Portable Threads
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Pth is a very portable POSIX/ANSI-C based library for Unix platforms
which provides non-preemptive priority-based scheduling for multiple
threads of execution ("multithreading") inside server applications. All
threads run in the same address space of the server application, but
each thread has it's own individual program-counter, run-time stack,
signal mask and errno variable.



Authors:
--------
    Ralf S. Engelschall <rse@engelschall.com>

%package -n libpth20
License:        LGPL v2.1 or later
Summary:        GNU Portable Threads
Group:          System/Libraries
Provides:       pth
Obsoletes:      pth
%define library_name libpth20
%define debug_package_requires %{library_name} = %{version}-%{release}

%description -n libpth20
Pth is a very portable POSIX/ANSI-C based library for Unix platforms
which provides non-preemptive priority-based scheduling for multiple
threads of execution ("multithreading") inside server applications. All
threads run in the same address space of the server application, but
each thread has it's own individual program-counter, run-time stack,
signal mask and errno variable.



Authors:
--------
    Ralf S. Engelschall <rse@engelschall.com>

%package -n libpth-devel
License:        LGPL v2.1 or later
Summary:        GNU Portable Threads
Group:          System/Libraries
Requires:       %{library_name} = %{version}
# pth-devel was last used in openSUSE 11.1
Provides:       pth-devel = %{version}
Obsoletes:      pth-devel < %{version}

%description -n libpth-devel
Pth is a very portable POSIX/ANSI-C based library for Unix platforms
which provides non-preemptive priority-based scheduling for multiple
threads of execution ("multithreading") inside server applications. All
threads run in the same address space of the server application, but
each thread has it's own individual program-counter, run-time stack,
signal mask and errno variable.



Authors:
--------
    Ralf S. Engelschall <rse@engelschall.com>

%prep
%setup -q
%patch
%patch1 -p1

%build
autoconf
%configure --disable-static --with-pic \
            --enable-optimize=yes \
            --enable-pthread=no \
            --with-gnu-ld
%{__make} %{?jobs:-j%jobs}

%check
make test

%install
make DESTDIR=$RPM_BUILD_ROOT install
#empty dependency_libs
%{__rm} -f %{buildroot}%{_libdir}/libpth.la

%post   -n %{library_name} -p /sbin/ldconfig

%postun -n %{library_name} -p /sbin/ldconfig

%files -n libpth20
%defattr(-,root,root)
%doc ANNOUNCE AUTHORS COPYING HACKING HISTORY INSTALL NEWS PORTING README SUPPORT TESTS THANKS USERS
%doc %{_mandir}/man1/*
%{_libdir}/libpth*.so.*

%files -n libpth-devel
%defattr(-,root,root)
%{_bindir}/pth-config
%{_includedir}/pth.h
%{_datadir}/aclocal/pth.m4
%{_libdir}/libpth*.so
%doc %{_mandir}/man3/*

%changelog
* Wed Jun 17 2009 ro@suse.de
- update baselibs.conf
* Tue Jun 09 2009 puzel@suse.cz
- rename pth-devel to libpth-devel (bnc#504769)
* Thu May 28 2009 puzel@suse.cz
- make pakcage conform to shared library policy
  - libpth20, libpth-devel subpackages
* Wed Apr 01 2009 crrodriguez@suse.de
- disable static libraries
* Fri Aug 22 2008 puzel@suse.cz
- added pth_sched.patch (bnc#413646)
* Tue Jul 01 2008 schwab@suse.de
- Don't make debugging impossible.
- Fix broken stack layout assumptions.
* Thu Apr 10 2008 ro@suse.de
- added baselibs.conf file to build xxbit packages
  for multilib support
* Thu Dec 27 2007 crrodriguez@suse.de
- fixed library-without-ldconfig-post* errors
- libpth.la has empty dependency_libs, removed
* Wed Jan 31 2007 mrueckert@suse.de
- remove useless calls to autotools.
- use %%configure
* Tue Jan 30 2007 ro@suse.de
- use libdir / fix build on lib64
* Tue Jan 23 2007 ltinkl@suse.cz
- fix build with debuginfo
* Mon Jan 22 2007 ltinkl@suse.cz
- initial version, needed for libassuan and new gpg2
openSUSE Build Service is sponsored by