File cvrfparse.spec of Package cvrfparse

#
# spec file for package cvrfparse
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           cvrfparse
Summary:        A tool for parsing and validating CVRF data
License:        MIT
Group:          Development/Tools/Other
Version:        1.0
Release:        0
Url:            https://pypi.python.org/pypi/cvrfparse/
Source0:        https://pypi.python.org/packages/source/c/cvrfparse/cvrfparse-%{version}.tar.gz
# from their GIT repo at https://github.com/mschiffm/cvrfparse.git
Source1:	LICENSE
BuildRequires:	python
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
A python library and CLI tool for extracting data out of a CVRF document.
For full documentation please see the Cisco Security blog entitled "Tools of 
the Trade: cvrfparse" at http://blogs.cisco.com/security/tools-of-the-trade-cvrfparse/

%prep
%setup -q

%build
export CFLAGS="%{optflags}"
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
cp %{SOURCE1} .

%files 
%defattr(-, root, root)
%doc LICENSE README
%{python_sitearch}/*

%changelog
openSUSE Build Service is sponsored by