]> git.pld-linux.org Git - packages/ocfs2-tools.git/blob - ocfs2-tools.spec
9cc3ec717ec9e6e8692ca96a546f2e2f9645fe8b
[packages/ocfs2-tools.git] / ocfs2-tools.spec
1 Summary:        Tools for the OCFS2 filesystem
2 Summary(pl):    Narzêdzia dla systemu plików OCFS2
3 Name:           ocfs2-tools
4 Version:        1.2.1
5 Release:        1
6 License:        GPL v2
7 Group:          Applications/System
8 Source0:        http://oss.oracle.com/projects/ocfs2-tools/dist/files/source/v1.2/%{name}-%{version}.tar.gz
9 # Source0-md5:  62c24ae0f3016eb5c15f0dfc90fe956a
10 Source1:        ocfs2.init
11 Source2:        o2cb.init
12 URL:            http://oss.oracle.com/projects/ocfs2-tools/
13 BuildRequires:  e2fsprogs-devel
14 BuildRequires:  glib2-devel
15 BuildRequires:  libcom_err-devel
16 BuildRequires:  libuuid-devel
17 BuildRequires:  pkgconfig
18 BuildRequires:  python-devel
19 BuildRequires:  readline-devel
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 Tools and support files for creating and managing OCFS2 volumes.
24
25 %description -l pl
26 Narzêdzia do tworzenia i zarz±dzania wolumenami OCFS2.
27
28 %package gtk
29 Summary:        GTK+ interface to OCFS2 Tools
30 Summary(pl):    Interfejs GTK+ do narzêdzi OCFS2
31 Group:          X11/Applications
32 Requires:       %{name} = %{version}-%{release}
33 Requires:       python-pygtk-gtk
34
35 %description gtk
36 GTK+ interface to OCFS2 Tools.
37
38 %description gtk -l pl
39 Interfejs GTK+ do narzêdzi OCFS2.
40
41 %prep
42 %setup -q
43
44 %build
45 %configure \
46         --enable-dynamic-fsck=yes \
47         --enable-dynamic-ctl=yes \
48         --enable-ocfs2console=yes
49 %{__make}
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
54
55 %{__make} install \
56         DESTDIR=$RPM_BUILD_ROOT
57
58 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ocfs2
59 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/o2cb
60
61 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
62 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
63
64 %clean
65 rm -rf $RPM_BUILD_ROOT
66
67 %postun -p /sbin/ldconfig
68
69 %post
70 /sbin/ldconfig
71 /sbin/chkconfig --add o2cb
72 /sbin/chkconfig --add %{name}
73 %service o2cb restart
74 %service %{name} restart
75
76 %preun
77 if [ "$1" = "0" ]; then
78         %service -q %{name} stop
79         %service -q o2cb stop
80         /sbin/chkconfig --del %{name}
81         /sbin/chkconfig --del o2cb
82 fi
83
84 %files
85 %defattr(644,root,root,755)
86 %attr(754,root,root) /etc/rc.d/init.d/o2cb
87 %attr(754,root,root) /etc/rc.d/init.d/ocfs2
88 %attr(755,root,root) /sbin/*
89 %{_mandir}/man8/*
90
91 %files gtk
92 %defattr(644,root,root,755)
93 %attr(755,root,root) %{_sbindir}/*
94 %dir %{py_sitedir}/ocfs2interface
95 %attr(755,root,root) %{py_sitedir}/ocfs2interface/*.so
96 %{py_sitedir}/ocfs2interface/*.py[co]
This page took 0.209156 seconds and 3 git commands to generate.