#
# Conditional build:
-%bcond_without tests # don't perform "make check"
+%bcond_without static_libs # don't build static libraries
+%bcond_without tests # don't perform "make check"
#
Summary: OSSP ex - Exception Handling
Summary(pl): OSSP ex - biblioteka obs³ugi wyj±tków
Name: ex
-Version: 1.0.4
-Release: 0.2
+Version: 1.0.5
+Release: 0.1
Epoch: 0
License: distributable (see README)
Group: Libraries
Source0: ftp://ftp.ossp.org/pkg/lib/ex/%{name}-%{version}.tar.gz
-# Source0-md5: 9054e4325e5e182b2105566d9d02732d
+# Source0-md5: 419f0915cb578f9eb3bfc483bc49f066
Patch0: %{name}-libs.patch
URL: http://www.ossp.org/pkg/lib/ex/
BuildRequires: autoconf
%{__aclocal}
%{__autoconf}
-%configure
+%configure \
+ --enable-static=%{?with_static_libs:yes}%{!?with_static_libs:no}
%{__make}
%{?with_tests:%{__make} check}
%{_includedir}/*
%{_mandir}/man3/*
+%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/lib*.a
+%endif