]>
Commit | Line | Data |
---|---|---|
24b3a0d2 AM |
1 | Summary: Tools for the OCFS2 filesystem |
2 | Name: ocfs2-tools | |
3 | Version: 1.1.2 | |
4 | Release: 1 | |
5 | License: GPL v2 | |
6 | Group: Applications/System | |
7 | Source0: http://oss.oracle.com/projects/ocfs2-tools/dist/files/source/v1.1/%{name}-%{version}.tar.gz | |
8 | # Source0-md5: f2412153cf33db29e10549c855c43e35 | |
9 | URL: http://oss.oracle.com/projects/ocfs2-tools/ | |
10 | BuildRequires: e2fsprogs-devel | |
11 | BuildRequires: glib2-devel | |
12 | BuildRequires: libcom_err-devel | |
13 | BuildRequires: libuuid-devel | |
14 | BuildRequires: pkgconfig | |
15 | BuildRequires: python-devel | |
16 | BuildRequires: readline-devel | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | Tools and support files for creating and managing OCFS2 volumes. | |
21 | ||
22 | %package gtk | |
23 | Summary: GTK interface to OCFS2 Tools | |
24 | Group: X11/Applications | |
25 | Requires: %{name} = %{version}-%{release} | |
26 | Requires: python-pygtk-gtk | |
27 | ||
28 | %description gtk | |
29 | GTK interface to OCFS2 Tools. | |
30 | ||
31 | %prep | |
32 | %setup -q | |
33 | ||
34 | %build | |
35 | %configure \ | |
36 | --enable-dynamic-fsck=yes \ | |
37 | --enable-dynamic-ctl=yes \ | |
38 | --enable-ocfs2console=yes | |
39 | %{__make} | |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %{__make} install \ | |
45 | DESTDIR=$RPM_BUILD_ROOT | |
46 | ||
47 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
48 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
49 | ||
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %post -p /sbin/ldconfig | |
54 | %postun -p /sbin/ldconfig | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
58 | %attr(755,root,root) /sbin/* | |
59 | %{_mandir}/man8/* | |
60 | ||
61 | %files gtk | |
62 | %defattr(644,root,root,755) | |
63 | %attr(755,root,root) %{_sbindir}/* | |
64 | %dir %{py_sitedir}/ocfs2interface | |
65 | %attr(755,root,root) %{py_sitedir}/ocfs2interface/*.so | |
66 | %{py_sitedir}/ocfs2interface/*.py[co] |