]> git.pld-linux.org Git - packages/ocfs2-tools.git/blame - ocfs2-tools.spec
- remove obsolete buildrequire
[packages/ocfs2-tools.git] / ocfs2-tools.spec
CommitLineData
24b3a0d2 1Summary: Tools for the OCFS2 filesystem
71876b01 2Summary(pl.UTF-8): Narzędzia dla systemu plików OCFS2
24b3a0d2 3Name: ocfs2-tools
9493fefc 4Version: 1.2.3
5Release: 0.1
24b3a0d2
AM
6License: GPL v2
7Group: Applications/System
0af95004 8Source0: http://oss.oracle.com/projects/ocfs2-tools/dist/files/source/v1.2/%{name}-%{version}.tar.gz
9493fefc 9# Source0-md5: 3b778750e7d0c94317a71ee889433ef1
872dff28 10Source1: ocfs2.init
11Source2: o2cb.init
1545f1eb 12Source3: o2cb.sysconfig
180d12a8 13Patch0: %{name}-tinfo.patch
24b3a0d2 14URL: http://oss.oracle.com/projects/ocfs2-tools/
180d12a8
AM
15BuildRequires: autoconf
16BuildRequires: automake
1545f1eb 17BuildRequires: device-mapper-devel
24b3a0d2
AM
18BuildRequires: e2fsprogs-devel
19BuildRequires: glib2-devel
24b3a0d2
AM
20BuildRequires: pkgconfig
21BuildRequires: python-devel
22BuildRequires: readline-devel
c66229aa 23BuildRequires: rpmbuild(macros) >= 1.268
1545f1eb 24#BuildRequires: scons
dcdea3f9
JB
25Requires(post): /sbin/ldconfig
26Requires(post,preun): /sbin/chkconfig
27Requires: rc-scripts
24b3a0d2
AM
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
31Tools and support files for creating and managing OCFS2 volumes.
32
e7e6eaa6
JR
33%description -l pl.UTF-8
34Narzędzia do tworzenia i zarządzania wolumenami OCFS2.
30d0cf50 35
24b3a0d2 36%package gtk
30d0cf50 37Summary: GTK+ interface to OCFS2 Tools
71876b01 38Summary(pl.UTF-8): Interfejs GTK+ do narzędzi OCFS2
24b3a0d2
AM
39Group: X11/Applications
40Requires: %{name} = %{version}-%{release}
41Requires: python-pygtk-gtk
42
43%description gtk
30d0cf50
JB
44GTK+ interface to OCFS2 Tools.
45
e7e6eaa6
JR
46%description gtk -l pl.UTF-8
47Interfejs 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
63rm -rf $RPM_BUILD_ROOT
1545f1eb 64install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
24b3a0d2
AM
65
66%{__make} install \
67 DESTDIR=$RPM_BUILD_ROOT
68
1545f1eb 69install -D documentation/samples/cluster.conf $RPM_BUILD_ROOT/etc/ocfs2/cluster.conf
872dff28 70install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ocfs2
71install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/o2cb
1545f1eb 72install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/o2cb
73install -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 77rm $RPM_BUILD_ROOT%{py_sitedir}/ocfs2interface/*.py
24b3a0d2
AM
78
79%clean
80rm -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
90if [ "$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
95fi
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]
This page took 0.137195 seconds and 4 git commands to generate.