]> git.pld-linux.org Git - packages/wimlib.git/blame - wimlib.spec
ntfs-3g rebuild
[packages/wimlib.git] / wimlib.spec
CommitLineData
ab8ce3a1
JP
1# Conditional build:
2%bcond_without ntfs_3g # build without ntfs-3g (avoid GPLv2 dependency)
3
1b7fed55
JP
4Summary: Open source Windows Imaging (WIM) library
5Name: wimlib
7c29998a 6Version: 1.13.5
f0087cc0 7Release: 2
b6cb5e40 8License: GPL v3+ or LGPL v3+
1b7fed55
JP
9Group: Libraries
10Source0: https://wimlib.net/downloads/%{name}-%{version}.tar.gz
7c29998a 11# Source0-md5: ac4049981a2f887e46cb877895146fa2
1b7fed55
JP
12URL: https://wimlib.net/
13BuildRequires: libfuse-devel
14BuildRequires: libxml2-devel
ab8ce3a1 15%{?with_ntfs_3g:BuildRequires: ntfs-3g-devel >= 1:2011.4.12}
1b7fed55
JP
16BuildRequires: openssl-devel
17BuildRequires: pkgconfig
18Requires: libfuse-tools
ab8ce3a1 19%{?with_ntfs_3g:Requires: ntfs-3g-libs >= 1:2011.4.12}
1b7fed55
JP
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
23wimlib is an open source, cross-platform library for creating,
24extracting, and modifying Windows Imaging (WIM) archives. WIM is a
25file archiving format, somewhat comparable to ZIP (and many other file
26archiving formats); but unlike ZIP, it allows storing various
27Windows-specific metadata, allows storing multiple "images" in a
28single archive, automatically deduplicates all file contents, and
29supports optional solid compression to get a better compression ratio.
30wimlib and its command-line frontend wimlib-imagex provide a free and
31cross-platform alternative to Microsoft's WIMGAPI, ImageX, and DISM.
32
33%package devel
34Summary: Development files for wimlib
35Group: Development/Libraries
36Requires: %{name} = %{version}-%{release}
37
38%description devel
39Development files for wimlib.
40
41%package static
42Summary: Static wimlib library
43Group: Development/Libraries
44Requires: %{name}-devel = %{version}-%{release}
45
46%description static
47Static wimlib library.
48
49%package tools
50Summary: Tools for creating, modifying, extracting, and mounting WIM files
51Group: Applications/System
52Requires: %{name} = %{version}-%{release}
bbedeecf 53Suggests: mkisofs
1b7fed55
JP
54
55%description tools
56Tools for creating, modifying, extracting, and mounting WIM files.
57
58%prep
59%setup -q
60
61%{__sed} -i -e '1s,/usr/bin/env bash,%{__bash},' programs/mkwinpeimg.in
62
63%build
64%configure \
ab8ce3a1
JP
65 --disable-silent-rules \
66 %{!?with_ntfs_3g:--without-ntfs-3g}
1b7fed55
JP
67%{__make}
68
69%install
70rm -rf $RPM_BUILD_ROOT
71
72%{__make} install \
73 DESTDIR=$RPM_BUILD_ROOT
74
75%{__rm} $RPM_BUILD_ROOT%{_libdir}/libwim.la
76
77%clean
78rm -rf $RPM_BUILD_ROOT
79
80%post -p /sbin/ldconfig
81%postun -p /sbin/ldconfig
82
83%files
84%defattr(644,root,root,755)
85%doc COPYING NEWS README
86%attr(755,root,root) %{_libdir}/libwim.so.*.*.*
87%attr(755,root,root) %ghost %{_libdir}/libwim.so.15
88
89%files devel
90%defattr(644,root,root,755)
91%attr(755,root,root) %{_libdir}/libwim.so
92%{_includedir}/wimlib.h
93%{_pkgconfigdir}/wimlib.pc
94
95%files static
96%defattr(644,root,root,755)
97%{_libdir}/libwim.a
98
99%files tools
100%defattr(644,root,root,755)
101%attr(755,root,root) %{_bindir}/mkwinpeimg
102%attr(755,root,root) %{_bindir}/wimappend
103%attr(755,root,root) %{_bindir}/wimapply
104%attr(755,root,root) %{_bindir}/wimcapture
105%attr(755,root,root) %{_bindir}/wimdelete
106%attr(755,root,root) %{_bindir}/wimdir
107%attr(755,root,root) %{_bindir}/wimexport
108%attr(755,root,root) %{_bindir}/wimextract
109%attr(755,root,root) %{_bindir}/wiminfo
110%attr(755,root,root) %{_bindir}/wimjoin
111%attr(755,root,root) %{_bindir}/wimlib-imagex
112%attr(755,root,root) %{_bindir}/wimmount
113%attr(755,root,root) %{_bindir}/wimmountrw
114%attr(755,root,root) %{_bindir}/wimoptimize
115%attr(755,root,root) %{_bindir}/wimsplit
116%attr(755,root,root) %{_bindir}/wimunmount
117%attr(755,root,root) %{_bindir}/wimupdate
118%attr(755,root,root) %{_bindir}/wimverify
119%{_mandir}/man1/mkwinpeimg.1*
120%{_mandir}/man1/wimappend.1*
121%{_mandir}/man1/wimapply.1*
122%{_mandir}/man1/wimcapture.1*
123%{_mandir}/man1/wimdelete.1*
124%{_mandir}/man1/wimdir.1*
125%{_mandir}/man1/wimexport.1*
126%{_mandir}/man1/wimextract.1*
127%{_mandir}/man1/wiminfo.1*
128%{_mandir}/man1/wimjoin.1*
129%{_mandir}/man1/wimlib-imagex-append.1*
130%{_mandir}/man1/wimlib-imagex-apply.1*
131%{_mandir}/man1/wimlib-imagex-capture.1*
132%{_mandir}/man1/wimlib-imagex-delete.1*
133%{_mandir}/man1/wimlib-imagex-dir.1*
134%{_mandir}/man1/wimlib-imagex-export.1*
135%{_mandir}/man1/wimlib-imagex-extract.1*
136%{_mandir}/man1/wimlib-imagex-info.1*
137%{_mandir}/man1/wimlib-imagex-join.1*
138%{_mandir}/man1/wimlib-imagex-mount.1*
139%{_mandir}/man1/wimlib-imagex-mountrw.1*
140%{_mandir}/man1/wimlib-imagex-optimize.1*
141%{_mandir}/man1/wimlib-imagex-split.1*
142%{_mandir}/man1/wimlib-imagex-unmount.1*
143%{_mandir}/man1/wimlib-imagex-update.1*
144%{_mandir}/man1/wimlib-imagex-verify.1*
145%{_mandir}/man1/wimlib-imagex.1*
146%{_mandir}/man1/wimmount.1*
147%{_mandir}/man1/wimmountrw.1*
148%{_mandir}/man1/wimoptimize.1*
149%{_mandir}/man1/wimsplit.1*
150%{_mandir}/man1/wimunmount.1*
151%{_mandir}/man1/wimupdate.1*
152%{_mandir}/man1/wimverify.1*
This page took 0.165222 seconds and 4 git commands to generate.