1 |
ennael |
63293 |
%define major 0 |
2 |
|
|
%define libname %mklibname genders %{major} |
3 |
|
|
%define develname %mklibname -d genders |
4 |
|
|
|
5 |
|
|
Summary: Static cluster configuration database |
6 |
|
|
Name: genders |
7 |
|
|
Version: 1.13 |
8 |
|
|
Release: %mkrel 4 |
9 |
|
|
Group: System/Libraries |
10 |
|
|
License: GPL |
11 |
|
|
URL: https://computing.llnl.gov/linux/genders.html |
12 |
|
|
Source0: http://mesh.dl.sourceforge.net/sourceforge/genders/%{name}-%{version}.tar.gz |
13 |
|
|
BuildRequires: autoconf |
14 |
|
|
BuildRequires: byacc |
15 |
|
|
BuildRequires: chrpath |
16 |
|
|
BuildRequires: flex |
17 |
|
|
BuildRequires: libtool |
18 |
|
|
BuildRequires: perl-devel |
19 |
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
20 |
|
|
|
21 |
|
|
%description |
22 |
|
|
Genders is a static cluster configuration database used for cluster |
23 |
|
|
configuration management. It is used by a variety of tools and scripts for |
24 |
|
|
management of large clusters. The genders database is typically replicated |
25 |
|
|
on every node of the cluster. It describes the layout and configuration of |
26 |
|
|
the cluster so that tools and scripts can sense the variations of cluster |
27 |
|
|
nodes. By abstracting this information into a plain text file, it becomes |
28 |
|
|
possible to change the configuration of a cluster by modifying only one file. |
29 |
|
|
|
30 |
|
|
%package -n %{libname} |
31 |
|
|
Summary: Static cluster configuration database library |
32 |
|
|
Group: System/Libraries |
33 |
|
|
|
34 |
|
|
%description -n %{libname} |
35 |
|
|
Genders is a static cluster configuration database used for cluster |
36 |
|
|
configuration management. It is used by a variety of tools and scripts for |
37 |
|
|
management of large clusters. The genders database is typically replicated |
38 |
|
|
on every node of the cluster. It describes the layout and configuration of |
39 |
|
|
the cluster so that tools and scripts can sense the variations of cluster |
40 |
|
|
nodes. By abstracting this information into a plain text file, it becomes |
41 |
|
|
possible to change the configuration of a cluster by modifying only one file. |
42 |
|
|
|
43 |
|
|
%package -n %{develname} |
44 |
|
|
Summary: Static library and header files for the genders library |
45 |
|
|
Group: Development/C |
46 |
|
|
Provides: %{name}-devel = %{version} |
47 |
|
|
Provides: lib%{name}-devel = %{version} |
48 |
|
|
Requires: %{libname} = %{version} |
49 |
|
|
|
50 |
|
|
%description -n %{develname} |
51 |
|
|
Genders is a static cluster configuration database used for cluster |
52 |
|
|
configuration management. It is used by a variety of tools and scripts for |
53 |
|
|
management of large clusters. The genders database is typically replicated |
54 |
|
|
on every node of the cluster. It describes the layout and configuration of |
55 |
|
|
the cluster so that tools and scripts can sense the variations of cluster |
56 |
|
|
nodes. By abstracting this information into a plain text file, it becomes |
57 |
|
|
possible to change the configuration of a cluster by modifying only one file. |
58 |
|
|
|
59 |
|
|
This package contains the static genders library and its header files. |
60 |
|
|
|
61 |
|
|
%package compat |
62 |
|
|
Summary: Compatability library |
63 |
|
|
Group: System/Libraries |
64 |
|
|
|
65 |
|
|
%description compat |
66 |
|
|
genders API that is compatible with earlier releases of genders |
67 |
|
|
|
68 |
|
|
%package -n perl-Genders |
69 |
|
|
Summary: Genders interface |
70 |
|
|
Group: Development/Perl |
71 |
|
|
|
72 |
|
|
%description -n perl-Genders |
73 |
|
|
This package provides a perl interface for querying a genders file. |
74 |
|
|
|
75 |
|
|
%prep |
76 |
|
|
|
77 |
|
|
%setup -q -n %{name}-%{version} |
78 |
|
|
|
79 |
|
|
%build |
80 |
|
|
|
81 |
|
|
%configure2_5x \ |
82 |
|
|
--with-genders-file=%{_sysconfdir}/%{name} \ |
83 |
|
|
--with-perl-destdir=%{buildroot} |
84 |
|
|
|
85 |
|
|
%make |
86 |
|
|
|
87 |
|
|
%install |
88 |
|
|
rm -rf %{buildroot} |
89 |
|
|
|
90 |
|
|
install -d %{buildroot}%{_sysconfdir} |
91 |
|
|
|
92 |
|
|
%makeinstall_std |
93 |
|
|
|
94 |
|
|
install -m0644 genders.sample %{buildroot}%{_sysconfdir}/%{name} |
95 |
|
|
|
96 |
|
|
# nuke rpath |
97 |
|
|
chrpath -d %{buildroot}%{perl_sitearch}/auto/Libgenders/Libgenders.so |
98 |
|
|
|
99 |
|
|
%if %mdkversion < 200900 |
100 |
|
|
%post -n %{libname} -p /sbin/ldconfig |
101 |
|
|
%endif |
102 |
|
|
|
103 |
|
|
%if %mdkversion < 200900 |
104 |
|
|
%postun -n %{libname} -p /sbin/ldconfig |
105 |
|
|
%endif |
106 |
|
|
|
107 |
|
|
%clean |
108 |
|
|
rm -rf %{buildroot} |
109 |
|
|
|
110 |
|
|
%files |
111 |
|
|
%defattr(-,root,root) |
112 |
|
|
%{_bindir}/* |
113 |
|
|
%{_mandir}/man1/* |
114 |
|
|
|
115 |
|
|
%files -n %{libname} |
116 |
|
|
%defattr(-,root,root) |
117 |
|
|
%doc README NEWS ChangeLog DISCLAIMER DISCLAIMER.UC COPYING TUTORIAL |
118 |
|
|
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name} |
119 |
|
|
%{_libdir}/*.so.%{major}* |
120 |
|
|
|
121 |
|
|
%files -n %{develname} |
122 |
|
|
%defattr(-,root,root) |
123 |
|
|
%{_includedir}/* |
124 |
|
|
%{_libdir}/*.so |
125 |
|
|
%{_libdir}/*.a |
126 |
|
|
%{_libdir}/*.la |
127 |
|
|
%{_mandir}/man3/genders* |
128 |
|
|
%{_mandir}/man3/libgenders* |
129 |
|
|
|
130 |
|
|
%files compat |
131 |
|
|
%defattr(-,root,root) |
132 |
|
|
%{_mandir}/man3/gendlib* |
133 |
|
|
%dir %{_prefix}/lib/genders |
134 |
|
|
%{_prefix}/lib/genders/* |
135 |
|
|
|
136 |
|
|
%files -n perl-Genders |
137 |
|
|
%defattr(-,root,root) |
138 |
|
|
%{perl_sitearch}/Genders.pm |
139 |
|
|
%{perl_sitearch}/Libgenders.pm |
140 |
|
|
%dir %{perl_sitearch}/auto/Libgenders |
141 |
|
|
%{perl_sitearch}/auto/Libgenders/Libgenders.so |
142 |
|
|
%{_mandir}/man3/Genders* |
143 |
|
|
%{_mandir}/man3/Libgenders* |
144 |
|
|
|
145 |
|
|
|
146 |
|
|
|