File zthread.spec of Package ZThread

Name: libZThread-2_3-3
Version: 2.3.3
Release: 3

Summary: Cross-platform c++ multi-threading framework
License: MIT
Group: Development/Libraries/C and C++
Vendor: Eric D. Crahen <zthread@code-foo.com>
Url: http://zthread.sourceforge.net/

Source: %name-%{version}.zip
Patch1: zthread.patch

Prefix: %_prefix
BuildRoot: %_tmppath/%name-%version-root
BuildRequires: gcc-c++ unzip automake libtool autoconf
Requires: glibc-devel

%description
ZThreads is an advanced platform-independent, Object-Oriented threading and
synchronization library. It has been designed and tested under POSIX & Win32
systems. It is not just another thread wrapper. 

%package devel
Summary: Development tools for ZThread
Group: Development/Libraries/C and C++
BuildRequires: gcc-c++ unzip pkgconfig automake libtool autoconf
Requires: %name = %version

%description devel
The %name-devel package contains the static libraries and header files
needed for development with %name.

%prep
rm -rf $RPM_BUILD_ROOT

%setup
%patch1
aclocal -I share
libtoolize --force
automake -a -c
autoconf
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} --libdir=%{_libdir}

%build
make

%install
rm -rf $RPM_BUILD_ROOT

make install DESTDIR=$RPM_BUILD_ROOT
rm $RPM_BUILD_ROOT%{_includedir}/zthread/Thread.h.bak

%clean
rm -rf $RPM_BUILD_ROOT

%post   -p /sbin/ldconfig    
    
%postun -p /sbin/ldconfig    
  
%files    
%defattr(-,root,root,-)  
%{_libdir}/lib*.so.*  
    
%files devel  
%defattr(-,root,root,-)  
%{_libdir}/*.*a  
%{_libdir}/*.la  
%{_libdir}/*.so
%attr(755,root,root) %prefix/include/zthread  
%attr(644,root,root) %prefix/include/zthread/*
%attr(644,root,root) %doc AUTHORS COPYING INSTALL NEWS README TODO ChangeLog
    
%changelog    
* Mon Oct 18 2010 hugo.meinedo@l2f.inesc-id.pt    
- ZThread on opensuse 11.3 with gcc 4.5
openSUSE Build Service is sponsored by