# # spec file for package python-parsedatetime # # 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/ # %define modname parsedatetime Name: python-%{modname} Version: 2.1 Release: 1.1 Summary: Parse human-readable date/time text License: Apache-2.0 Group: Development/Libraries/Python Url: https://github.com/regebro/%{modname} Source: %{modname}-%{version}.tar.gz BuildRequires: python-setuptools BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} > 1110 BuildArch: noarch %endif %description Parse human-readable date/time strings. %prep %setup -q -n %{modname}-%{version} %build python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} chmod 775 %{buildroot}%{python_sitelib}/%{modname}/__init__.py %files %defattr(-,root,root) %doc LICENSE.txt CHANGES.txt PKG-INFO %{python_sitelib}/%{modname} %{python_sitelib}/%{modname}-%{version}-py%{py_ver}.egg-info %changelog * Fri Oct 16 2015 t.gruner@katodev.de - Version 1.5 (25 Jun 2015) Issue #99 Which year is implied when given just a month and day? Next and last? question Issue #96 Word boundary issues for specials (on, at, in) in nlp Issue #94 inconsistent application of sourceTime in Calendar.parseDT Issue #87 nlp() doesn't recognize some "next ..." expressions Issue #84 Afternoon? bug Issue #82 'last week' and 'next week' are broken Issue #81 parse returns default time of 0900 with dates like 'next friday' despite passed struct_time bug Issue #78 Link for Travis in README is wrong Issue #72 Enable travis Issue #71 Calendar() class can not be initialized 1.4 (it's fine) Issue #66 Unexpected struct_time flag with Calendar.parse on HTML string Issue #65 NLP false positives Issue #63 Supporting multiple shortweekday abbreviations Issue #61 Short weekday abbreviations bug Issue #56 Parse words to numbers (thirteen => 13) Issue #54 testMonths fails commit 107c7e4655 fix for issue 95 - parsing 'next june 15' commit 2c0c8ec778 Fixed faulty test, "730am" parses as "73:0 am" which is a bug for a later day. commit 6f244e891d Fix "ones" parsing as "1s." Require a word boundary between spelled numbers and units. commit 035818edef Fix "1 day ago" parsing like "1d 1y ago" where "a" within the word "day" is interpreted as 1. commit 45002e6eec Fixes "next week" and similar modifier + unit pairs in nlp() commit 47d2e1d527 Fixed "last week" * Mon Jul 13 2015 toddrme2178@gmail.com - Fix building on SLES 11 * Fri Jul 10 2015 jkeil@suse.de - Fix service file * Tue Jun 9 2015 jkeil@suse.de - Fix source url * Tue Jun 9 2015 jkeil@suse.de - Initial package