3 %bcond_without static_libs # don't build static libraries
5 %define tarballname str
7 Summary: OSSP str - string handling library
8 Summary(pl.UTF-8): OSSP str - biblioteka do obsługi łańcuchów znaków
12 License: distributable (see README)
14 Source0: ftp://ftp.ossp.org/pkg/lib/str/%{tarballname}-%{version}.tar.gz
15 # Source0-md5: 3f6da8a6ae6662eedf481f11a65592b2
16 Patch0: %{name}-DESTDIR.patch
17 URL: http://www.ossp.org/pkg/lib/str/
18 BuildRequires: autoconf
19 BuildRequires: automake
20 BuildRequires: libtool
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 OSSP str is a generic string library written in ISO-C which provides
25 functions for handling, matching, parsing, searching and formatting of
26 ISO-C strings. So it can be considered as a superset of POSIX
27 string(3), but its main intention is to provide a more convenient and
28 compact API plus a more generalized functionality.
30 %description -l pl.UTF-8
31 OSSP str to ogólna biblioteka do łańcuchów znaków napisana w ISO-C,
32 dostarczająca funkcje do obsługi, przetwarzania, przeszukiwania i
33 formatowania łańcuchów znaków ISO-C. Może być uznawana za nadzbiór
34 string(3) wg POSIX, ale głównym zamiarem jest dostarczenie bardziej
35 wygodnego i zwartego API oraz ogólniejszej funkcjonalności.
38 Summary: OSSP str - header files and development libraries
39 Summary(pl.UTF-8): OSSP str - pliki nagłówkowe i biblioteki programistyczne
40 Group: Development/Libraries
41 Requires: %{name} = %{version}-%{release}
44 OSSP str - header files and development libraries.
46 %description devel -l pl.UTF-8
47 OSSP str - pliki nagłówkowe i biblioteki programistyczne.
50 Summary: OSSP str - string handling library - static libraries
51 Summary(pl.UTF-8): OSSP str - biblioteka do obsługi łańcuchów znaków - biblioteki statyczne
52 Group: Development/Libraries
53 Requires: %{name}-devel = %{version}-%{release}
56 OSSP str - string handling library - static libraries.
58 %description static -l pl.UTF-8
59 OSSP str - biblioteka do obsługi łańcuchów znaków - biblioteki
63 %setup -q -n %{tarballname}-%{version}
67 mv -f aclocal.m4 acinclude.m4
72 %{!?with_static_libs:--enable-static=no}
76 rm -rf $RPM_BUILD_ROOT
79 DESTDIR=$RPM_BUILD_ROOT
82 rm -rf $RPM_BUILD_ROOT
84 %post -p /sbin/ldconfig
85 %postun -p /sbin/ldconfig
88 %defattr(644,root,root,755)
89 %doc AUTHORS ChangeLog LICENSE README THANKS TODO
90 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
93 %defattr(644,root,root,755)
94 %attr(755,root,root) %{_bindir}/*
95 %attr(755,root,root) %{_libdir}/lib*.so
102 %defattr(644,root,root,755)
103 %attr(755,root,root) %{_libdir}/lib*.a