Changed files:
file.spec -> 1.105
#
# Conditional build:
%bcond_without python # don't build python-magic module
+%bcond_without static_libs # don't build static libraries
#
Summary: A utility for determining file types
Summary(cs): Program pro zji¹»ování typu souborù
%{__autoconf}
%{__automake}
%configure \
- --enable-fsect-man5
+ --enable-fsect-man5 \
+ %{!?with_static_libs:--enable-static=no}
%{__make}
python setup.py install \
--root=$RPM_BUILD_ROOT \
--optimize=2
-cd ..
+cd ..
%endif
install -D magic/magic.local $RPM_BUILD_ROOT%{_sysconfdir}/magic
%{_includedir}/magic.h
%{_mandir}/man3/*
+%if %{with static_libs}
%files -n libmagic-static
%defattr(644,root,root,755)
%{_libdir}/lib*.a
+%endif
%if %{with python}
%files -n python-magic