1Name: libqcow
2Version: @VERSION@
3Release: 1
4Summary: Library to access the QEMU Copy-On-Write (QCOW) image file format
5Group: System Environment/Libraries
6License: LGPLv3+
7Source: %{name}-%{version}.tar.gz
8URL: https://github.com/libyal/libqcow
9BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
10@libqcow_spec_requires@ @ax_libbfio_spec_requires@ @ax_libcaes_spec_requires@ @ax_libcdata_spec_requires@ @ax_libcerror_spec_requires@ @ax_libcfile_spec_requires@ @ax_libclocale_spec_requires@ @ax_libcnotify_spec_requires@ @ax_libcpath_spec_requires@ @ax_libcrypto_spec_requires@ @ax_libcsplit_spec_requires@ @ax_libcthreads_spec_requires@ @ax_libfcache_spec_requires@ @ax_libfdata_spec_requires@ @ax_libuna_spec_requires@ @ax_zlib_spec_requires@
11BuildRequires: gcc @ax_libbfio_spec_build_requires@ @ax_libcaes_spec_build_requires@ @ax_libcdata_spec_build_requires@ @ax_libcerror_spec_build_requires@ @ax_libcfile_spec_build_requires@ @ax_libclocale_spec_build_requires@ @ax_libcnotify_spec_build_requires@ @ax_libcpath_spec_build_requires@ @ax_libcrypto_spec_build_requires@ @ax_libcsplit_spec_build_requires@ @ax_libcthreads_spec_build_requires@ @ax_libfcache_spec_build_requires@ @ax_libfdata_spec_build_requires@ @ax_libuna_spec_build_requires@ @ax_zlib_spec_build_requires@
12
13%description -n libqcow
14Library to access the QEMU Copy-On-Write (QCOW) image file format
15
16%package -n libqcow-static
17Summary: Library to access the QEMU Copy-On-Write (QCOW) image file format
18Group: Development/Libraries
19Requires: libqcow = %{version}-%{release}
20
21%description -n libqcow-static
22Static library version of libqcow.
23
24%package -n libqcow-devel
25Summary: Header files and libraries for developing applications for libqcow
26Group: Development/Libraries
27Requires: libqcow = %{version}-%{release}
28
29%description -n libqcow-devel
30Header files and libraries for developing applications for libqcow.
31
32%package -n libqcow-python2
33Obsoletes: libqcow-python < %{version}
34Provides: libqcow-python = %{version}
35Summary: Python 2 bindings for libqcow
36Group: System Environment/Libraries
37Requires: libqcow = %{version}-%{release} python2
38BuildRequires: python2-devel
39
40%description -n libqcow-python2
41Python 2 bindings for libqcow
42
43%package -n libqcow-python3
44Summary: Python 3 bindings for libqcow
45Group: System Environment/Libraries
46Requires: libqcow = %{version}-%{release} python3
47BuildRequires: python3-devel
48
49%description -n libqcow-python3
50Python 3 bindings for libqcow
51
52%package -n libqcow-tools
53Summary: Several tools for reading QEMU Copy-On-Write (QCOW) image files
54Group: Applications/System
55Requires: libqcow = %{version}-%{release} @ax_libfuse_spec_requires@
56@libqcow_spec_tools_build_requires@ @ax_libfuse_spec_build_requires@
57
58%description -n libqcow-tools
59Several tools for reading QEMU Copy-On-Write (QCOW) image files
60
61%prep
62%setup -q
63
64%build
65%configure --prefix=/usr --libdir=%{_libdir} --mandir=%{_mandir} --enable-python2 --enable-python3
66make %{?_smp_mflags}
67
68%install
69rm -rf %{buildroot}
70%make_install
71
72%clean
73rm -rf %{buildroot}
74
75%post -p /sbin/ldconfig
76
77%postun -p /sbin/ldconfig
78
79%files -n libqcow
80%defattr(644,root,root,755)
81%license COPYING COPYING.LESSER
82%doc AUTHORS README
83%attr(755,root,root) %{_libdir}/*.so.*
84
85%files -n libqcow-static
86%defattr(644,root,root,755)
87%license COPYING COPYING.LESSER
88%doc AUTHORS README
89%attr(755,root,root) %{_libdir}/*.a
90
91%files -n libqcow-devel
92%defattr(644,root,root,755)
93%license COPYING COPYING.LESSER
94%doc AUTHORS README
95%{_libdir}/*.la
96%{_libdir}/*.so
97%{_libdir}/pkgconfig/libqcow.pc
98%{_includedir}/*
99%{_mandir}/man3/*
100
101%files -n libqcow-python2
102%defattr(644,root,root,755)
103%license COPYING COPYING.LESSER
104%doc AUTHORS README
105%{_libdir}/python2*/site-packages/*.a
106%{_libdir}/python2*/site-packages/*.la
107%{_libdir}/python2*/site-packages/*.so
108
109%files -n libqcow-python3
110%defattr(644,root,root,755)
111%license COPYING COPYING.LESSER
112%doc AUTHORS README
113%{_libdir}/python3*/site-packages/*.a
114%{_libdir}/python3*/site-packages/*.la
115%{_libdir}/python3*/site-packages/*.so
116
117%files -n libqcow-tools
118%defattr(644,root,root,755)
119%license COPYING COPYING.LESSER
120%doc AUTHORS README
121%attr(755,root,root) %{_bindir}/*
122%{_mandir}/man1/*
123
124%changelog
125* @SPEC_DATE@ Joachim Metz <joachim.metz@gmail.com> @VERSION@-1
126- Auto-generated
127
128