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