diff --git a/.gitignore b/.gitignore index e69de29..4dbf954 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/csvdiff-0.1.0.tar.gz diff --git a/csvdiff.removesheban.path b/csvdiff.removesheban.path new file mode 100644 index 0000000..b3fc05e --- /dev/null +++ b/csvdiff.removesheban.path @@ -0,0 +1,14 @@ +diff -ur ../csvdiff-0.1.0-origen/csvdiff/__init__.py ./csvdiff/__init__.py +--- ../csvdiff-0.1.0-origen/csvdiff/__init__.py 2014-03-13 21:54:49.000000000 -0600 ++++ ./csvdiff/__init__.py 2014-12-25 15:22:09.372396344 -0600 +@@ -1,10 +1,3 @@ +-#!/usr/bin/env python +-# -*- coding: utf-8 -*- +-# +-# __init__.py +-# csvdiff +-# +- + from __future__ import absolute_import, print_function, division + + __author__ = 'Lars Yencken' diff --git a/csvdiff.spec b/csvdiff.spec new file mode 100644 index 0000000..e08ce67 --- /dev/null +++ b/csvdiff.spec @@ -0,0 +1,68 @@ +%global with_tests 0 + +Name: csvdiff +Version: 0.1.0 +Release: 3%{?dist} +Summary: Generate a diff between two CSV files on the command-line + +License: BSD +URL: https://github.com/larsyencken/csvdiff +Source0: https://pypi.python.org/packages/source/c/%{name}/%{name}-%{version}.tar.gz +Patch1: csvdiff.removesheban.path + +BuildArch: noarch + +BuildRequires: python3-setuptools +BuildRequires: python3-devel +BuildRequires: PyYAML +Requires: PyYAML + + + +%description +Generate a diff between two CSV files on the command-line. + + +%prep +%setup -q -n %{name}-%{version} +#Remove egg.info +rm -rf %{name}.egg.info + +%patch1 + +%build +%{__python3} setup.py build --quiet + + +%install +%{__python3} setup.py install --skip-build --root %{buildroot} + + + +%if 0%{?with_tests} +%check +%{__python3} setup.py test +%endif # with_tests + + + +%files +%{!?_licensedir:%global license %%doc} +%license LICENSE +%doc AUTHORS.rst CONTRIBUTING.rst HISTORY.rst README.rst +%{_bindir}/* +%{python3_sitelib}/%{name} +%{python3_sitelib}/%{name}-%{version}-py?.?.egg-info + + +%changelog +* Mon Dec 29 2014 William José Moreno Reyes - 0.1.0-3 +- Clean Requires and BuildRequires +- Define %%test to 0 + +* Sat Dec 27 2014 William Jose Moreno Reyes - 0.1.0-2 +- Fix shebang in %%{_bindir} +- Build using Python3 + +* Sun Dec 7 2014 William José Moreno Reyes - 0.1.0-1 +- Inicial packaging diff --git a/sources b/sources index e69de29..ba28c66 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +8cf4d6a02bdb425f04a6bea40eacfa25 csvdiff-0.1.0.tar.gz