diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..016de0d --- /dev/null +++ b/.gitignore @@ -0,0 +1,13 @@ +/1.3.14.tar.gz +/v1.3.15.tar.gz +/v1.3.16.tar.gz +/v1.3.18.tar.gz +/v1.3.19.tar.gz +/v1.3.20.tar.gz +/v1.3.21.tar.gz +/v1.3.22.tar.gz +/v1.4.0.tar.gz +/zpc-v1.4.1.tar.gz +/v1.4.2.tar.gz +/v1.5.0.tar.gz +/v1.5.1.tar.gz diff --git a/dead.package b/dead.package deleted file mode 100644 index 2b6e60e..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Retired: https://pagure.io/releng/issue/12278 diff --git a/sources b/sources new file mode 100644 index 0000000..65e55e9 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +1592751e3eadd78ccca30d5566215155 v1.5.1.tar.gz diff --git a/zanata-python-client.spec b/zanata-python-client.spec new file mode 100644 index 0000000..04bdb63 --- /dev/null +++ b/zanata-python-client.spec @@ -0,0 +1,366 @@ +%{!?__python2: %global __python2 %{__python}} +%{!?python2_sitelib: %global python2_sitelib %{python_sitelib}} +Name: zanata-python-client +Version: 1.5.1 +Release: 1%{?dist} +Summary: Python Client for Zanata Server +License: LGPLv2+ +Group: Applications/Text +URL: http://zanata.org +Source0: https://github.com/zanata/zanata-python-client/archive/v%{version}.tar.gz + +BuildArch: noarch +BuildRequires: python-setuptools +Requires: python-polib >= 1.0.0-1 +Requires: python-httplib2 >= 0.7.4-6 +Requires: python-lxml + +%if 0%{?rhel} + %if 0%{?rhel} < 6 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +Requires: python-hashlib +Requires: python-simplejson +Requires: python-ordereddict + %endif +%endif + +#Conflicts: python-json +BuildRequires: python2-devel + +Provides: flies-python-client = %{version}-%{release} +Obsoletes: flies-python-client < 1.1 + +%description +Zanata Python client is a client that communicate with Zanata server. + +%prep +%setup -q -n %{name}-%{version} + +%build +%{__python2} setup.py build +cp -pr zanataclient/VERSION-FILE build/lib/zanataclient + +%install +%{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT +rm -rf $RPM_BUILD_ROOT/%{_docdir} + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc README.rst COPYING.LESSER zanata.ini zanata_example.xml CHANGELOG +%{_bindir}/* +%{python2_sitelib} + +%changelog +* Wed Oct 26 2016 Sundeep Anand - 1.5.1-1 +- Upstream update to 1.5.1-1 + +* Fri Apr 15 2016 Sundeep Anand - 1.5.0-2 +- add build requires, v1.5.0 release notes: + - Bug 1139950 - Translation files mapping rules + - Bug 1311705 - traceback when trying to push + - ZNTA-303 - podir projects handling + - ZNTA-927 - Project Status and Versions + - ZNTA-929 - failed to retrieve version in non-git environment + - ZNTA-934 - init failed to generate java-client compatible zanata.xml + - ZNTA-936 - error message for unexpected html response + - ZNTA-946 - Cannot push with zanata Python client 1.4.2 + +* Fri Apr 15 2016 Ding-Yi Chen - 1.5.0-1 +- Upstream update to 1.5.0-1 + +* Fri Feb 05 2016 Fedora Release Engineering - 1.4.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Jan 21 2016 Ding-Yi Chen - 1.4.2-1 +- Upstream update to 1.4.2 + +* Wed Jan 20 2016 Jason L Tibbitts III - 1.4.1-4 +- Change define -> global to fix build issue with epel-rpm-macros. + +* Thu Jan 14 2016 Ding-Yi Chen - 1.4.1-3 +Fix the EPEL5 build. + +* Thu Jan 14 2016 Ding-Yi Chen - 1.4.1-2 +- Fix the Fedora 22 rpmlint error. + +* Wed Jan 13 2016 Ding-Yi Chen - 1.4.1-1 +- Upsteam update to 1.4.1 which fixed: + * Improvements + - zanata init Initialize Zanata project configuration + - zanata stats Displays translation statistics for a Zanata project version + * Bug fixes + - Bug 1206995 - Should allow anonymous pull from Zanata + - Bug ZNTA-853 - Crash when pushing local translations + +* Thu Dec 10 2015 Ding-Yi Chen - 1.4.0-1 +- Upsteam update to 1.4.0 which fixed: + - Bug 1215274 - specify minimum percentage completion on pull + - Rename zanatalib/project.py to zanatalib/projectutils.py + - Bug 1156236 - use locale aliases defined in the server + - added ProjectContext, Improved help, fixed code issues + - added and in zanata.xml + - refactor code - added config to centralize rest resources + - Organize exception messages, added test. + - HTTP to HTTPS redirect - auto, if found in httplib2 response + - Rename zanatalib/client.py to zanatalib/resource.py + - flake8 changes and addition of: make flake8 + - added requirements.txt + +* Mon Jul 27 2015 Anish Patil - 1.3.22-1 +- Upstream has released new version + +* Fri Jun 19 2015 Fedora Release Engineering - 1.3.21-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Tue Mar 03 2015 Anish Patil - 1.3.21-1 +- Upstream has released new version + +* Mon Mar 02 2015 Anish Patil - 1.3.20-1 +- Upstream has released new version + +* Mon Feb 23 2015 Anish Patil - 1.3.19-1 +- Upstream has released new version + +* Wed Dec 03 2014 Anish Patil - 1.3.18-1 +- Upstream has released new version + +* Thu Nov 06 2014 Anish Patil - 1.3.16-2 +- New package guidelines,removed doc dir at the end of install + +* Fri Sep 19 2014 Anish Patil - 1.3.16-1 +- Upstream has released new version + +* Fri Jul 25 2014 Anish Patil - 1.3.15-1 +- Incorporated package review comments + +* Thu Jul 24 2014 Anish Patil - 1.3.14-2 +- Incorporated package review comments + +* Tue Jul 22 2014 Anish Patil - 1.3.14-1 +- Upstream has released new version + +* Sun Aug 04 2013 Fedora Release Engineering - 1.3.13-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Fri Feb 15 2013 Fedora Release Engineering - 1.3.13-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Nov 21 2012 Sean Flanigan - 1.3.13-1 +- Use dict instead of nested loop +- Ensure that msgstr_plural is always set for plural strings +- Rename message to poentry for consistency + +* Thu Nov 15 2012 Sean Flanigan - 1.3.12-1 +- Revised test files +- Use PUT instead of POST/PUT when pushing source documents +- Change Flies to Zanata in messages + +* Tue Aug 07 2012 Ding-Yi Chen - 1.3.11-1 +- Updated: CHANGELOG and setup.py + +* Tue Aug 07 2012 Ding-Yi Chen - 1.3.10-1 +- Fixed rhbz#727833, "Copy previous translations:True" is ambiguous + +* Sun Jul 22 2012 Fedora Release Engineering - 1.3.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon Jul 16 2012 James Ni - 1.3.8-1 +- Fix issue of po/publican push and po/publican pull command for project_type +- Fixed rhbz826821, glossary-push failed on big compendium po file +- Add link of trouble shooting page to error message +- Fix bypass ssl certificate check issue +- Change Delete to Deleting + +* Wed Jun 13 2012 James Ni - 1.3.7-1 +- Fixed rhbz#827316, failed to push pot with msgid_plural against 1.6 server +- Fixed rhbz#826798, zanata pull fail to pull +- Fixed rhbz#814593, "TypeError: 'unicode' object does not support item assignment" when pulling translation from server +- Fixed rhbz#820046, Python client generates empty msgctxt "" when pushing +- Fixed rhbz#795643, Python client pushes extracted comments instead of translator comments +- Fix the query param of skeletons +- Add option --disable-ssl-cert to python client +- Add help message for noskeletons option in pull, change content of Error 403 +- Fixed the query param of skeletons +- Implment --push-type option, omit --push-trans when specify --push-type option +- Implement glossary delete command +- Refactoring code and remove duplicate code + +* Thu Apr 26 2012 James Ni - 1.3.5-1 +- Fixed rhbz#814593, "TypeError: 'unicode' object does not support item assignment" when pulling translation from server +- Part of rhbz#736898, implement push-trans-only option in python client so that user can do offline translation +- Fixed rhbz#814503, backtrace for zanata glossary push without "zanata.xml" +- Fixed rhbz#798084, Python client does not show helpful error when missing project id for 'project info' command +- Fixed rhbz#796039, Python client not recognizing source directories with pot files only in sub-directories. +- Fixed rhbz#795643, Python client pushes extracted comments instead of translator comments +- Fixed rhbz#744277, output more informative error message for unescaped quote +- Add msgid_plural and msgstr_plural support in python client (for server >=1.6) +- Add skeletons query parameter support in pull command +- Replace the address of FSF in license +- Add status code to error message + +* Tue Feb 21 2012 James Ni - 1.3.4-1 +- Fixed rhbz#795237: zanata python client still display depreciate help on "version create" +- Fixed rhbz#727386: zanata po push does not assume working directory +- Fixed rhbz#754869: The python client is pulling some files with a wrong path +- Fixed rhbz#768877: python client breaks PO file when no translation found +- Fixed rhbz#748727: US31 As a translator I want the appropriate character encoding for my language to be used so that + the content is saved in the correct encoding format +- Add warning for retired project/version + +* Sat Jan 14 2012 Fedora Release Engineering - 1.3.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Thu Dec 01 2011 James Ni - 1.3.3-1 +- Fixed rhbz#751648: Error reading path names with dots +- Fixed rhbz#754869: The python client is pulling some files with a wrong path +- Fixed rhbz#756617: python client process file name not correctly for file name contain more than one dot +- Fixed rhbz#753719: Python client explodes on F16 + +* Thu Nov 03 2011 James Ni - 1.3.2-1 +- csv format glossary file support +- support msgctxt when pushing po file to server and pull it back +- Fixed rhbz#696474: python client should only delete files from server which no longer exist on client +- Fixed rhbz#690687: python client should log a message for 301 redirects +- Fixed rhbz#738510: --help does not list commands +- Fixed rhbz#740159: python client: pushing with --merge=import does not overwrite the translation on server +- Fixed rhbz#738907: can not disable copytrans option when pushing source to zanata server with --no-copytrans option +- Fixed rhbz#738514: zanata push fails with JSON error +- Fixed rhbz#750675: zanata client pull command should be able to reconstruct msgctxt and msgid + +* Wed Aug 31 2011 James Ni - 1.3.1-1 +- Fix #rhbz734270 Reinstate publican/po push '--import-po' option + +* Tue Aug 23 2011 James Ni - 1.3.0-1 +- Change to version 1.3.0 + +* Wed Jul 20 2011 James Ni - 1.2.6-1 +- Change to version 1.2.6 + +* Thu Jun 02 2011 James Ni - 1.2.5-3 +- Fix error of onditionals of RHEL5 + +* Thu Jun 02 2011 James Ni - 1.2.5-2 +- Add python-simplejson requires for RHEL5 + +* Wed Jun 01 2011 James Ni - 1.2.5-1 +- Bug fix and usability improvement + +* Thu May 05 2011 James Ni - 1.2.4-1 +- Fix rhbz#702192 + +* Wed Apr 27 2011 James Ni - 1.2.3-1 +- Fix rhbz#696474, rhbz#696515, rhbz#696437, rhbz#698028, rhbz#695598, rhbz#690687 + +* Fri Apr 01 2011 James Ni - 1.2.2-1 +- Change to version 1.2.2 + +* Thu Mar 31 2011 James Ni - 1.2.1-2 +- Fixed rpmlint: W: self-obsoletion flies-python-client < 1.3 obsoletes flies-python-client = 1.2.1-1.el6 + +* Thu Mar 31 2011 James Ni - 1.2.1-1 +- Add flies command for fallback + +* Thu Mar 31 2011 James Ni - 1.2.0-2 +- Change the URL, add Provides and Obsoletes, add zanata.ini in %%doc + +* Tue Mar 29 2011 James Ni - 1.2.0-1 +- Rename the flies to zanata, rename fliesclient to zanataclient + +* Thu Mar 10 2011 James Ni - 0.8.1-1 +- Fix bugs(issue 272, issue 274) of retrieve the translation + +* Mon Mar 07 2011 James Ni - 0.8.0-1 +- Stable release + +* Wed Feb 23 2011 James Ni - 0.7.6-1 +- Rename the command line option, add a Logger class for better output, set copytrans default value to true, make the + extensions to a list of gettext and comment. + +* Tue Feb 22 2011 James Ni - 0.7.4-1 +- Fix issue 245:stop processing when type 'n', Add version service, rename the command line option and help info, add + InternalServerError + +* Mon Feb 21 2011 James Ni - 0.7.3-1 +- Fix issue 244, issue 245, issue 247 and issue 30, add command list for 'flies publican', rewrite the README + +* Fri Feb 18 2011 James Ni - 0.7.2-1 +- Rename the gettextutil to publicanutil, Remove the translator from textFlowTarget, Add more help info + +* Tue Feb 08 2011 Fedora Release Engineering - 0.7.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Mon Jan 24 2011 James Ni - 0.7.1-1 +- Fix typo and make help more user-friendly + +* Mon Jan 24 2011 James Ni - 0.7.0-1 +- Add copyTrans option to client + +* Tue Jan 04 2011 James Ni - 0.6.1-1 +- Add exception handler for empty extensions + +* Wed Dec 29 2010 James Ni - 0.6.0-1 +- Create pot file with content retrieved from server, user could choose keep or delete the content on the flies + server when pushing publican + +* Tue Dec 07 2010 James Ni - 0.5.1-1 +- Fix bugs and add some log info for python client + +* Thu Dec 02 2010 James Ni - 0.5.0-1 +- Make the script compatible with python 2.4 + +* Mon Nov 29 2010 James Ni - 0.4.0-1 +- Add command line option for translation folder and importPo, read and write multiple locale, read the flies.xml first + +* Wed Oct 27 2010 James Ni - 0.3.2-1 +- Fix a typo in project creation + +* Fri Oct 22 2010 James Ni - 0.3.1-1 +- Fix an issue in project creation + +* Thu Oct 21 2010 James Ni - 0.3.0-1 +- Fix the issues in extension support and update translation command + +* Thu Oct 21 2010 James Ni - 0.2.0-1 +- Add extension support and update translation command + +* Wed Sep 29 2010 James Ni - 0.1.0-1 +- Modify the user configuration file and command line options + +* Wed Sep 08 2010 James Ni - 0.0.6-1 +- Try to resolve the dependency of python-setuptools + +* Mon Sep 06 2010 James Ni - 0.0.5-2 +- Add requires for python-polib + +* Tue Aug 31 2010 James Ni - 0.0.5-1 +- Rename resservice in flieslib/__init__.py to docservice + +* Mon Aug 30 2010 James Ni - 0.0.4-1 +- Rename module resservice to docservice +- Set encode to UTF-8 when generate hash value for msgid of the po file +- Change functions in flies.py to private +- Fix a exception in projectservice and exception handler in flies +- Provide more "readable" output for httplib2 connection error + +* Wed Aug 25 2010 James Ni - 0.0.3-3 +- Add an error handler for list command +- Add cache to httplib2 + +* Mon Aug 23 2010 James Ni - 0.0.3-2 +- Include the example configuration file +- Add dependency of python-httplib2 for fedora 12(and less) + +* Fri Aug 20 2010 James Ni - 0.0.3-1 +- Modify the __inin__.py for importing the module +- Modify the spec file and fliesrc.txt +- Rewrite README file for giving detail of commands and how to implement flies-python-lib in program +- Add COPYING.LESSER + +* Mon Aug 16 2010 James Ni - 0.0.2-2 +- remove shebang from flies.py + +* Fri Aug 13 2010 James Ni - 0.0.2-1 +- initial package (#623871)