summaryrefslogtreecommitdiff
path: root/evms.spec
blob: ae1d9fc002b8dbc67d6418d66dd7009ab018e3eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
Summary:	Enterprise Volume Management System utilities
Summary(pl.UTF-8):	Narzędzia do Enterprise Volume Management System
Name:		evms
Version:	2.5.5
Release:	3
License:	GPL v2+
Group:		Applications/System
Source0:	http://dl.sourceforge.net/evms/%{name}-%{version}.tar.gz
# Source0-md5:	45b463f0cbade194dc0a08be432b572e
Patch0:		%{name}-link.patch
Patch1:		%{name}-page_size.patch
URL:		http://evms.sourceforge.net/
BuildRequires:	autoconf
BuildRequires:	gettext-tools
BuildRequires:	glib-devel >= 1.2.0
BuildRequires:	glibc-static
BuildRequires:	gtk+-devel >= 1.2.0
BuildRequires:	libtool
BuildRequires:	libuuid-devel
BuildRequires:	ncurses-ext-devel
Conflicts:	kernel < 2.4.19
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%define		_sbindir	/sbin
%define		_libdir		/%{_lib}

%description
This package contains the user-space tools needed to manage EVMS
(Enterprise Volume Management System) volumes.

In order to use these user-space tools, you must also have your kernel
patched with the most recent EVMS code.

%description -l pl.UTF-8
Ten pakiet zawiera narzędzia potrzebne do zarządzania wolumenami
dyskowymi EVMS (Enterprise Volume Management System).

Aby używać tych narzędzi, musisz mieć jądro z odpowiednio nową łatą
EVMS.

%package devel
Summary:	Header files for EVMS
Summary(es.UTF-8):	Arquivos de cabeçalho e bibliotecas de desenvolvimento para EVMS
Summary(pl.UTF-8):	Pliki nagłówkowe dla EVMS
Summary(pt_BR.UTF-8):	Bibliotecas e arquivos de inclusão para a EVMS
Group:		Development/Libraries
Requires:	%{name} = %{version}-%{release}

%description devel
Header files for EVMS.

%description devel -l pl.UTF-8
Pliki nagłówkowe dla EVMS.

%package static
Summary:	Static EVMS library
Summary(es.UTF-8):	Biblioteca estática usada no desenvolvimento de aplicativos com EVMS
Summary(pl.UTF-8):	Statyczna biblioteka EVMS
Summary(pt_BR.UTF-8):	Biblioteca estática de desenvolvimento
Group:		Development/Libraries
Requires:	%{name}-devel = %{version}-%{release}

%description static
Static EVMS library.

%description static -l pl.UTF-8
Statyczna biblioteka EVMS.

%package ncurses
Summary:	Ncurses interface for EVMS
Summary(pl.UTF-8):	Interfejs użytkownika w ncurses dla EVMS
Group:		Applications/System
Requires:	%{name} = %{version}-%{release}

%description ncurses
Ncurses interface for EVMS.

%description ncurses -l pl.UTF-8
Graficzny interfejs użytkownika w ncurses dla EVMS.

%package X11
Summary:	GUI interface for EVMS
Summary(pl.UTF-8):	Graficzny interfejs użytkownika dla EVMS
Group:		X11/Applications
Requires:	%{name} = %{version}-%{release}

%description X11
GUI interface for EVMS.

%description X11 -l pl.UTF-8
Graficzny interfejs użytkownika dla EVMS.

%prep
%setup -q
%patch0 -p1
%patch1 -p1

head -n 1420 aclocal.m4 > acinclude.m4

%build
%{__gettextize}
%{__libtoolize}
%{__aclocal}
%{__autoconf}
%{__autoheader}

%configure

%{__make} \
	OPT="%{rpmcflags}"

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_sysconfdir}

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT

install doc/evms.conf $RPM_BUILD_ROOT%{_sysconfdir}

%find_lang %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%post	-p /sbin/ldconfig
%postun	-p /sbin/ldconfig

%files -f %{name}.lang
%defattr(644,root,root,755)
%doc ChangeLog INSTALL* PLUGIN* TERMINOLOGY
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/evms.conf
%attr(755,root,root) %{_sbindir}/evms*
%exclude %{_sbindir}/evmsn
%exclude %{_sbindir}/evmsgui
%dir %{_libdir}/evms
%dir %{_libdir}/evms/%{version}
%attr(755,root,root) %{_libdir}/evms/%{version}/*.so
%attr(755,root,root) %{_libdir}/libevms-*.so.*
%{_mandir}/man8/*

%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libevms.so
%{_includedir}/evms

%files static
%defattr(644,root,root,755)
%{_libdir}/libevms.a

%files ncurses
%defattr(644,root,root,755)
%attr(755,root,root) %{_sbindir}/evmsn

%files X11
%defattr(644,root,root,755)
%attr(755,root,root) %{_sbindir}/evmsgui