zlopez / centos / centpkg

Forked from centos/centpkg 3 years ago
Clone

Blame centpkg.spec

Brian Stinson 10bb17
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
Brian Stinson 10bb17
Brian Stinson 10bb17
Name:		centpkg
Brian Stinson f2820f
Version:	0.2
Brian Stinson f2820f
Release:	1%{?dist}
Brian Stinson 10bb17
Summary:	CentOS utility for working with dist-git
Brian Stinson 10bb17
Brian Stinson 10bb17
Group:	    Applications/System
Brian Stinson 10bb17
License:	GPLv2+
Brian Stinson 10bb17
URL:		https://git.centos.org/summary/centpkg.git
Brian Stinson 10bb17
Source0:	centpkg-%{version}.tar.gz
Brian Stinson 10bb17
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root%(%{__id_u} -n)
Brian Stinson 10bb17
Brian Stinson 10bb17
# CentOS Distributed Packages
Brian Stinson 10bb17
Requires:   redhat-rpm-config	
Brian Stinson 10bb17
Requires:   python-pycurl
Brian Stinson 10bb17
Brian Stinson 10bb17
# EPEL Distributed Packages
Brian Stinson 10bb17
Requires:   pyrpkg >= 1.17 
Brian Stinson 10bb17
Requires:   koji 
Brian Stinson 10bb17
Brian Stinson 10bb17
BuildArch:  noarch
Brian Stinson 10bb17
Brian Stinson 10bb17
# CentOS Distributed build-requires
Brian Stinson 10bb17
BuildRequires: python-devel, python-setuptools
Brian Stinson 10bb17
Brian Stinson 10bb17
# EPEL Distributed build-requires
Brian Stinson 10bb17
BuildRequires: pyrpkg
Brian Stinson 10bb17
Brian Stinson 10bb17
%description
Brian Stinson 10bb17
Provides the centpkg command for working with dist-git
Brian Stinson 10bb17
Brian Stinson 10bb17
%prep
Brian Stinson 10bb17
%setup -q
Brian Stinson 10bb17
Brian Stinson 10bb17
Brian Stinson 10bb17
%build
Brian Stinson 10bb17
%{__python} setup.py build
Brian Stinson 10bb17
Brian Stinson 10bb17
%install
Brian Stinson 10bb17
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
Brian Stinson 10bb17
Brian Stinson 10bb17
%clean
Brian Stinson 10bb17
rm -rf %{buildroot}
Brian Stinson 10bb17
Brian Stinson 10bb17
Brian Stinson 10bb17
%files
Brian Stinson 10bb17
%defattr(-,root,root,-)
Brian Stinson 10bb17
%doc README.md COPYING
Brian Stinson 10bb17
%config(noreplace) %{_sysconfdir}/rpkg
Brian Stinson 10bb17
%{_bindir}/%{name}
Brian Stinson 10bb17
%{python_sitelib}/*
Brian Stinson 10bb17
Brian Stinson 10bb17
Brian Stinson 10bb17
%changelog
Brian Stinson f2820f
* Sat Nov 23 2014 Brian Stinson bstinson@ksu.edu - 0.2-1
Brian Stinson f2820f
- The srpm workflow to the CBS works now
Brian Stinson f2820f
Brian Stinson 10bb17
* Sat Jul 05 2014 Brian Stinson bstinson@ksu.edu - 0.1-2
Brian Stinson 10bb17
- Update readme and add exception checking when running toplevel commands
Brian Stinson 10bb17
Brian Stinson 10bb17
* Sat Jul 05 2014 Brian Stinson bstinson@ksu.edu - 0.1-1
Brian Stinson 10bb17
- Local builds and mockbuilds work 
Brian Stinson 10bb17
Brian Stinson 10bb17
Brian Stinson 10bb17