%define name pcs %define version 0.9.26 %define release 2 Name: %{name} Version: %{version} Release: %mkrel %release License: GPLv2 URL: http://github.com/feist/pcs Group: System/Base BuildArch: noarch BuildRequires: libpython-devel Summary: Pacemaker Configuration System Source0: http://people.redhat.com/cfeist/pcs/pcs-%{version}.tar.gz Patch0: rhel6fix.patch Requires: pacemaker %description pcs is a corosync and pacemaker configuration tool. It permits users to easily view, modify and created pacemaker based clusters. %prep %setup -q %apply_patches %build %install rm -rf $RPM_BUILD_ROOT pwd make install DESTDIR=$RPM_BUILD_ROOT PYTHON_SITELIB=%{python_sitelib} chmod 755 $RPM_BUILD_ROOT/%{python_sitelib}/%{name}/%{name}.py %files %defattr(-,root,root,-) %{python_sitelib}/%{name} %{python_sitelib}/%{name}-%{version}-py2.*.egg-info %{_sbindir}/pcs %doc COPYING README %changelog * Sun Jan 13 2013 umeabot <umeabot> 0.9.26-2.mga3 + Revision: 362663 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Thu Jan 10 2013 ennael <ennael> 0.9.26-1.mga3 + Revision: 344666 - import from RHEL - fix group - imported package pcs