7abf1578cb5c44bc8dfb88adc5542d2ec237da82
[wimlib] / rpm / wimlib.spec.in
1 Summary:   Library to extract, create, and modify WIM files
2 Name:      wimlib
3 Version:   @VERSION@
4 Release:   1
5 License:   GPLv3+
6 Group:     System Environment/Libraries
7 URL:       http://wimlib.sourceforge.net
8 Packager:  Eric Biggers <ebiggers3@gmail.com>
9 Source:    http://downloads.sourceforge.net/wimlib/wimlib-%{version}.tar.gz
10 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
11
12 Requires: libxml2, fuse-libs, openssl
13 Requires: fuse-ntfs-3g >= 2:2011.4.12
14 BuildRequires: libxml2-devel fuse-devel openssl-devel
15 BuildRequires: ntfsprogs-devel >= 2:2011.4.12, libattr-devel
16 %description
17 wimlib is a library that can be used to create, extract, and modify files in the
18 Windows Imaging Format. These files are normally created by the 'imagex.exe'
19 program on Windows, but this library provides a free implementation of 'imagex'
20 for UNIX-based systems. wimlib supports mounting WIM files, just like
21 imagex.exe.
22
23 %package devel
24 Summary:  Development files for wimlib
25 Group:    Development/Libraries
26 Requires: %{name} = %{version}-%{release}
27 %description devel
28 Development files for wimlib
29
30 %prep
31 %setup -q
32
33 %build
34 ./configure --prefix=/usr                 \
35             --disable-rpath               \
36             --with-libcrypto              \
37             --with-ntfs-3g                \
38             --enable-xattr                \
39             --disable-verify-compression
40 make
41
42 %check
43 make check
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 %makeinstall
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %post -p /sbin/ldconfig
53 %postun -p /sbin/ldconfig
54
55 %files
56 %defattr(-, root, root)
57 %doc README COPYING
58 %{_bindir}/imagex
59 %{_bindir}/mkwinpeimg
60 %{_libdir}/libwim.so*
61 %doc %{_mandir}/man1/*.1.gz
62
63 %files devel
64 %defattr(-, root, root)
65 %{_libdir}/*.a
66 %{_libdir}/*.la
67 %{_includedir}/*.h
68 %{_libdir}/pkgconfig/wimlib.pc