diff --git a/.gitignore b/.gitignore index 6abf01f..c05ee9f 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /python-okaara-1.0.21.tar.gz +/python-okaara-1.0.32-1.tar.gz diff --git a/python-okaara.spec b/python-okaara.spec index dbdb3c7..1b78838 100644 --- a/python-okaara.spec +++ b/python-okaara.spec @@ -3,33 +3,43 @@ # -- headers ------------------------------------------------------------------ Name: python-okaara -Version: 1.0.21 -Release: 4%{?dist} +Version: 1.0.32 +%global rel 1 +Release: %{rel}%{?dist} Summary: Python command line utilities Group: Development/Tools License: GPLv2 URL: https://github.com/jdob/okaara -Source0: http://jdob.fedorapeople.org/okaara-src/%{name}-%{version}.tar.gz +Source0: https://github.com/jdob/okaara/archive/%{name}-%{version}-%{rel}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-nose BuildRequires: python-setuptools +BuildRequires: python-babel BuildRequires: python2-devel %description Python library to facilitate the creation of command-line interfaces. %prep -%setup -q +# GitHub gives a weird name for the tarball +%setup -q -n okaara-%{name}-%{version}-%{rel} # -- build -------------------------------------------------------------------- %build -pushd src %{__python} setup.py build -popd + +mkdir -p po/build +for lang in `ls po/*.po` ; do + echo $lang; + lang=`basename $lang .po`; + mkdir -p po/build/$lang/LC_MESSAGES/; + %{__python} setup.py compile_catalog -i po/$lang.po \ + -o po/build/$lang/LC_MESSAGES/okaara.mo; +done # -- install ------------------------------------------------------------------ @@ -37,18 +47,17 @@ popd rm -rf $RPM_BUILD_ROOT # Python setup -pushd src %{__python} setup.py install -O1 --skip-build --root %{buildroot} -popd rm -f $RPM_BUILD_ROOT%{python_sitelib}/rhui*egg-info/requires.txt +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/locale/ +cp -R po/build/* $RPM_BUILD_ROOT/%{_datadir}/locale/ +%find_lang okaara + # -- check -------------------------------------------------------------------- %check -export PYTHONPATH=$RPM_BUILD_ROOT/%{python_sitelib} -pushd test nosetests -popd # -- clean -------------------------------------------------------------------- @@ -57,7 +66,7 @@ rm -rf $RPM_BUILD_ROOT # -- files -------------------------------------------------------------------- -%files +%files -f okaara.lang %{python_sitelib}/okaara/ %{python_sitelib}/okaara*.egg-info %doc LICENSE @@ -68,12 +77,85 @@ rm -rf $RPM_BUILD_ROOT * Sun Aug 04 2013 Fedora Release Engineering - 1.0.21-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild +* Thu May 23 2013 Jay Dobies 1.0.32-1 +- Added empty strings as a possibility for optional parse methods + (jason.dobies@redhat.com) +- Added copyright information (jason.dobies@redhat.com) + +* Wed May 22 2013 Jay Dobies 1.0.31-1 +- Renamed non-negative int parser (jason.dobies@redhat.com) +- Added base set of parsers (jason.dobies@redhat.com) +- Header standardization (jason.dobies@redhat.com) +- Updated sample (jason.dobies@redhat.com) + +* Thu Feb 14 2013 Jay Dobies 1.0.30-1 +- Various clean up (jason.dobies@redhat.com) + +* Thu Feb 14 2013 Jay Dobies 1.0.29-1 +- Fixed deadlock when the threaded spinner times out (jason.dobies@redhat.com) + * Thu Feb 14 2013 Fedora Release Engineering - 1.0.21-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild +* Tue Jan 08 2013 Jay Dobies 1.0.28-1 +- Added support for telling the user if an unexpected option was specified + (jason.dobies@redhat.com) +- Remove Pulp references (jason.dobies@redhat.com) +- Fixed class formatting (jason.dobies@redhat.com) + +* Thu Dec 06 2012 Jay Dobies 1.0.27-1 +- The full path to the section isn't known, so the usage was misleading since + it was missing the parent sections. The change for now is to simply not + include the path to the section and just inform the user of the + section/command relationship. (jason.dobies@redhat.com) +- Fix to find closest match in the event a nested command is not found to make + sure the cloest matching subsection is returned (jason.dobies@redhat.com) +- Reorganized code for pip standards (jason.dobies@redhat.com) +- Clean up for handling of argument - prefixes (jason.dobies@redhat.com) + +* Fri Aug 24 2012 Jay Dobies 1.0.26-1 +- Added syntactic sugar methods to the CLI (jason.dobies@redhat.com) +- Added keyword property to the Option class (jason.dobies@redhat.com) + +* Fri Aug 24 2012 Jay Dobies 1.0.25-1 +- fixing a bug where an Exception instance was assumed to have an attribute not + present in python <2.5, and that attribute was assumed to have a non- + guaranteed value. (mhrivnak@redhat.com) +- Add i18n support. (jbowes@repl.ca) +- Fixed incorrect package_dir after moving setup.py to root + (jason.dobies@redhat.com) +- add some more info to setup.py (jbowes@repl.ca) +- spec: nosetests can run from the toplevel src dir (jbowes@repl.ca) +- Move setup.py to the toplevel (jbowes@repl.ca) +- Added column alignment capabilities (jason.dobies@redhat.com) + +* Thu Jul 26 2012 Jay Dobies 1.0.24-1 +- Added interruptable handling to prompt_password (jason.dobies@redhat.com) +- Changed table and col width to be non-instance to make life a whole lot + easier (jason.dobies@redhat.com) +- Entirely restructured table handling with a pre-parse step + (jason.dobies@redhat.com) +- Changed table_width and col_width to be stored as instance variables + (jason.dobies@redhat.com) +- Removed pointless layer between table and its config + (jason.dobies@redhat.com) + * Sat Jul 21 2012 Fedora Release Engineering - 1.0.21-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild +* Thu Jul 19 2012 Jay Dobies 1.0.23-1 +- Added ability to remove a command from the root CLI (jason.dobies@redhat.com) + +* Wed Jul 18 2012 Jay Dobies 1.0.22-1 +- converted to new-style classes so they are easier to subclass. + (mhrivnak@redhat.com) +- Validate and parse functions are no longer applied to options for which the + user did not supply any input. (mhrivnak@redhat.com) + Added built in validate and parse functions on options + (jason.dobies@redhat.com) +- Some refactoring to support subclasses better (jason.dobies@redhat.com) +- Added color support (naturally) (jason.dobies@redhat.com) + * Mon Jul 09 2012 Jay Dobies 1.0.21-1 - Make sure src is in the python path so tests can run (jason.dobies@redhat.com) @@ -81,7 +163,7 @@ rm -rf $RPM_BUILD_ROOT * Sun Jul 08 2012 Jay Dobies 1.0.20-1 - Removing the explicit python version requirement since it's not needed on Fedora (might still be needed on RHEL5). (jason.dobies@redhat.com) -- Added %check section and %files change for fedora packaging +- Added %%check section and %%files change for fedora packaging (jason.dobies@redhat.com) * Wed May 23 2012 Jay Dobies 1.0.19-1 diff --git a/sources b/sources index c07d2fb..a30a866 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -2d86eed7afd9f386e2a5bf2bd4811a3a python-okaara-1.0.21.tar.gz +053e6bd5272abc80fe13ef1c0035a44f python-okaara-1.0.32-1.tar.gz