3 %bcond_without static_libs # static library
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
13 #Source0Download: https://github.com/fragglet/c-algorithms/releases
14 #Source0: https://github.com/fragglet/c-algorithms/releases/download/c-algorithms-%{version}/%{name}-%{version}.tar.gz
15 Source0: https://downloads.sourceforge.net/c-algorithms/%{name}-%{version}.tar.gz
16 # Source0-md5: d104d55ee9c97a2766b0850b44b6e85f
17 URL: https://github.com/fragglet/c-algorithms
18 BuildRequires: autoconf >= 2.50
19 BuildRequires: automake
20 BuildRequires: libtool
21 BuildRequires: rpm-build >= 4.6
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Collection of common Computer Science data structures and algorithms
26 which may be used in C projects.
28 %description -l pl.UTF-8
29 Zbiór popularnych struktur danych i algorytmów informatycznych, które
30 można wykorzystywać w projektach w C.
33 Summary: Header files for c-algorithms library
34 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki c-algorithms
35 Group: Development/Libraries
36 Requires: %{name} = %{version}-%{release}
39 Header files for c-algorithms library.
41 %description devel -l pl.UTF-8
42 Pliki nagłówkowe biblioteki c-algorithms.
45 Summary: Static c-algorithms library
46 Summary(pl.UTF-8): Statyczna biblioteka c-algorithms
47 Group: Development/Libraries
48 Requires: %{name}-devel = %{version}-%{release}
51 Static c-algorithms library.
53 %description static -l pl.UTF-8
54 Statyczna biblioteka c-algorithms.
57 Summary: API documentation for c-algorithms library
58 Summary(pl.UTF-8): Dokumentacja API biblioteki c-algorithms
63 API documentation for c-algorithms library.
65 %description apidocs -l pl.UTF-8
66 Dokumentacja API biblioteki c-algorithms.
78 --enable-static%{!?with_static_libs:=no}
82 rm -rf $RPM_BUILD_ROOT
85 DESTDIR=$RPM_BUILD_ROOT
87 # obsoleted by pkg-config
88 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcalg.la
91 rm -rf $RPM_BUILD_ROOT
93 %post -p /sbin/ldconfig
94 %postun -p /sbin/ldconfig
97 %defattr(644,root,root,755)
98 %doc AUTHORS COPYING ChangeLog NEWS README
99 %attr(755,root,root) %{_libdir}/libcalg.so.*.*.*
100 %attr(755,root,root) %ghost %{_libdir}/libcalg.so.0
103 %defattr(644,root,root,755)
104 %attr(755,root,root) %{_libdir}/libcalg.so
105 %{_includedir}/libcalg-1.0
106 %{_pkgconfigdir}/libcalg-1.0.pc
108 %if %{with static_libs}
110 %defattr(644,root,root,755)
115 %defattr(644,root,root,755)
116 %doc doc/html/*.{css,html,png}