Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-csvkit for openSUSE:Factory 
checked in at 2021-03-02 12:33:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-csvkit (Old)
 and      /work/SRC/openSUSE:Factory/.python-csvkit.new.2378 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-csvkit"

Tue Mar  2 12:33:57 2021 rev:12 rq:875840 version:1.0.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-csvkit/python-csvkit.changes      
2020-05-28 09:20:04.273291448 +0200
+++ /work/SRC/openSUSE:Factory/.python-csvkit.new.2378/python-csvkit.changes    
2021-03-02 12:45:38.684365271 +0100
@@ -1,0 +2,8 @@
+Sun Feb 28 20:32:54 UTC 2021 - Ben Greiner <[email protected]>
+
+- Add testdbf_converted.csv to fix a test failure since
+  agate-dbf 0.2.2 -- gh#wireservice/csvkit#1073
+- Make rpmlint happy by expanding the u-a install scripts early.
+  (Keep all the cli commands as their own u-a master links.)
+
+-------------------------------------------------------------------

New:
----
  testdbf_converted.csv

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-csvkit.spec ++++++
--- /var/tmp/diff_new_pack.VpBrzk/_old  2021-03-02 12:45:39.168365689 +0100
+++ /var/tmp/diff_new_pack.VpBrzk/_new  2021-03-02 12:45:39.168365689 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-csvkit
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -26,7 +26,8 @@
 License:        MIT
 Group:          Development/Languages/Python
 URL:            https://github.com/wireservice/csvkit
-Source:         
https://files.pythonhosted.org/packages/source/c/csvkit/csvkit-%{version}.tar.gz
+Source0:        
https://files.pythonhosted.org/packages/source/c/csvkit/csvkit-%{version}.tar.gz
+Source1:        
https://raw.githubusercontent.com/wireservice/csvkit/5f22e664121b13d9ff005a9206873a8f97431dca/examples/testdbf_converted.csv
 BuildRequires:  %{python_module SQLAlchemy >= 0.9.3}
 BuildRequires:  %{python_module Sphinx >= 1.0.7}
 BuildRequires:  %{python_module aenum}
@@ -58,6 +59,10 @@
 %setup -q -n csvkit-%{version}
 # find and remove unneeded shebangs
 find csvkit -name "*.py" | xargs sed -i '1 {/^#!/ d}'
+# agate-dbf >= 0.2.2 creates uppercase fieldnames for this example file -- 
gh#wireservice/csvkit#1073
+%if %{pkg_vcmp python3-agate-dbf >= 0.2.2}
+cp %{SOURCE1} examples/testdbf_converted.csv
+%endif
 
 %build
 %python_build
@@ -74,33 +79,22 @@
 %python_exec -m unittest discover -s tests/ -v
 
 %post
-for b in %{binaries}; do
-  %python_install_alternative $b
-done
+%{lua:for b in rpm.expand("%{binaries}"):gmatch("%S+") do
+  print(rpm.expand("%python_install_alternative " .. b))
+end}
 
 %postun
-for b in %{binaries}; do
-  %python_uninstall_alternative $b
-done
+%{lua:for b in rpm.expand("%{binaries}"):gmatch("%S+") do
+  print(rpm.expand("%python_uninstall_alternative " .. b))
+end}
 
 %files %{python_files}
 %license COPYING
 %doc AUTHORS.rst CHANGELOG.rst README.rst
-%python_alternative %{_bindir}/csvclean
-%python_alternative %{_bindir}/csvcut
-%python_alternative %{_bindir}/csvformat
-%python_alternative %{_bindir}/csvgrep
-%python_alternative %{_bindir}/csvjoin
-%python_alternative %{_bindir}/csvjson
-%python_alternative %{_bindir}/csvlook
-%python_alternative %{_bindir}/csvpy
-%python_alternative %{_bindir}/csvsort
-%python_alternative %{_bindir}/csvsql
-%python_alternative %{_bindir}/csvstack
-%python_alternative %{_bindir}/csvstat
-%python_alternative %{_bindir}/in2csv
-%python_alternative %{_bindir}/sql2csv
-%{python_sitelib}/csvkit-%{version}-py*.egg-info
+%{lua:for b in rpm.expand("%{binaries}"):gmatch("%S+") do
+  print(rpm.expand("%python_alternative %{_bindir}/" .. b))
+end}
+%{python_sitelib}/csvkit-%{version}*-info
 %{python_sitelib}/csvkit/
 
 %changelog

++++++ testdbf_converted.csv ++++++
STATEFP10,CD111FP,GEOID10,NAMELSAD10,LSAD10,CDSESSN,MTFCC10,FUNCSTAT10,ALAND10,AWATER10,INTPTLAT10,INTPTLON10
27,8,2708,Congressional District 
8,C2,111,G5200,False,71546663636,12416573076,47.2400052,-92.9323194
27,5,2705,Congressional District 
5,C2,111,G5200,False,320220379,15485125,44.9781144,-93.2928317
27,4,2704,Congressional District 
4,C2,111,G5200,False,510623511,58464019,44.9957711,-93.0835230
27,2,2702,Congressional District 
2,C2,111,G5200,False,7826702653,340127460,44.5338366,-93.2513206
27,1,2701,Congressional District 
1,C2,111,G5200,False,34462275389,554678308,43.8952354,-93.9040300
27,6,2706,Congressional District 
6,C2,111,G5200,False,7951908435,431134882,45.3830033,-93.8845885
27,7,2707,Congressional District 
7,C2,111,G5200,False,82410267758,4987979498,46.6966838,-95.6752445
27,3,2703,Congressional District 
3,C2,111,G5200,False,1203647438,126012269,45.0212030,-93.5130863

Reply via email to