3 %bcond_without static_libs # don't build static libraries
4 %bcond_without tests # don't perform "make check"
6 Summary: OSSP ex - Exception Handling
7 Summary(pl.UTF-8): OSSP ex - biblioteka obsługi wyjątków
12 License: distributable (see README)
14 Source0: ftp://ftp.ossp.org/pkg/lib/ex/%{name}-%{version}.tar.gz
15 # Source0-md5: 20ff7fb1c49968c51b77e4c669a67e25
16 Patch0: %{name}-libs.patch
17 URL: http://www.ossp.org/pkg/lib/ex/
18 BuildRequires: autoconf
19 BuildRequires: automake
20 BuildRequires: libtool
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 OSSP ex is a small ISO-C++ style exception handling library for use in
25 the ISO-C language. It allows you to use the paradigm of throwing and
26 catching exceptions in order to reduce the amount of error handling
27 code without making your program less robust.
29 This is achieved by directly transferring exceptional return codes
30 (and the program control flow) from the location where the exception
31 is raised (throw point) to the location where it is handled (catch
32 point) -- usually from a deeply nested sub-routine to a parent
33 routine. All intermediate routines no longer have to make sure that
34 the exceptional return codes from sub-routines are correctly passed
37 The OSSP ex facility also provides advanced exception handling
38 features like shielded and deferred exceptions. Additionally, OSSP ex
39 allows you to choose the used underlying machine context switching
40 facility and optionally support multi-threading environments by
41 allowing you to store the exception catching stack in a thread-safe
44 %description -l pl.UTF-8
45 OSSP ex to mała biblioteka do obsługi wyjątków w stylu ISO-C++
46 przeznaczona do używania w języku ISO-C. Umożliwia korzystanie z
47 paradygmatu rzucania i wyłapywania wyjątków w celi ograniczenia
48 ilości kodu obsługującego błędy bez czynienia programu uboższym.
50 Zostało to osiągnięte poprzez bezpośrednie przesyłanie wyjątkowych
51 kodów powrotu (i przepływu sterowania programu) z miejsca gdzie
52 wystąpił wyjątek (miejsca rzucenia) do miejsca jego obsługi (miejsca
53 wyłapania) - zwykle z głęboko zagnieżdżonej podprocedury do procedury
54 nadrzędnej. Pośrednie procedury nie muszą się już upewniać, że
55 wyjątkowe kody powrotu z podprocedur są poprawnie przekazywane do z
58 Ułatwienia OSSP ex dają także zaawansowane możliwości obsługi
59 wyjątków, takie jak osłaniane i opóźnione wyjątki. Ponadto OSSP ex
60 umożliwia wybór udogodnień maszyny przełączającej kontekst oraz
61 opcjonalną obsługę środowisk wielowątkowych poprzez umożliwienie
62 przechowywania stosu wyłapywania wyjątków w sposób bezpieczny dla
66 Summary: OSSP ex - Exception Handling - header files and development libraries
67 Summary(pl.UTF-8): OSSP ex - biblioteka obsługi wyjątków - pliki nagłówkowe i biblioteki dla deweloperów
68 Group: Development/Libraries
69 Requires: %{name} = %{epoch}:%{version}-%{release}
72 OSSP ex - Exception Handling - header files and development
75 %description devel -l pl.UTF-8
76 OSSP ex - biblioteka obsługi wyjątków - pliki nagłówkowe i biblioteki
80 Summary: OSSP ex - Exception Handling - static libraries
81 Summary(pl.UTF-8): OSSP ex - biblioteka obsługi wyjątków - biblioteki statyczne
82 Group: Development/Libraries
83 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
86 OSSP ex - Exception Handling - static libraries.
88 %description static -l pl.UTF-8
89 OSSP ex - biblioteka obsługi wyjątków - biblioteki statyczne.
96 mv -f aclocal.m4 acinclude.m4
102 --enable-static=%{?with_static_libs:yes}%{!?with_static_libs:no}
105 %{?with_tests:%{__make} check}
108 rm -rf $RPM_BUILD_ROOT
111 DESTDIR=$RPM_BUILD_ROOT
114 rm -rf $RPM_BUILD_ROOT
116 %post -p /sbin/ldconfig
117 %postun -p /sbin/ldconfig
120 %defattr(644,root,root,755)
121 %doc AUTHORS ChangeLog README THANKS
122 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
125 %defattr(644,root,root,755)
126 %attr(755,root,root) %{_bindir}/*
127 %attr(755,root,root) %{_libdir}/lib*.so
132 %if %{with static_libs}
134 %defattr(644,root,root,755)
135 %attr(755,root,root) %{_libdir}/lib*.a