From 5486f38b7940f687f0388554e39817254b0fd6a4 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Fri, 23 Sep 2016 10:24:18 -0500 Subject: [PATCH] Add RPM spec and fmpkg specification --- .gitignore | 5 +++++ Makefile | 2 ++ fmpkg.ini | 7 +++++++ python-linuxapi.spec | 45 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 59 insertions(+) create mode 100644 Makefile create mode 100644 fmpkg.ini create mode 100644 python-linuxapi.spec diff --git a/.gitignore b/.gitignore index f40058f..730cf5a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,10 @@ +/BUILD/ +/BUILDROOT/ +/RPMS/ +/SRPMS/ /build/ /dist/ *.egg-info/ __pycache__/ *.py[co] +*.tar.xz diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..52c891b --- /dev/null +++ b/Makefile @@ -0,0 +1,2 @@ +sources: + fmpkg sources diff --git a/fmpkg.ini b/fmpkg.ini new file mode 100644 index 0000000..3389382 --- /dev/null +++ b/fmpkg.ini @@ -0,0 +1,7 @@ +[package] +name = python-linuxapi +sources = linuxapi-{version}.tar.xz + +[linuxapi-{version}.tar.xz] +fetch = null +archive = distutils diff --git a/python-linuxapi.spec b/python-linuxapi.spec new file mode 100644 index 0000000..addd842 --- /dev/null +++ b/python-linuxapi.spec @@ -0,0 +1,45 @@ +%global srcname linuxapi + +Name: python-%{srcname} +Version: 1.0 +Release: 1%{?dist} +Summary: Pure Python bindings for Linux standard library features +License: GPL-2 +URL: http://www.firemon.com/ +Source0: %{srcname}-%{version}.tar.xz + + +BuildRequires: python-setuptools +Requires: python >= 2.7 + +BuildArch: noarch + +%description +%{summary}. + + +%clean +rm -rf %{buildroot} + + +%prep +%setup -q -n %{srcname}-%{version} + + +%build +%{__python} setup.py build + + +%install +rm -rf %{buildroot} +%{__python} setup.py install --skip-build --root=%{buildroot} + + + +%files +%{python_sitelib}/* + + +%changelog +* Fri Sep 23 2016 Dustin C. Hatch 1.0-1 +- New spec for pyhton-linuxapi