[CentOS-devel] [PATCH] add in a starter specfile
Brian Stinson
bstinson at ksu.edu
Sun Jul 6 20:53:18 UTC 2014
---
centpkg.spec | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 63 insertions(+), 0 deletions(-)
create mode 100644 centpkg.spec
diff --git a/centpkg.spec b/centpkg.spec
new file mode 100644
index 0000000..ea2d226
--- /dev/null
+++ b/centpkg.spec
@@ -0,0 +1,63 @@
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+
+Name: centpkg
+Version: 0.1
+Release: 2%{?dist}
+Summary: CentOS utility for working with dist-git
+
+Group: Applications/System
+License: GPLv2+
+URL: https://git.centos.org/summary/centpkg.git
+Source0: centpkg-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root%(%{__id_u} -n)
+
+# CentOS Distributed Packages
+Requires: redhat-rpm-config
+Requires: python-pycurl
+
+# EPEL Distributed Packages
+Requires: pyrpkg >= 1.17
+Requires: koji
+
+BuildArch: noarch
+
+# CentOS Distributed build-requires
+BuildRequires: python-devel, python-setuptools
+
+# EPEL Distributed build-requires
+BuildRequires: pyrpkg
+
+%description
+Provides the centpkg command for working with dist-git
+
+%prep
+%setup -q
+
+
+%build
+%{__python} setup.py build
+
+%install
+%{__python} setup.py install -O1 --skip-build --root %{buildroot}
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc README.md COPYING
+%config(noreplace) %{_sysconfdir}/rpkg
+%{_bindir}/%{name}
+%{python_sitelib}/*
+
+
+%changelog
+* Sat Jul 05 2014 Brian Stinson bstinson at ksu.edu - 0.1-2
+- Update readme and add exception checking when running toplevel commands
+
+* Sat Jul 05 2014 Brian Stinson bstinson at ksu.edu - 0.1-1
+- Local builds and mockbuilds work
+
+
+
--
1.7.1
More information about the CentOS-devel
mailing list