From 62894a6c48560cb567ab384b62934ec1854c791d Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Tue, 14 May 2013 23:21:22 -0500 Subject: [PATCH] Update spec files; use separate wimtools package --- rpm/wimlib-without-fuse-or-ntfs-3g.spec | 78 +++++++++++++++++++++++++ rpm/wimlib.spec | 51 ++++++++++------ 2 files changed, 110 insertions(+), 19 deletions(-) create mode 100644 rpm/wimlib-without-fuse-or-ntfs-3g.spec diff --git a/rpm/wimlib-without-fuse-or-ntfs-3g.spec b/rpm/wimlib-without-fuse-or-ntfs-3g.spec new file mode 100644 index 00000000..a87428d4 --- /dev/null +++ b/rpm/wimlib-without-fuse-or-ntfs-3g.spec @@ -0,0 +1,78 @@ +Summary: Library to extract, create, modify, and mount WIM files +Name: wimlib +Version: 1.4.0 +Release: 1 +License: GPLv3+ +Group: System/Libraries +URL: http://sourceforge.net/projects/wimlib +Packager: Eric Biggers +Source: http://downloads.sourceforge.net/wimlib/wimlib-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root + +Requires: libxml2, openssl +BuildRequires: libxml2-devel, openssl-devel +%description +wimlib is a C library for creating, extracting, modifying, and mounting files in +the Windows Imaging Format (WIM files). It is similar to Microsoft's WIMGAPI +but is designed for both UNIX and Windows. + +%package devel +Summary: Development files for wimlib +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +%description devel +Development files for wimlib + +%package -n wimtools +Summary: Tools to create, extract, modify, and mount WIM files +Group: Applications/System +Requires: %{name} = %{version}-%{release} +%description -n wimtools +Tools to create, extract, modify, 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 package contains a free implementation of ImageX called +"wimlib-imagex" that is designed to work on both UNIX and Windows. + +%prep +%setup -q -n %{name}-%{version} + +%build +%configure --prefix=/usr \ + --disable-rpath \ + --with-libcrypto \ + --without-ntfs-3g \ + --without-fuse \ + --disable-xattr +make %{?_smp_mflags} + +%check +make check + +%install +rm -rf %{buildroot} +make DESTDIR=%{buildroot} install + +%clean +rm -rf %{buildroot} + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-, root, root) +%doc AUTHORS COPYING README +%{_libdir}/libwim.so.* + +%files -n wimtools +%defattr(-, root, root) +%{_bindir}/wimlib-imagex +%{_bindir}/mkwinpeimg +%doc %{_mandir}/man1/*.1.gz + +%files devel +%defattr(-, root, root) +%{_libdir}/libwim.a +%{_libdir}/libwim.so +%exclude %{_libdir}/libwim.la +%{_includedir}/wimlib.h +%{_libdir}/pkgconfig/wimlib.pc diff --git a/rpm/wimlib.spec b/rpm/wimlib.spec index 26eddafc..eb67a48f 100644 --- a/rpm/wimlib.spec +++ b/rpm/wimlib.spec @@ -1,10 +1,10 @@ -Summary: Library to extract, create, and modify WIM files +Summary: Library to extract, create, modify, and mount WIM files Name: wimlib Version: 1.4.0 Release: 1 License: GPLv3+ Group: System/Libraries -URL: http://wimlib.sourceforge.net +URL: http://sourceforge.net/projects/wimlib Packager: Eric Biggers Source: http://downloads.sourceforge.net/wimlib/wimlib-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root @@ -14,11 +14,9 @@ Requires: ntfs-3g >= 2:2011.4.12 BuildRequires: libxml2-devel, fuse, fuse-devel, openssl-devel, libattr-devel BuildRequires: ntfs-3g-devel >= 2:2011.4.12, ntfsprogs %description -wimlib is a library that can be used to create, extract, and modify files in the -Windows Imaging Format. These files are normally created by the 'imagex.exe' -program on Windows, but this library provides a free implementation of 'imagex' -for UNIX-based systems. wimlib supports mounting WIM files, just like -imagex.exe. +wimlib is a C library for creating, extracting, modifying, and mounting files in +the Windows Imaging Format (WIM files). It is similar to Microsoft's WIMGAPI +but is designed for both UNIX and Windows. %package devel Summary: Development files for wimlib @@ -27,41 +25,56 @@ Requires: %{name} = %{version}-%{release} %description devel Development files for wimlib +%package -n wimtools +Summary: Tools to create, extract, modify, and mount WIM files +Group: Applications/System +Requires: %{name} = %{version}-%{release} +%description -n wimtools +Tools to create, extract, modify, 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 package contains a free implementation of ImageX called +"wimlib-imagex" that is designed to work on both UNIX and Windows. + %prep %setup -q -n %{name}-%{version} %build -%configure --prefix=/usr \ - --disable-rpath \ - --with-libcrypto \ - --with-ntfs-3g \ +%configure --prefix=/usr \ + --disable-rpath \ + --with-libcrypto \ + --with-ntfs-3g \ + --with-fuse \ --enable-xattr -%__make %{?_smp_mflags} +make %{?_smp_mflags} %check make check %install -%__rm -rf %{buildroot} -%__make DESTDIR=%{buildroot} install +rm -rf %{buildroot} +make DESTDIR=%{buildroot} install %clean -%__rm -rf %{buildroot} +rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-, root, root) -%doc AUTHORS COPYING README TODO -%{_bindir}/imagex +%doc AUTHORS COPYING README +%{_libdir}/libwim.so.* + +%files -n wimtools +%defattr(-, root, root) +%{_bindir}/wimlib-imagex %{_bindir}/mkwinpeimg -%{_libdir}/libwim.so* %doc %{_mandir}/man1/*.1.gz %files devel %defattr(-, root, root) %{_libdir}/libwim.a -%{_libdir}/libwim.la +%{_libdir}/libwim.so +%exclude %{_libdir}/libwim.la %{_includedir}/wimlib.h %{_libdir}/pkgconfig/wimlib.pc -- 2.43.0