Great! Were you using the spec file in the "rpm" directory distributed with wimlib, though? I haven't actually updated that since a couple versions ago. Now, support for libntfs-3g and xattrs should be either explicitly enabled or disabled as well, and each has a corresponding dependency if enabled. I'll try to fix this up today and push it to the git repo.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
At the second attempt I arrived at the spec file at the end of this post. I needed to remove the verification checks which were throwing an error when appling install.win (from windows 8 preview iso) to a usb stick.
The application to the usb when perfectly with wimlib - great project!
%description
This is wimlib version 1.0.3 (September 2012). wimlib can be used to read,
write, and mount files in the Windows Imaging Format (WIM files). These
files are normally created by using the `imagex.exe' utility on Windows,
but this library provides a free implementation of imagex for UNIX-based
systems.
%package devel
Summary: Development files for wimlib
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
I've been working on some minor updates to the library and have just released a new tarball (wimlib-1.0.4.tar.gz). The rpm directory contains a new spec file partly based on yours.
I'm not quite sure what you mean by removing verification checks. Are you talking about the --disable-verify-compression option? If there really was an error regarding compressed data not decompressing to the original data, that's a serious problem. But you said you were applying a WIM image, which doesn't involve compression. Either way, if you find something that seems to be a bug, please let me know!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
wimlib 1.0.3 builds perfectly on fedora 16 - I had to add the following line to the %install section of the spec file...
chrpath --delete %{buildroot}%{_bindir}/imagex
Great! Were you using the spec file in the "rpm" directory distributed with wimlib, though? I haven't actually updated that since a couple versions ago. Now, support for libntfs-3g and xattrs should be either explicitly enabled or disabled as well, and each has a corresponding dependency if enabled. I'll try to fix this up today and push it to the git repo.
At the second attempt I arrived at the spec file at the end of this post. I needed to remove the verification checks which were throwing an error when appling install.win (from windows 8 preview iso) to a usb stick.
The application to the usb when perfectly with wimlib - great project!
%global vendor sl
Name: wimlib
Version: 1.0.3
Release: 1.%{vendor}%{?dist}
Summary: A library to read, write, and mount files in the Windows Imaging Format
License: GPLv2+
Group: System/Libraries
URL: http://heanet.dl.sourceforge.net/project/wimlib/
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: libxml2-devel
BuildRequires: fuse-devel
BuildRequires: ntfs-3g-devel
BuildRequires: mtools
BuildRequires: syslinux-devel
BuildRequires: cabextract
BuildRequires: openssl-devel
BuildRequires: libattr-devel
Requires: libxml2
Requires: fuse-libs
Requires: openssl
%description
This is wimlib version 1.0.3 (September 2012). wimlib can be used to read,
write, and mount files in the Windows Imaging Format (WIM files). These
files are normally created by using the `imagex.exe' utility on Windows,
but this library provides a free implementation of imagex for UNIX-based
systems.
%package devel
Summary: Development files for wimlib
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
Development files for wimlib
%prep
%setup -q -n %{name}-%{version}
%build
%configure --disable-verify-compression --with-libcrypto
%__make %{?_smp_mflags}
%install
%__rm -rf %{buildroot}
%__make DESTDIR=%{buildroot} install
chrpath --delete %{buildroot}%{_bindir}/imagex
%clean
%__rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING INSTALL README TODO
/usr/bin/imagex
%{_bindir}/mkwinpeimg
%{_libdir}/libwim.so
%{_libdir}/libwim.so.0
%{_libdir}/libwim.so.0.0.0
%{_mandir}/man1/imagex-append.1.gz
%{_mandir}/man1/imagex-apply.1.gz
%{_mandir}/man1/imagex-capture.1.gz
%{_mandir}/man1/imagex-delete.1.gz
%{_mandir}/man1/imagex-dir.1.gz
%{_mandir}/man1/imagex-export.1.gz
%{_mandir}/man1/imagex-info.1.gz
%{_mandir}/man1/imagex-join.1.gz
%{_mandir}/man1/imagex-mount.1.gz
%{_mandir}/man1/imagex-mountrw.1.gz
%{_mandir}/man1/imagex-split.1.gz
%{_mandir}/man1/imagex-unmount.1.gz
%{_mandir}/man1/imagex.1.gz
%{_mandir}/man1/mkwinpeimg.1.gz
%files devel
%defattr(-,root,root,-)
%{_libdir}/libwim.a
%{_libdir}/libwim.la
%{_includedir}/wimlib.h
%{_libdir}/pkgconfig/wimlib.pc
%changelog
Sat Oct 20 2012 xxxxxxxx - 1.0.3-1.sl
- Remove verification checks Sat Oct 20 2012 xxxxxxxx - 1.0.3-0.sl
- Initial build
Last edit: Simon Lewis 2012-10-21
Hi,
I've been working on some minor updates to the library and have just released a new tarball (wimlib-1.0.4.tar.gz). The rpm directory contains a new spec file partly based on yours.
I'm not quite sure what you mean by removing verification checks. Are you talking about the --disable-verify-compression option? If there really was an error regarding compressed data not decompressing to the original data, that's a serious problem. But you said you were applying a WIM image, which doesn't involve compression. Either way, if you find something that seems to be a bug, please let me know!