Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-updates-src > by-pkgid > 5b32c3029d84d94d2f67ecb75b15ac4e > files > 4

corosync-2.3.5-2.1.mga6.src.rpm

# define alphatag svn1211
%define buildtrunk 0
%{?alphatag: %define buildtrunk 1}
%{?_with_buildtrunk: %define buildtrunk 1}
%define major 4
%define libname %mklibname corosync %major
%define libnamedevel %mklibname -d corosync
#define _disable_ld_no_undefined 1

Name:		corosync
Summary:	The Corosync Cluster Engine and Application Programming Interfaces
Version:	2.3.5
%define subrel 1
Release:	%mkrel 2
License:	BSD
Group:		System/Base
URL:		http://www.corosync.org
Source0:	http://build.clusterlabs.org/corosync/releases/corosync-%{version}.tar.gz
Source1:	http://build.clusterlabs.org/corosync/releases/corosync-%{version}.sha256
Source2:	http://build.clusterlabs.org/corosync/releases/corosync-%{version}.sha256.asc
# MGA#22905
# Based on but rebased:
#Patch1:		https://github.com/corosync/corosync/commit/fc1d5418533c1faf21616b282c2559bed7d361c4.patch
Patch1:		fc1d5418533c1faf21616b282c2559bed7d361c4.patch

# Runtime bits
Requires:	%{libname} >= %{version}-%{release}
Conflicts:	openais <= 0.89, openais-devel <= 0.89

%if %{buildtrunk}
BuildRequires: autoconf
BuildRequires: automake
%endif
BuildRequires: nss-devel
BuildRequires: libqb-devel

%description
This package contains the Corosync Cluster Engine Executive, several default
APIs and libraries, default configuration files, and an init script.

%package	-n %{libname}
Summary:	The Corosync Cluster Engine Libraries
Group:		System/Libraries
Conflicts:	corosync < 0.92-7
Obsoletes:	corosynclib < 1.1.0

%description	-n %{libname}
This package contains corosync libraries.

%package	-n %{libnamedevel}
Summary:	The Corosync Cluster Engine Development Kit
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Requires:	pkgconfig
Provides:	corosync-devel = %{version} corosynclibs-devel = %{version}
Obsoletes:	corosync-devel < 0.92-7
Obsoletes:	corosynclibs-devel < 1.1.0

%description	-n %{libnamedevel}
This package contains include files and man pages used to develop using
The Corosync Cluster Engine APIs.

%prep
%setup -q -n corosync-%{version}
%patch1 -p1 -b .orig

#if %%{buildtrunk}
NOCONFIGURE=1 ./autogen.sh
#endif

%build
#%%{_configure}	CFLAGS="$(echo '%%{optflags}')" \
#		--prefix=%%{_prefix} \
#		--sysconfdir=%%{_sysconfdir} \
#		--localstatedir=%%{_localstatedir} \
#		--with-lcrso-dir=%%{_libexecdir}/lcrso \
#		--libdir=%%{_libdir}
%configure2_5x \
                --enable-systemd \
		--with-systemddir=%{_unitdir}
%make

%install
%make_install

## tree fixup
# drop static libs
rm -f %{buildroot}%{_libdir}/*.a
rm -f %{buildroot}%{_libdir}/*.la
# drop docs and html docs for now
rm -rf %{buildroot}%{_docdir}/*

#add logs directory
install -d %{buildroot}/var/log/%{name}

%post
%_post_service %{name}

%preun
%_preun_service %{name}

%postun
[ "$1" -ge "1" ] && /sbin/service corosync condrestart &>/dev/null || :

%files
%doc LICENSE SECURITY
%{_sbindir}/corosync*
%{_bindir}/corosync*
%{_sysconfdir}/logrotate.d/corosync
%dir %{_sysconfdir}/corosync
%dir %{_sysconfdir}/corosync/service.d
%dir %{_sysconfdir}/corosync/uidgid.d
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%config(noreplace) %{_sysconfdir}/corosync/corosync.conf.example
%config(noreplace) %{_sysconfdir}/corosync/corosync.conf.example.udpu
%dir %{_localstatedir}/lib/corosync
%{_mandir}/man8/corosync_overview.8*
%{_mandir}/man8/corosync-*.8*
%{_mandir}/man8/corosync.8*
%{_mandir}/man8/cmap_keys.8*
%{_mandir}/man8/cmap_overview.8*
%{_mandir}/man8/quorum_overview.8*
%{_mandir}/man5/corosync.conf.5*
%{_mandir}/man5/votequorum.5*
%{_unitdir}/corosync-notifyd.service
%{_unitdir}/corosync.service
%dir /var/log/%{name}

%files -n %{libname}
%{_libdir}/lib*.so.*

%files -n %{libnamedevel}
%doc LICENSE README.recovery
%{_includedir}/corosync/
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man3/*.3*
%{_mandir}/man8/cpg_overview.8*
%{_mandir}/man8/votequorum_overview.8*
%{_mandir}/man8/sam_overview.8*


%changelog
* Sat Apr 14 2018 shlomif <shlomif> 2.3.5-2.1.mga6
  (not released yet)
+ Revision: 1218589
- fix MGA#22905 - security vulns

* Sun Jan 17 2016 daviddavid <daviddavid> 2.3.5-2.mga6
+ Revision: 924890
- switch to %%configure2_5x to fix build
- pass NOCONFIGURE=1 to autogen

* Tue Dec 22 2015 shlomif <shlomif> 2.3.5-1.mga6
+ Revision: 913288
- New version 2.3.5

* Wed Oct 15 2014 umeabot <umeabot> 2.3.4-4.mga5
+ Revision: 742220
- Second Mageia 5 Mass Rebuild

* Thu Sep 18 2014 umeabot <umeabot> 2.3.4-3.mga5
+ Revision: 693688
- Rebuild to fix library dependencies

* Tue Sep 16 2014 umeabot <umeabot> 2.3.4-2.mga5
+ Revision: 678551
- Mageia 5 Mass Rebuild

* Tue Sep 09 2014 ennael <ennael> 2.3.4-1.mga5
+ Revision: 674101
- 2.3.4

* Thu May 08 2014 shlomif <shlomif> 2.3.3-1.mga5
+ Revision: 621195
- New version 2.3.3

* Mon Oct 21 2013 umeabot <umeabot> 2.3.2-2.mga4
+ Revision: 536984
- Mageia 4 Mass Rebuild

* Wed Sep 25 2013 boklm <boklm> 2.3.2-1.mga4
+ Revision: 486085
- Version 2.3.2

* Mon Jan 21 2013 boklm <boklm> 2.3.0-1.mga3
+ Revision: 390617
- Version 2.3.0

* Fri Jan 11 2013 umeabot <umeabot> 2.2.0-2.mga3
+ Revision: 348184
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Wed Jan 09 2013 ennael <ennael> 2.2.0-1.mga3
+ Revision: 344271
- new version
- remove static libraries
- remove unneeded patch

* Tue Jul 31 2012 sander85 <sander85> 2.0.1-1.mga3
+ Revision: 276736
- New version: 2.0.1

* Sat Apr 28 2012 tmb <tmb> 2.0.0-3.mga2
+ Revision: 233640
- Require rpm-helper >= 0.24.8-1 for systemd support

* Fri Apr 27 2012 tmb <tmb> 2.0.0-2.mga2
+ Revision: 233531
- rebuild for versioned rpm-helper requires

* Fri Apr 20 2012 boklm <boklm> 2.0.0-1.mga2
+ Revision: 232061
- version 2.0.0

* Tue Apr 10 2012 boklm <boklm> 1.2.8-4.mga2
+ Revision: 230100
- add service.d config directory

* Tue Apr 03 2012 ennael <ennael> 1.2.8-3.mga2
+ Revision: 228181
- add logdir so that corosync can start

* Tue Jan 11 2011 blino <blino> 1.2.8-2.mga1
+ Revision: 5682
- remove old ldconfig scriptlets
- imported package corosync