asaleh / centos / centpkg

Forked from centos/centpkg 2 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
894f00
Version:	0.4.6
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
a394b1
%setup -q -c
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 d3f316
%config %{_sysconfdir}/rpkg/centpkg.conf
Brian Stinson 10bb17
%{_bindir}/%{name}
Brian Stinson 10bb17
%{python_sitelib}/*
Brian Stinson 10bb17
Brian Stinson 10bb17
Brian Stinson 10bb17
%changelog
894f00
* Mon Nov 28 2016 brian@bstinson.com 0.4.6-1
894f00
- Tracking updates to rpkg (thanks pavlix)
894f00
- Fix the URL building code in the sources method
894f00
Brian Stinson 38f04b
* Sat Jan 31 2015 Brian Stinson bstinson@ksu.edu - 0.4.4-1
Brian Stinson 38f04b
- New version correcting the anonymous pull URLs
Brian Stinson 38f04b
Brian Stinson 3382ae
* Sun Dec 14 2014 Brian Stinson bstinson@ksu.edu - 0.4.3-1
Brian Stinson 3382ae
- Use the authenticated git url for centpkg pulls
Brian Stinson 3382ae
Brian Stinson d3f316
* Sun Dec 14 2014 Brian Stinson bstinson@ksu.edu - 0.4.2-1
Brian Stinson d3f316
- Fix the koji config path in centpkg.conf
Brian Stinson d3f316
Brian Stinson 02cccf
* Sun Dec 14 2014 Brian Stinson bstinson@ksu.edu - 0.4.1-1
Brian Stinson 02cccf
- Fix a disttag regression and add a "patch" version number
Brian Stinson 02cccf
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