3 %bcond_without static_libs # don't build static libraries
5 Summary: Collection of common Computer Science data structures and algorithms which may be used in C projects
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.
27 Summary: Header files for c-algorithms library
28 Summary(pl): Pliki nag³ówkowe biblioteki c-algorithms
29 Group: Development/Libraries
30 Requires: %{name} = %{version}-%{release}
34 Header files for c-algorithms library.
36 %description devel -l pl
37 Pliki nag³ówkowe biblioteki c-algorithms.
40 Summary: Static c-algorithms library
41 Summary(pl): Statyczna biblioteka c-algorithms
42 Group: Development/Libraries
43 Requires: %{name}-devel = %{version}-%{release}
46 Static c-algorithms library.
48 %description static -l pl
49 Statyczna biblioteka c-algorithms.
61 --enable-static=%{?with_static_libs:yes}%{!?with_static_libs:no}
65 rm -rf $RPM_BUILD_ROOT
68 DESTDIR=$RPM_BUILD_ROOT
71 rm -rf $RPM_BUILD_ROOT
73 %post -p /sbin/ldconfig
74 %postun -p /sbin/ldconfig
77 %defattr(644,root,root,755)
78 %doc AUTHORS ChangeLog NEWS README
79 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
82 %defattr(644,root,root,755)
84 %attr(755,root,root) %{_libdir}/lib*.so
86 %{_includedir}/libcalg-1.0
89 %if %{with static_libs}
91 %defattr(644,root,root,755)