[python-phacter] Initial import (#755709)
Dan Radez
radez at fedoraproject.org
Wed Nov 30 20:27:11 UTC 2011
commit 0e5467f39734944f7c69a6cfaa2617a6afb6ac77
Author: Dan Radez <dradez at redhat.com>
Date: Wed Nov 30 15:27:05 2011 -0500
Initial import (#755709)
.gitignore | 1 +
python-phacter.spec | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 62 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..d659c58 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/python-phacter-0.2.0.tar.gz
diff --git a/python-phacter.spec b/python-phacter.spec
new file mode 100644
index 0000000..59465ee
--- /dev/null
+++ b/python-phacter.spec
@@ -0,0 +1,60 @@
+# sitelib for noarch packages
+%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+
+
+Name: python-phacter
+Version: 0.2.0
+Release: 2%{?dist}
+Summary: System fact look up tool
+
+Group: Applications/System
+License: GPLv2
+URL: https://github.com/radez/phacter
+# source tarball can also be generated with ./setup.py rpm
+Source0: http://radez.fedorapeople.org/%{name}-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch: noarch
+BuildRequires: python-devel, python-setuptools, python-netifaces
+Requires: python, python-netifaces
+
+
+%description
+A python tool to report system facts
+
+
+%prep
+%setup -q -n %{name}-%{version}
+
+
+%build
+%{__python} setup.py build
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT/%{_sharedstatedir}/phacter/
+mkdir -p %{buildroot}%{_mandir}/man1/
+
+%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
+cp phacter.1 %{buildroot}%{_mandir}/man1/phacter.1
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING LICENSE
+%doc %{_mandir}/man1/phacter.1.gz
+%{_bindir}/phacter
+%{python_sitelib}/*
+%dir %{_sharedstatedir}/phacter
+
+
+%changelog
+* Mon Nov 28 2011 Dan Radez <dradez at redhat.com> - 0.2.0-2
+- rpmlint reports no errors or warnings
+* Fri Nov 18 2011 Dan Radez <dradez at redhat.com> - 0.2.0-1
+- Initial spec
diff --git a/sources b/sources
index e69de29..3b1cfc0 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+7799b5aea5e3b7aa9f51b951a9e5c221 python-phacter-0.2.0.tar.gz
More information about the scm-commits
mailing list