]> git.pld-linux.org Git - packages/wimlib.git/blobdiff - wimlib.spec
add static_libs bcond
[packages/wimlib.git] / wimlib.spec
index 85e4e1dfca54a8a1e19d572bab642c55d4a28bb0..615e9c404b2c006debe187be8de2540ad31e795b 100644 (file)
@@ -1,18 +1,20 @@
 # Conditional build:
 %bcond_without ntfs_3g         # build without ntfs-3g (avoid GPLv2 dependency)
+%bcond_without static_libs     # static library
 
 Summary:       Open source Windows Imaging (WIM) library
 Name:          wimlib
-Version:       1.14.2
+Version:       1.14.4
 Release:       1
 License:       GPL v3+ or LGPL v3+
 Group:         Libraries
 Source0:       https://wimlib.net/downloads/%{name}-%{version}.tar.gz
-# Source0-md5: 278a0fef8e5634f0b597f3d963d5d78c
+# Source0-md5: 6a54e53d20d524d139e5f60e4604b1a3
 URL:           https://wimlib.net/
 BuildRequires: libfuse3-devel
 %{?with_ntfs_3g:BuildRequires: ntfs-3g-devel >= 1:2011.4.12}
 BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.527
 Requires:      libfuse3-tools
 %{?with_ntfs_3g:Requires:      ntfs-3g-libs >= 1:2011.4.12}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -61,6 +63,7 @@ Tools for creating, modifying, extracting, and mounting WIM files.
 %build
 %configure \
        --disable-silent-rules \
+       %{__enable_disable static_libs static} \
        %{!?with_ntfs_3g:--without-ntfs-3g}
 %{__make}
 
@@ -90,9 +93,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/wimlib.h
 %{_pkgconfigdir}/wimlib.pc
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libwim.a
+%endif
 
 %files tools
 %defattr(644,root,root,755)
This page took 0.089966 seconds and 4 git commands to generate.