5b068a6
Name:           wimlib
a5fb50a
Version:        1.13.2
5b068a6
Release:        1%{?dist}
5b068a6
Summary:        Open source Windows Imaging (WIM) library
5b068a6
5b068a6
# Library is dual licensed, utilities are GPLv3+, some internal headers are CC0
5b068a6
License:        (GPLv3+ or LGPLv3+) and GPLv3+ and CC0
5b068a6
URL:            https://wimlib.net/
5b068a6
Source0:        %{url}/downloads/%{name}-%{version}.tar.gz
5b068a6
5b068a6
BuildRequires:  gcc
5b068a6
BuildRequires:  pkgconfig(fuse)
5b068a6
BuildRequires:  pkgconfig(libcrypto)
5b068a6
BuildRequires:  pkgconfig(libntfs-3g)
5b068a6
BuildRequires:  pkgconfig(libxml-2.0)
5b068a6
5b068a6
%description
5b068a6
wimlib is a C library for creating, modifying, extracting, and mounting files in
5b068a6
the Windows Imaging Format (WIM files). wimlib and its command-line frontend
5b068a6
'wimlib-imagex' provide a free and cross-platform alternative to Microsoft's
5b068a6
WIMGAPI, ImageX, and DISM.
5b068a6
5b068a6
5b068a6
%package devel
5b068a6
Summary:        Development files for %{name}
5b068a6
Requires:       %{name}%{?_isa} = %{version}-%{release}
5b068a6
5b068a6
%description devel
5b068a6
The %{name}-devel package contains libraries and header files for developing
5b068a6
applications that use %{name}.
5b068a6
5b068a6
5b068a6
%package utils
5b068a6
Summary:        Tools for creating, modifying, extracting, and mounting WIM files
5b068a6
Requires:       %{name}%{?_isa} = %{version}-%{release}
5b068a6
5b068a6
%description utils
5b068a6
This package provides tools for creating, modifying, extracting, and mounting
5b068a6
files in the Windows Imaging Format (WIM files).
5b068a6
5b068a6
5b068a6
%prep
5b068a6
%autosetup
5b068a6
5b068a6
5b068a6
%build
5b068a6
%configure \
5b068a6
    --disable-silent-rules \
5b068a6
    --disable-static
5b068a6
# Remove Rpath
5b068a6
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
5b068a6
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
5b068a6
%make_build
5b068a6
5b068a6
5b068a6
%install
5b068a6
%make_install
5b068a6
find $RPM_BUILD_ROOT -name "*.la" -delete
5b068a6
5b068a6
5b068a6
%files
5b068a6
%doc NEWS README
5b068a6
%license COPYING COPYING.CC0 COPYING.GPLv3 COPYING.LGPLv3
5b068a6
%{_libdir}/*.so.15*
5b068a6
5b068a6
5b068a6
%files devel
5b068a6
%{_includedir}/*
5b068a6
%{_libdir}/*.so
5b068a6
%{_libdir}/pkgconfig/%{name}.pc
5b068a6
5b068a6
5b068a6
%files utils
5b068a6
%{_bindir}/*
5b068a6
%{_mandir}/man1/*.1.*
5b068a6
5b068a6
5b068a6
%changelog
a5fb50a
* Mon May 25 2020 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.13.2-1
a5fb50a
- Update to 1.13.2
a5fb50a
5b068a6
* Mon Aug 26 2019 Mohamed El Morabity <melmorabity@fedoraproject.org> - 1.13.1-1
5b068a6
- Initial RPM release