]> git.pld-linux.org Git - packages/ocfs2-tools.git/blob - ocfs2-tools.spec
88cb4d9089f6bd92ccf75b80ff51a4dd45855719
[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.2
5 Release:        2
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:  ac6357bf9c53c53ad8e60f50820955b9
10 Source1:        ocfs2.init
11 Source2:        o2cb.init
12 Patch0:         %{name}-tinfo.patch
13 URL:            http://oss.oracle.com/projects/ocfs2-tools/
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  e2fsprogs-devel
17 BuildRequires:  glib2-devel
18 BuildRequires:  libcom_err-devel
19 BuildRequires:  libuuid-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
65
66 %{__make} install \
67         DESTDIR=$RPM_BUILD_ROOT
68
69 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ocfs2
70 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/o2cb
71
72 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
73 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %post
79 /sbin/ldconfig
80 /sbin/chkconfig --add o2cb
81 /sbin/chkconfig --add %{name}
82 %service o2cb restart
83 %service %{name} restart
84
85 %preun
86 if [ "$1" = "0" ]; then
87         %service -q %{name} stop
88         %service -q o2cb stop
89         /sbin/chkconfig --del %{name}
90         /sbin/chkconfig --del o2cb
91 fi
92
93 %postun -p /sbin/ldconfig
94
95 %files
96 %defattr(644,root,root,755)
97 %attr(754,root,root) /etc/rc.d/init.d/o2cb
98 %attr(754,root,root) /etc/rc.d/init.d/ocfs2
99 %attr(755,root,root) /sbin/*
100 %{_mandir}/man8/*
101
102 %files gtk
103 %defattr(644,root,root,755)
104 %attr(755,root,root) %{_sbindir}/*
105 %dir %{py_sitedir}/ocfs2interface
106 %attr(755,root,root) %{py_sitedir}/ocfs2interface/*.so
107 %{py_sitedir}/ocfs2interface/*.py[co]
This page took 0.07624 seconds and 2 git commands to generate.