]> git.pld-linux.org Git - packages/ocfs2-tools.git/blobdiff - ocfs2-tools.spec
- up to 1.2.2
[packages/ocfs2-tools.git] / ocfs2-tools.spec
index 6c459d6e46b0764a22ea80c59380c405e28d1e74..f75c51002dddc54ec7db3b161016ea03e8c846fa 100644 (file)
@@ -1,13 +1,18 @@
 Summary:       Tools for the OCFS2 filesystem
 Summary(pl):   Narzêdzia dla systemu plików OCFS2
 Name:          ocfs2-tools
-Version:       1.1.2
+Version:       1.2.2
 Release:       1
 License:       GPL v2
 Group:         Applications/System
-Source0:       http://oss.oracle.com/projects/ocfs2-tools/dist/files/source/v1.1/%{name}-%{version}.tar.gz
-# Source0-md5: f2412153cf33db29e10549c855c43e35
+Source0:       http://oss.oracle.com/projects/ocfs2-tools/dist/files/source/v1.2/%{name}-%{version}.tar.gz
+# Source0-md5: ac6357bf9c53c53ad8e60f50820955b9
+Source1:       ocfs2.init
+Source2:       o2cb.init
+Patch0:                %{name}-tinfo.patch
 URL:           http://oss.oracle.com/projects/ocfs2-tools/
+BuildRequires: autoconf
+BuildRequires: automake
 BuildRequires: e2fsprogs-devel
 BuildRequires: glib2-devel
 BuildRequires: libcom_err-devel
@@ -15,6 +20,11 @@ BuildRequires:       libuuid-devel
 BuildRequires: pkgconfig
 BuildRequires: python-devel
 BuildRequires: readline-devel
+BuildRequires: rpmbuild(macros) >= 1.268
+BuildRequires: scons
+Requires(post):        /sbin/ldconfig
+Requires(post,preun):  /sbin/chkconfig
+Requires:      rc-scripts
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -38,8 +48,11 @@ Interfejs GTK+ do narz
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
+%{__aclocal} -I .
+%{__autoconf}
 %configure \
        --enable-dynamic-fsck=yes \
        --enable-dynamic-ctl=yes \
@@ -48,21 +61,41 @@ Interfejs GTK+ do narz
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ocfs2
+install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/o2cb
+
 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post  -p /sbin/ldconfig
+%post
+/sbin/ldconfig
+/sbin/chkconfig --add o2cb
+/sbin/chkconfig --add %{name}
+%service o2cb restart
+%service %{name} restart
+
+%preun
+if [ "$1" = "0" ]; then
+       %service -q %{name} stop
+       %service -q o2cb stop
+       /sbin/chkconfig --del %{name}
+       /sbin/chkconfig --del o2cb
+fi
+
 %postun -p /sbin/ldconfig
 
 %files
 %defattr(644,root,root,755)
+%attr(754,root,root) /etc/rc.d/init.d/o2cb
+%attr(754,root,root) /etc/rc.d/init.d/ocfs2
 %attr(755,root,root) /sbin/*
 %{_mandir}/man8/*
 
This page took 0.084105 seconds and 4 git commands to generate.