3 %bcond_without static_libs # don't build static libraries
5 Summary: Common Computer Science data structures and algorithms to use in C projects
6 Summary(pl.UTF-8): Popularne struktury danych i algorytmy informatyczne do używania w programach w C
12 Source0: http://dl.sourceforge.net/c-algorithms/%{name}-%{version}.tar.gz
13 # Source0-md5: 3435f8705ff83360b48bfba61decdb7a
14 URL: http://c-algorithms.sourceforge.net/
15 BuildRequires: autoconf
16 BuildRequires: automake
17 BuildRequires: libtool
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Collection of common Computer Science data structures and algorithms
22 which may be used in C projects.
24 %description -l pl.UTF-8
25 Zbiór popularnych struktur danych i algorytmów informatycznych, które
26 można wykorzystywać w projektach w C.
29 Summary: Header files for c-algorithms library
30 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki c-algorithms
31 Group: Development/Libraries
32 Requires: %{name} = %{version}-%{release}
35 Header files for c-algorithms library.
37 %description devel -l pl.UTF-8
38 Pliki nagłówkowe biblioteki c-algorithms.
41 Summary: Static c-algorithms library
42 Summary(pl.UTF-8): Statyczna biblioteka c-algorithms
43 Group: Development/Libraries
44 Requires: %{name}-devel = %{version}-%{release}
47 Static c-algorithms library.
49 %description static -l pl.UTF-8
50 Statyczna biblioteka c-algorithms.
62 --enable-static=%{?with_static_libs:yes}%{!?with_static_libs:no}
66 rm -rf $RPM_BUILD_ROOT
69 DESTDIR=$RPM_BUILD_ROOT
72 rm -rf $RPM_BUILD_ROOT
74 %post -p /sbin/ldconfig
75 %postun -p /sbin/ldconfig
78 %defattr(644,root,root,755)
79 %doc AUTHORS ChangeLog NEWS README
80 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
83 %defattr(644,root,root,755)
85 %attr(755,root,root) %{_libdir}/lib*.so
87 %{_includedir}/libcalg-1.0
90 %if %{with static_libs}
92 %defattr(644,root,root,755)