Add RPM spec and fmpkg specification

master
Dustin C. Hatch 2016-09-23 10:24:18 -05:00
parent 2c2c55d0ef
commit 5486f38b79
4 changed files with 59 additions and 0 deletions

5
.gitignore vendored
View File

@ -1,5 +1,10 @@
/BUILD/
/BUILDROOT/
/RPMS/
/SRPMS/
/build/ /build/
/dist/ /dist/
*.egg-info/ *.egg-info/
__pycache__/ __pycache__/
*.py[co] *.py[co]
*.tar.xz

2
Makefile Normal file
View File

@ -0,0 +1,2 @@
sources:
fmpkg sources

7
fmpkg.ini Normal file
View File

@ -0,0 +1,7 @@
[package]
name = python-linuxapi
sources = linuxapi-{version}.tar.xz
[linuxapi-{version}.tar.xz]
fetch = null
archive = distutils

45
python-linuxapi.spec Normal file
View File

@ -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 <dustin.hatch@firemon.com> 1.0-1
- New spec for pyhton-linuxapi