summaryrefslogtreecommitdiff
path: root/openobex.spec
diff options
context:
space:
mode:
Diffstat (limited to 'openobex.spec')
-rw-r--r--openobex.spec7
1 files changed, 6 insertions, 1 deletions
diff --git a/openobex.spec b/openobex.spec
index 82fd045..c16113e 100644
--- a/openobex.spec
+++ b/openobex.spec
@@ -1,3 +1,4 @@
+%bcond_without static # don't build static library
Summary: Library for using OBEX
Summary(es): Biblioteca para usar OBEX
Summary(pl): Biblioteka do obsługi protokołu OBEX
@@ -84,7 +85,9 @@ biblioteki Open OBEX.
%{__libtoolize}
%{__aclocal}
%{__autoconf}
-%configure
+%{__automake}
+%configure \
+ %{!?with_static:--disable-static}
%{__make}
@@ -114,6 +117,8 @@ rm -rf $RPM_BUILD_ROOT
%{_includedir}/*
%{_aclocaldir}/*
+%if %{with static}
%files static
%defattr(644,root,root,755)
%{_libdir}/lib*.a
+%endif