%global majorver 1 %global minorver 27 %global patchver 2 Name: genders Version: %{majorver}.%{minorver}.%{patchver} Release: 4%{?dist} Summary: Static cluster configuration database License: GPLv2 URL: https://github.com/chaos/genders Source: https://github.com/chaos/genders/archive/genders-%{majorver}-%{minorver}-%{patchver}.tar.gz Patch0: %{name}-1.18-shebang.patch Patch1: %{name}-1.22-javadoc.patch BuildRequires: gcc-c++ BuildRequires: gcc BuildRequires: bison BuildRequires: flex BuildRequires: autoconf %description Genders is a static cluster configuration database used for cluster configuration management. It is used by a variety of tools and scripts for management of large clusters. The genders database is typically replicated on every node of the cluster. It describes the layout and configuration of the cluster so that tools and scripts can sense the variations of cluster nodes. By abstracting this information into a plain text file, it becomes possible to change the configuration of a cluster by modifying only one file. %package compat Summary: Compatibility library BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl(ExtUtils::MakeMaker) %if 0%{?rhel} >= 6 || 0%{?fedora} > 0 BuildArch: noarch %endif %description compat Genders API that is compatible with earlier releases of genders. %package perl Summary: Perl libraries BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Config) %description perl Genders API bindings for perl. %package javadoc Summary: Java Documentation BuildRequires: java-devel %description javadoc Genders API Documentation for java. %package java-devel Summary: Java Development libraries Requires: %{name}-java%{?_isa} = %{version}-%{release} %description java-devel Genders API bindings for java. %package java Summary: Java libraries BuildRequires: java-devel %description java Genders API bindings for java. %global __provides_exclude_from ^(.%{perl_vendorarch}/*\\.so)$ %package -n libgenders Summary: Genders libraries %description -n libgenders Genders API for C. %package -n libgenders-devel Summary: Genders development libraries Requires: libgenders%{?_isa} = %{version}-%{release} %description -n libgenders-devel Genders development headers and libraries for C. %package -n libgendersplusplus Summary: Genders libraries for C++ Requires: libgenders%{?_isa} = %{version}-%{release} %description -n libgendersplusplus Genders API for C++. %package -n libgendersplusplus-devel Summary: Genders development libraries Requires: libgenders-devel%{?_isa} = %{version}-%{release} Requires: libgendersplusplus%{?_isa} = %{version}-%{release} %description -n libgendersplusplus-devel Genders development headers and libraries for C++. %prep %setup -q -n %{name}-%{name}-%{majorver}-%{minorver}-%{patchver} %patch0 -p1 %patch1 -p1 %if 0%{?rhel} <= 6 %global __provides_exclude ^Lib%{name}.so.*$ %endif %build export CPPFLAGS='-I/usr/lib/jvm/java/include -I/usr/lib/jvm/java/include/linux -I../../../src/libgenders' %configure \ --with-perl-extensions \ --with-perl-vendor-arch \ --without-python-extensions \ --with-cplusplus-extensions \ --with-extension-destdir="%{buildroot}" %{__make} %install rm -rf %{buildroot} DESTDIR=%{buildroot} make install rm -f %{buildroot}/%{_libdir}/*.la rm -f %{buildroot}/%{_libdir}/*.a chmod +w %{buildroot}/%{perl_vendorarch}/auto/Lib%{name}/Lib%{name}.so rm -f %{buildroot}/%{perl_vendorarch}/auto/Lib%{name}/Lib%{name}.bs rm -f %{buildroot}/%{perl_vendorarch}/auto/Lib%{name}/.packlist mkdir -p %{buildroot}/%{_libexecdir} mkdir -p %{buildroot}/%{_jnidir} %if 0%{?rhel} == 5 %define _datarootdir %{_prefix}/share %endif mv %{buildroot}/%{_datarootdir}/java/Genders.jar %{buildroot}/%{_jnidir}/ %ldconfig_scriptlets -n libgenders %ldconfig_scriptlets -n libgendersplusplus %ldconfig_scriptlets -n genders-java %files %doc README NEWS ChangeLog DISCLAIMER DISCLAIMER.UC COPYING TUTORIAL genders.sample %{_mandir}/man1/* %{_mandir}/man3/genders.3* %{_bindir}/* %files -n libgenders %doc DISCLAIMER DISCLAIMER.UC COPYING %{_libdir}/libgenders.so.0* %{_mandir}/man3/libgenders.3* %files -n libgenders-devel %doc DISCLAIMER DISCLAIMER.UC COPYING %{_mandir}/man3/genders_* %{_includedir}/genders.h %{_libdir}/libgenders.so %files -n libgendersplusplus %doc DISCLAIMER DISCLAIMER.UC COPYING %{_libdir}/libgendersplusplus.so.2* %files -n libgendersplusplus-devel %doc DISCLAIMER DISCLAIMER.UC COPYING %{_libdir}/libgendersplusplus.so %{_includedir}/gendersplusplus* %files perl %doc DISCLAIMER DISCLAIMER.UC COPYING %{_mandir}/man3/Libgenders* %{_mandir}/man3/Genders* %{perl_vendorarch}/* %files java-devel %doc DISCLAIMER DISCLAIMER.UC COPYING %{_libdir}/libGendersjni.so %files java %doc DISCLAIMER DISCLAIMER.UC COPYING %{_libdir}/libGendersjni.so.* %{_jnidir}/Genders.jar %files javadoc %doc DISCLAIMER DISCLAIMER.UC COPYING %{_docdir}/%{name}-%{majorver}.%{minorver}-javadoc %files compat %doc DISCLAIMER DISCLAIMER.UC COPYING %{_mandir}/man3/gendlib* %{_usr}/lib/genders/* %changelog * Fri Jul 10 2020 Jiri Vanek - 1.27.2-4 - Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11 * Mon Jun 22 2020 Jitka Plesnikova - 1.27.2-3 - Perl 5.32 rebuild * Tue Jan 28 2020 Fedora Release Engineering - 1.27.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Nov 18 2019 Tom Callaway - 1.27.2-1 - update to 1.27-2 * Thu Jul 25 2019 Fedora Release Engineering - 1.22-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu May 30 2019 Jitka Plesnikova - 1.22-22 - Perl 5.30 rebuild * Thu Jan 31 2019 Fedora Release Engineering - 1.22-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Jan 15 2019 Miro Hrončok - 1.22-20 - Subpackage python2-genders has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Fri Jul 13 2018 Fedora Release Engineering - 1.22-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Jun 27 2018 Jitka Plesnikova - 1.22-18 - Perl 5.28 rebuild * Wed Feb 14 2018 Iryna Shcherbina - 1.22-17 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Igor Gnatenko - 1.22-16 - Escape macros in %%changelog * Wed Feb 07 2018 Fedora Release Engineering - 1.22-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sun Aug 20 2017 Zbigniew Jędrzejewski-Szmek - 1.22-14 - Add Provides for the old name without %%_isa * Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 1.22-13 - Python 2 binary package renamed to python2-genders See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 * Wed Aug 02 2017 Fedora Release Engineering - 1.22-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 1.22-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Jul 07 2017 Igor Gnatenko - 1.22-10 - Rebuild due to bug in RPM (RHBZ #1468476) * Sun Jun 04 2017 Jitka Plesnikova - 1.22-9 - Perl 5.26 rebuild * Fri Feb 10 2017 Fedora Release Engineering - 1.22-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Jul 19 2016 Fedora Release Engineering - 1.22-7 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Sat May 14 2016 Jitka Plesnikova - 1.22-6 - Perl 5.24 rebuild * Wed Feb 03 2016 Fedora Release Engineering - 1.22-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 1.22-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Fri Jun 05 2015 Jitka Plesnikova - 1.22-3 - Perl 5.22 rebuild * Tue May 19 2015 David Brown - 1.22-2 - Bugfix make libgenders man page part of libgenders (#1220093) * Sat May 2 2015 David Brown - 1.22-1 - new upstream build - fix bugzilla #1217007 * Tue Aug 26 2014 Jitka Plesnikova - 1.21-3 - Perl 5.20 rebuild * Sat Aug 16 2014 Fedora Release Engineering - 1.21-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Mon Jul 07 2014 David Brown - 1.21-1 - New updated version - Wow, they have java bindings now * Sat Jun 07 2014 Fedora Release Engineering - 1.20-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 1.20-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Jul 17 2013 Petr Pisar - 1.20-5 - Perl 5.18 rebuild * Tue Mar 26 2013 David Brown - 1.20-4 * added autoconf to build depends just to be safe * Mon Mar 25 2013 David Brown - 1.20-3 - autoreconf so aarch64 will work on f19 - add perl(Config) for build depends * Wed Feb 13 2013 Fedora Release Engineering - 1.20-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Aug 16 2012 David Brown - 1.20-1 - New Upstream Version * Fri Aug 10 2012 David Brown - 1.18-9 - got a better patch from upstream * Fri Aug 10 2012 David Brown - 1.18-8 - Patched an import bug not finding SystemError class * Thu Jul 19 2012 Fedora Release Engineering - 1.18-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jul 14 2012 David Brown - 1.18-6 - python egginfo files don't exist on el5 * Fri Jul 06 2012 David Brown - 1.18-5 - change mode on python shared objects * Thu Jul 05 2012 David Brown - 1.18-4 - move compat stuff back to hard coded lib directory - remove parallel build doesn't work with yacc deps * Thu Apr 12 2012 David Brown - 1.18-3 - Add some Groups for EPEL 5/6 repos - Fix up Changelogs to add spaces * Wed Apr 11 2012 David Brown - 1.18-2 - Followed advice from bugzilla - Used proper BuildRoot tag - Removed superfluous '.' from end of descriptions - Fixed Requires by adding release and _isa - Changed out RPM_BUILD_ROOT for %%{buildroot} - Added four argument defattr lines in files sections * Mon Apr 9 2012 David Brown - 1.18-1 - initial packaging