commit 5cded373b722655b9fd66cb24c978c898ce006e0
Author: Jan Palus <[email protected]>
Date:   Fri May 31 19:26:39 2024 +0200

    add static_libs bcond

 libevdev.spec | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/libevdev.spec b/libevdev.spec
index 494596f..5250944 100644
--- a/libevdev.spec
+++ b/libevdev.spec
@@ -1,6 +1,7 @@
 #
 # Conditional build:
 %bcond_without apidocs         # Doxygen based API documentation
+%bcond_without static_libs     # static library
 
 Summary:       Handler library for evdev events
 Summary(pl.UTF-8):     Biblioteka obsługująca zdarzenia evdev
@@ -72,7 +73,8 @@ Dokumentacja API biblioteki libevdev.
 %build
 %configure \
        PYTHON=%{__python3} \
-       --disable-silent-rules
+       --disable-silent-rules \
+       %{__enable_disable static_libs static}
 
 %{__make}
 
@@ -111,9 +113,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_pkgconfigdir}/libevdev.pc
 %{_mandir}/man3/libevdev.3*
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libevdev.a
+%endif
 
 %if %{with apidocs}
 %files apidocs
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libevdev.git/commitdiff/5cded373b722655b9fd66cb24c978c898ce006e0

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to