]> git.pld-linux.org Git - packages/genders.git/blob - genders.spec
- rebuild with perl 5.30.0
[packages/genders.git] / genders.spec
1 #
2 # Conditional build:
3 %bcond_without  java            # Java extensions
4 %bcond_without  static_libs     # static library
5 #
6 %include        /usr/lib/rpm/macros.perl
7 Summary:        Static cluster configuration database
8 Summary(pl.UTF-8):      Statyczna baza danych konfiguracji klastra
9 Name:           genders
10 Version:        1.22
11 Release:        6
12 License:        GPL v2+
13 Group:          Libraries
14 #Source0Download: https://github.com/chaos/genders/releases
15 Source0:        https://github.com/chaos/genders/releases/download/genders-1-22-1/%{name}-%{version}.tar.gz
16 # Source0-md5:  9ea59a024dcbddb85b0ed25ddca9bc8e
17 Patch0:         %{name}-make.patch
18 Patch1:         %{name}-javadoc.patch
19 URL:            https://github.com/chaos/genders
20 BuildRequires:  autoconf >= 2.50
21 BuildRequires:  automake
22 BuildRequires:  bison
23 BuildRequires:  flex
24 %{?with_java:BuildRequires:     jdk}
25 BuildRequires:  libstdc++-devel
26 BuildRequires:  libtool >= 2:1.5
27 BuildRequires:  perl-ExtUtils-MakeMaker
28 BuildRequires:  perl-tools-pod
29 BuildRequires:  python-devel
30 BuildRequires:  rpm-perlprov
31 BuildRequires:  rpm-pythonprov
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %description
35 Genders is a static cluster configuration database used for cluster
36 configuration management. It is used by a variety of tools and scripts
37 for management of large clusters. The genders database is typically
38 replicated on every node of the cluster. It describes the layout and
39 configuration of the cluster so that tools and scripts can sense the
40 variations of cluster nodes. By abstracting this information into a
41 plain text file, it becomes possible to change the configuration of a
42 cluster by modifying only one file.
43
44 %description -l pl.UTF-8
45 Genders to statyczna baza danych konfiguracji klastra, służąca do
46 zarządzania klastrem. Jest wykorzystywana przez różne narzędzia i
47 skrypty do zarządzania dużymi klastrami. Baza danych genders jest
48 zwykle replikowana na każdym węźle klastra. Opisuje układ i
49 konfigurację klastra, aby narzędzia i skrypty miały informacje o
50 właściwościach węzłów klastra. Poprzez wyciągnięcie tych informacji do
51 zwykłego pliku tekstowego, można zmieniać konfigurację klastra
52 modyfikując tylko jeden plik.
53
54 %package devel
55 Summary:        Header file for genders library
56 Summary(pl.UTF-8):      Plik nagłówkowy biblioteki genders
57 Group:          Development/Libraries
58 Requires:       %{name} = %{version}-%{release}
59
60 %description devel
61 Header file for genders library.
62
63 %description devel -l pl.UTF-8
64 Plik nagłówkowy biblioteki genders.
65
66 %package static
67 Summary:        Static genders library
68 Summary(pl.UTF-8):      Statyczna biblioteka genders
69 Group:          Development/Libraries
70 Requires:       %{name}-devel = %{version}-%{release}
71
72 %description static
73 Static genders library.
74
75 %description static -l pl.UTF-8
76 Statyczna biblioteka genders.
77
78 %package c++
79 Summary:        C++ library for genders database
80 Summary(pl.UTF-8):      Biblioteka C++ do bazy danych genders
81 Group:          Libraries
82 Requires:       %{name} = %{version}-%{release}
83
84 %description c++
85 C++ library for genders database.
86
87 %description c++ -l pl.UTF-8
88 Biblioteka C++ do bazy danych genders.
89
90 %package c++-devel
91 Summary:        Header file for gendersplusplus library
92 Summary(pl.UTF-8):      Plik nagłówkowy biblioteki gendersplusplus
93 Group:          Development/Libraries
94 Requires:       %{name}-c++ = %{version}-%{release}
95 Requires:       %{name}-devel = %{version}-%{release}
96 Requires:       libstdc++-devel
97
98 %description c++-devel
99 Header file for gendersplusplus library.
100
101 %description c++-devel -l pl.UTF-8
102 Plik nagłówkowy biblioteki gendersplusplus.
103
104 %package c++-static
105 Summary:        Static gendersplusplus library
106 Summary(pl.UTF-8):      Statyczna biblioteka gendersplusplus
107 Group:          Development/Libraries
108 Requires:       %{name}-c++-devel = %{version}-%{release}
109
110 %description c++-static
111 Static gendersplusplus library.
112
113 %description c++-static -l pl.UTF-8
114 Statyczna biblioteka gendersplusplus.
115
116 %package compat
117 Summary:        Compatibility library for earlier releases of genders
118 Summary(pl.UTF-8):      Biblioteka dla zgodności ze starszymi wydaniami genders
119 Group:          Libraries
120 Requires:       perl-genders = %{version}-%{release}
121
122 %description compat
123 Genders API that is compatible with earlier releases of genders.
124
125 %description compat -l pl.UTF-8
126 API Genders zgodne ze starszymi wydaniami pakietu.
127
128 %package -n java-genders
129 Summary:        Java interface to genders library
130 Summary(pl.UTF-8):      Interfejs Javy do biblioteki genders
131 Group:          Development/Languages/Java
132 Requires:       %{name} = %{version}-%{release}
133
134 %description -n java-genders
135 Java interface to genders library.
136
137 %description -n java-genders -l pl.UTF-8
138 Interfejs Javy do biblioteki genders.
139
140 %package -n java-genders-javadoc
141 Summary:        Javadoc documentation for Java interface to genders library
142 Summary(pl.UTF-8):      Dokumentacja Javadoc Interfejsu Javy do biblioteki genders
143 Group:          Documentation
144
145 %description -n java-genders-javadoc
146 Javadoc documentation for Java interface to genders library.
147
148 %description -n java-genders-javadoc -l pl.UTF-8
149 Dokumentacja Javadoc Interfejsu Javy do biblioteki genders.
150
151 %package -n perl-genders
152 Summary:        Perl interface to genders library
153 Summary(pl.UTF-8):      Interfejs Perla do biblioteki genders
154 Group:          Development/Languages/Perl
155 Requires:       %{name} = %{version}-%{release}
156
157 %description -n perl-genders
158 Perl interface to genders library.
159
160 %description -n perl-genders -l pl.UTF-8
161 Interfejs Perla do biblioteki genders.
162
163 %package -n python-genders
164 Summary:        Python interface to genders library
165 Summary(pl.UTF-8):      Interfejs Pythona do biblioteki genders
166 Group:          Development/Languages/Python
167 Requires:       %{name} = %{version}-%{release}
168
169 %description -n python-genders
170 Python interface to genders library.
171
172 %description -n python-genders -l pl.UTF-8
173 Interfejs Pythona do biblioteki genders.
174
175 %prep
176 %setup -q
177 %patch0 -p1
178 %patch1 -p1
179
180 %build
181 %{__libtoolize}
182 %{__aclocal} -I config
183 %{__autoconf}
184 %{__autoheader}
185 %{__automake}
186 CPPFLAGS="%{rpmcppflags} -I%{_jvmdir}/java/include -I%{_jvmdir}/java/include/linux"
187 %configure \
188         --disable-silent-rules \
189         %{!?with_static_libs:--disable-static} \
190         --with-extension-destdir=$RPM_BUILD_ROOT \
191         %{!?with_java:--without-java-extensions} \
192         --with-perl-vendor-arch
193
194 # -j1 due to racy flex/yacc invocation
195 %{__make} -j1
196
197 %install
198 rm -rf $RPM_BUILD_ROOT
199
200 %{__make} -j1 install \
201         DESTDIR=$RPM_BUILD_ROOT
202
203 # no external dependencies
204 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgenders*.la
205 %if %{with java}
206 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libGendersjni.la \
207         %{?with_static_libs:$RPM_BUILD_ROOT%{_libdir}/libGendersjni.a}
208 %endif
209
210 %py_postclean
211
212 %clean
213 rm -rf $RPM_BUILD_ROOT
214
215 %post   -p /sbin/ldconfig
216 %postun -p /sbin/ldconfig
217
218 %post   c++ -p /sbin/ldconfig
219 %postun c++ -p /sbin/ldconfig
220
221 %post   -n java-genders -p /sbin/ldconfig
222 %postun -n java-genders -p /sbin/ldconfig
223
224 %files
225 %defattr(644,root,root,755)
226 %doc AUTHORS ChangeLog DISCLAIMER DISCLAIMER.UC NEWS README TODO TUTORIAL
227 %attr(755,root,root) %{_bindir}/nodeattr
228 %attr(755,root,root) %{_libdir}/libgenders.so.*.*.*
229 %attr(755,root,root) %ghost %{_libdir}/libgenders.so.0
230 %{_mandir}/man1/nodeattr.1*
231
232 %files devel
233 %defattr(644,root,root,755)
234 %attr(755,root,root) %{_libdir}/libgenders.so
235 %{_includedir}/genders.h
236 %{_mandir}/man3/genders*.3*
237 %{_mandir}/man3/libgenders.3*
238
239 %if %{with static_libs}
240 %files static
241 %defattr(644,root,root,755)
242 %{_libdir}/libgenders.a
243 %endif
244
245 %files c++
246 %defattr(644,root,root,755)
247 %attr(755,root,root) %{_libdir}/libgendersplusplus.so.*.*.*
248 %attr(755,root,root) %ghost %{_libdir}/libgendersplusplus.so.2
249
250 %files c++-devel
251 %defattr(644,root,root,755)
252 %attr(755,root,root) %{_libdir}/libgendersplusplus.so
253 %{_includedir}/gendersplusplus.hpp
254
255 %if %{with static_libs}
256 %files c++-static
257 %defattr(644,root,root,755)
258 %{_libdir}/libgendersplusplus.a
259 %endif
260
261 %files compat
262 %defattr(644,root,root,755)
263 %dir %{_prefix}/lib/genders
264 %attr(755,root,root) %{_prefix}/lib/genders/gendlib.pl
265 %attr(755,root,root) %{_prefix}/lib/genders/hostlist.pl
266 %{_mandir}/man3/gendlib.3*
267
268 %if %{with java}
269 %files -n java-genders
270 %defattr(644,root,root,755)
271 %attr(755,root,root) %{_libdir}/libGendersjni.so.*.*.*
272 %attr(755,root,root) %ghost %{_libdir}/libGendersjni.so.0
273 %attr(755,root,root) %{_libdir}/libGendersjni.so
274 %{_javadir}/Genders.jar
275
276 %files -n java-genders-javadoc
277 %defattr(644,root,root,755)
278 %doc %{_docdir}/%{name}-%{version}-javadoc
279 %endif
280
281 %files -n perl-genders
282 %defattr(644,root,root,755)
283 %{perl_vendorarch}/Genders.pm
284 %{perl_vendorarch}/Libgenders.pm
285 %dir %{perl_vendorarch}/auto/Libgenders
286 %attr(755,root,root) %{perl_vendorarch}/auto/Libgenders/Libgenders.so
287 %{_mandir}/man3/Genders.3pm*
288 %{_mandir}/man3/Libgenders.3pm*
289
290 %files -n python-genders
291 %defattr(644,root,root,755)
292 %attr(755,root,root) %{py_sitedir}/libgenders.so
293 %{py_sitedir}/genders.py[co]
294 %{py_sitedir}/libgenders-*.egg-info
This page took 0.086961 seconds and 3 git commands to generate.