]>
Commit | Line | Data |
---|---|---|
24b3a0d2 | 1 | Summary: Tools for the OCFS2 filesystem |
71876b01 | 2 | Summary(pl.UTF-8): Narzędzia dla systemu plików OCFS2 |
24b3a0d2 | 3 | Name: ocfs2-tools |
9493fefc | 4 | Version: 1.2.3 |
5 | Release: 0.1 | |
24b3a0d2 AM |
6 | License: GPL v2 |
7 | Group: Applications/System | |
0af95004 | 8 | Source0: http://oss.oracle.com/projects/ocfs2-tools/dist/files/source/v1.2/%{name}-%{version}.tar.gz |
9493fefc | 9 | # Source0-md5: 3b778750e7d0c94317a71ee889433ef1 |
872dff28 | 10 | Source1: ocfs2.init |
11 | Source2: o2cb.init | |
1545f1eb | 12 | Source3: o2cb.sysconfig |
180d12a8 | 13 | Patch0: %{name}-tinfo.patch |
24b3a0d2 | 14 | URL: http://oss.oracle.com/projects/ocfs2-tools/ |
180d12a8 AM |
15 | BuildRequires: autoconf |
16 | BuildRequires: automake | |
1545f1eb | 17 | BuildRequires: device-mapper-devel |
24b3a0d2 AM |
18 | BuildRequires: e2fsprogs-devel |
19 | BuildRequires: glib2-devel | |
24b3a0d2 AM |
20 | BuildRequires: pkgconfig |
21 | BuildRequires: python-devel | |
22 | BuildRequires: readline-devel | |
c66229aa | 23 | BuildRequires: rpmbuild(macros) >= 1.268 |
1545f1eb | 24 | #BuildRequires: scons |
dcdea3f9 JB |
25 | Requires(post): /sbin/ldconfig |
26 | Requires(post,preun): /sbin/chkconfig | |
27 | Requires: rc-scripts | |
24b3a0d2 AM |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %description | |
31 | Tools and support files for creating and managing OCFS2 volumes. | |
32 | ||
e7e6eaa6 JR |
33 | %description -l pl.UTF-8 |
34 | Narzędzia do tworzenia i zarządzania wolumenami OCFS2. | |
30d0cf50 | 35 | |
24b3a0d2 | 36 | %package gtk |
30d0cf50 | 37 | Summary: GTK+ interface to OCFS2 Tools |
71876b01 | 38 | Summary(pl.UTF-8): Interfejs GTK+ do narzędzi OCFS2 |
24b3a0d2 AM |
39 | Group: X11/Applications |
40 | Requires: %{name} = %{version}-%{release} | |
41 | Requires: python-pygtk-gtk | |
42 | ||
43 | %description gtk | |
30d0cf50 JB |
44 | GTK+ interface to OCFS2 Tools. |
45 | ||
e7e6eaa6 JR |
46 | %description gtk -l pl.UTF-8 |
47 | Interfejs GTK+ do narzędzi OCFS2. | |
24b3a0d2 AM |
48 | |
49 | %prep | |
50 | %setup -q | |
180d12a8 | 51 | %patch0 -p1 |
24b3a0d2 AM |
52 | |
53 | %build | |
180d12a8 AM |
54 | %{__aclocal} -I . |
55 | %{__autoconf} | |
24b3a0d2 AM |
56 | %configure \ |
57 | --enable-dynamic-fsck=yes \ | |
58 | --enable-dynamic-ctl=yes \ | |
59 | --enable-ocfs2console=yes | |
60 | %{__make} | |
61 | ||
62 | %install | |
63 | rm -rf $RPM_BUILD_ROOT | |
1545f1eb | 64 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} |
24b3a0d2 AM |
65 | |
66 | %{__make} install \ | |
67 | DESTDIR=$RPM_BUILD_ROOT | |
68 | ||
1545f1eb | 69 | install -D documentation/samples/cluster.conf $RPM_BUILD_ROOT/etc/ocfs2/cluster.conf |
872dff28 | 70 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ocfs2 |
71 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/o2cb | |
1545f1eb | 72 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/o2cb |
73 | install -d $RPM_BUILD_ROOT/dlm | |
872dff28 | 74 | |
24b3a0d2 AM |
75 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} |
76 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
1545f1eb | 77 | rm $RPM_BUILD_ROOT%{py_sitedir}/ocfs2interface/*.py |
24b3a0d2 AM |
78 | |
79 | %clean | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
872dff28 | 82 | %post |
83 | /sbin/ldconfig | |
84 | /sbin/chkconfig --add o2cb | |
1545f1eb | 85 | /sbin/chkconfig --add ocfs2 |
872dff28 | 86 | %service o2cb restart |
1545f1eb | 87 | %service ocfs2 restart |
872dff28 | 88 | |
89 | %preun | |
90 | if [ "$1" = "0" ]; then | |
1545f1eb | 91 | %service -q ocfs2 stop |
872dff28 | 92 | %service -q o2cb stop |
1545f1eb | 93 | /sbin/chkconfig --del ocfs2 |
872dff28 | 94 | /sbin/chkconfig --del o2cb |
95 | fi | |
96 | ||
dcdea3f9 JB |
97 | %postun -p /sbin/ldconfig |
98 | ||
24b3a0d2 AM |
99 | %files |
100 | %defattr(644,root,root,755) | |
1545f1eb | 101 | %doc documentation/*.txt |
872dff28 | 102 | %attr(754,root,root) /etc/rc.d/init.d/o2cb |
103 | %attr(754,root,root) /etc/rc.d/init.d/ocfs2 | |
24b3a0d2 | 104 | %attr(755,root,root) /sbin/* |
1545f1eb | 105 | %dir /etc/ocfs2 |
106 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/ocfs2/cluster.conf | |
107 | %dir /dlm | |
24b3a0d2 AM |
108 | %{_mandir}/man8/* |
109 | ||
110 | %files gtk | |
111 | %defattr(644,root,root,755) | |
112 | %attr(755,root,root) %{_sbindir}/* | |
113 | %dir %{py_sitedir}/ocfs2interface | |
114 | %attr(755,root,root) %{py_sitedir}/ocfs2interface/*.so | |
115 | %{py_sitedir}/ocfs2interface/*.py[co] |