]> git.pld-linux.org Git - packages/ocfs2-tools.git/blob - ocfs2-tools.spec
- remove obsolete buildrequire
[packages/ocfs2-tools.git] / ocfs2-tools.spec
1 Summary:        Tools for the OCFS2 filesystem
2 Summary(pl.UTF-8):      Narzędzia dla systemu plików OCFS2
3 Name:           ocfs2-tools
4 Version:        1.2.3
5 Release:        0.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:  3b778750e7d0c94317a71ee889433ef1
10 Source1:        ocfs2.init
11 Source2:        o2cb.init
12 Source3:        o2cb.sysconfig
13 Patch0:         %{name}-tinfo.patch
14 URL:            http://oss.oracle.com/projects/ocfs2-tools/
15 BuildRequires:  autoconf
16 BuildRequires:  automake
17 BuildRequires:  device-mapper-devel
18 BuildRequires:  e2fsprogs-devel
19 BuildRequires:  glib2-devel
20 BuildRequires:  pkgconfig
21 BuildRequires:  python-devel
22 BuildRequires:  readline-devel
23 BuildRequires:  rpmbuild(macros) >= 1.268
24 #BuildRequires: scons
25 Requires(post): /sbin/ldconfig
26 Requires(post,preun):   /sbin/chkconfig
27 Requires:       rc-scripts
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 Tools and support files for creating and managing OCFS2 volumes.
32
33 %description -l pl.UTF-8
34 Narzędzia do tworzenia i zarządzania wolumenami OCFS2.
35
36 %package gtk
37 Summary:        GTK+ interface to OCFS2 Tools
38 Summary(pl.UTF-8):      Interfejs GTK+ do narzędzi OCFS2
39 Group:          X11/Applications
40 Requires:       %{name} = %{version}-%{release}
41 Requires:       python-pygtk-gtk
42
43 %description gtk
44 GTK+ interface to OCFS2 Tools.
45
46 %description gtk -l pl.UTF-8
47 Interfejs GTK+ do narzędzi OCFS2.
48
49 %prep
50 %setup -q
51 %patch0 -p1
52
53 %build
54 %{__aclocal} -I .
55 %{__autoconf}
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
64 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
65
66 %{__make} install \
67         DESTDIR=$RPM_BUILD_ROOT
68
69 install -D documentation/samples/cluster.conf $RPM_BUILD_ROOT/etc/ocfs2/cluster.conf
70 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ocfs2
71 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/o2cb
72 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/o2cb
73 install -d $RPM_BUILD_ROOT/dlm
74
75 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
76 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
77 rm $RPM_BUILD_ROOT%{py_sitedir}/ocfs2interface/*.py
78
79 %clean
80 rm -rf $RPM_BUILD_ROOT
81
82 %post
83 /sbin/ldconfig
84 /sbin/chkconfig --add o2cb
85 /sbin/chkconfig --add ocfs2
86 %service o2cb restart
87 %service ocfs2 restart
88
89 %preun
90 if [ "$1" = "0" ]; then
91         %service -q ocfs2 stop
92         %service -q o2cb stop
93         /sbin/chkconfig --del ocfs2
94         /sbin/chkconfig --del o2cb
95 fi
96
97 %postun -p /sbin/ldconfig
98
99 %files
100 %defattr(644,root,root,755)
101 %doc documentation/*.txt
102 %attr(754,root,root) /etc/rc.d/init.d/o2cb
103 %attr(754,root,root) /etc/rc.d/init.d/ocfs2
104 %attr(755,root,root) /sbin/*
105 %dir /etc/ocfs2
106 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/ocfs2/cluster.conf
107 %dir /dlm
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]
This page took 0.043434 seconds and 3 git commands to generate.