| 
									
										
										
										
											2010-01-15 14:00:38 +00:00
										 |  |  | #
 | 
					
						
							| 
									
										
										
										
											2013-10-24 11:09:21 +00:00
										 |  |  | # spec file for package python-nltk
 | 
					
						
							| 
									
										
										
										
											2010-01-15 14:00:38 +00:00
										 |  |  | #
 | 
					
						
							| 
									
										
										
										
											2018-01-31 11:40:02 +00:00
										 |  |  | # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 | 
					
						
							| 
									
										
										
										
											2010-01-15 14:00:38 +00:00
										 |  |  | #
 | 
					
						
							|  |  |  | # 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/
 | 
					
						
							|  |  |  | #
 | 
					
						
							| 
									
										
										
										
											2018-01-31 11:40:02 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-01-16 11:13:02 +00:00
										 |  |  | %{!?python_module:%define python_module() python-%{**} python3-%{**}}
 | 
					
						
							| 
									
										
										
										
											2018-01-31 11:40:02 +00:00
										 |  |  | %define interps python python3
 | 
					
						
							| 
									
										
										
										
											2010-01-15 14:00:38 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
											  
											
												Accepting request 558587 from home:badshah400:branches:devel:languages:python
- Update to version 3.2.5:
  * Arabic stemmers (ARLSTem, Snowball)
  * NIST MT evaluation metric and added NIST
    international_tokenize
  * Moses tokenizer
  * Document Russian tagger
  * Fix to Stanford segmenter
  * Improve treebank detokenizer, VerbNet, Vader
  * Misc code and documentation cleanups
  * Implement fixes suggested by LGTM
- Convert specfile to python single-spec style.
- Drop unneeded BuildRequires: python-PyYAML, python-xml,
  python-devel; not required for building.
- Change existing Requires to Recommends: these are really needed
  for additional features, and not required for basic nltk usage.
- Add new Recommends: python-scipy, python-matplotlib,
  python-pyparsing, and python-gensim; enables other optional
  features.
- Run fdupes to link-up duplicate files.
- Remove exec permissions for a file not intended to be executed
  (not in exec path, no hashbang, etc.)
- Remove hashbangs from non-executable files.
- Run tests following the suggestion from
  http://www.nltk.org/install.html.
OBS-URL: https://build.opensuse.org/request/show/558587
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nltk?expand=0&rev=9
											
										 
											2017-12-19 18:48:40 +00:00
										 |  |  | %define pyname nltk
 | 
					
						
							| 
									
										
										
										
											2010-01-15 14:00:38 +00:00
										 |  |  | Name:           python-nltk
 | 
					
						
							| 
									
										
											  
											
												Accepting request 558587 from home:badshah400:branches:devel:languages:python
- Update to version 3.2.5:
  * Arabic stemmers (ARLSTem, Snowball)
  * NIST MT evaluation metric and added NIST
    international_tokenize
  * Moses tokenizer
  * Document Russian tagger
  * Fix to Stanford segmenter
  * Improve treebank detokenizer, VerbNet, Vader
  * Misc code and documentation cleanups
  * Implement fixes suggested by LGTM
- Convert specfile to python single-spec style.
- Drop unneeded BuildRequires: python-PyYAML, python-xml,
  python-devel; not required for building.
- Change existing Requires to Recommends: these are really needed
  for additional features, and not required for basic nltk usage.
- Add new Recommends: python-scipy, python-matplotlib,
  python-pyparsing, and python-gensim; enables other optional
  features.
- Run fdupes to link-up duplicate files.
- Remove exec permissions for a file not intended to be executed
  (not in exec path, no hashbang, etc.)
- Remove hashbangs from non-executable files.
- Run tests following the suggestion from
  http://www.nltk.org/install.html.
OBS-URL: https://build.opensuse.org/request/show/558587
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nltk?expand=0&rev=9
											
										 
											2017-12-19 18:48:40 +00:00
										 |  |  | Version:        3.2.5
 | 
					
						
							| 
									
										
										
										
											2011-09-23 12:31:44 +00:00
										 |  |  | Release:        0
 | 
					
						
							| 
									
										
										
										
											2010-01-15 14:00:38 +00:00
										 |  |  | Summary:        Natural Language Toolkit
 | 
					
						
							| 
									
										
										
										
											2011-09-23 12:31:44 +00:00
										 |  |  | License:        Apache-2.0
 | 
					
						
							| 
									
										
										
										
											2013-12-08 13:34:47 +00:00
										 |  |  | Group:          Development/Languages/Python
 | 
					
						
							| 
									
										
											  
											
												Accepting request 558587 from home:badshah400:branches:devel:languages:python
- Update to version 3.2.5:
  * Arabic stemmers (ARLSTem, Snowball)
  * NIST MT evaluation metric and added NIST
    international_tokenize
  * Moses tokenizer
  * Document Russian tagger
  * Fix to Stanford segmenter
  * Improve treebank detokenizer, VerbNet, Vader
  * Misc code and documentation cleanups
  * Implement fixes suggested by LGTM
- Convert specfile to python single-spec style.
- Drop unneeded BuildRequires: python-PyYAML, python-xml,
  python-devel; not required for building.
- Change existing Requires to Recommends: these are really needed
  for additional features, and not required for basic nltk usage.
- Add new Recommends: python-scipy, python-matplotlib,
  python-pyparsing, and python-gensim; enables other optional
  features.
- Run fdupes to link-up duplicate files.
- Remove exec permissions for a file not intended to be executed
  (not in exec path, no hashbang, etc.)
- Remove hashbangs from non-executable files.
- Run tests following the suggestion from
  http://www.nltk.org/install.html.
OBS-URL: https://build.opensuse.org/request/show/558587
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nltk?expand=0&rev=9
											
										 
											2017-12-19 18:48:40 +00:00
										 |  |  | Url:            http://nltk.org/
 | 
					
						
							|  |  |  | Source:         https://files.pythonhosted.org/packages/source/n/nltk/%{pyname}-%{version}.tar.gz
 | 
					
						
							| 
									
										
										
										
											2018-01-31 11:40:02 +00:00
										 |  |  | BuildRequires:  %{interps}
 | 
					
						
							| 
									
										
											  
											
												Accepting request 558587 from home:badshah400:branches:devel:languages:python
- Update to version 3.2.5:
  * Arabic stemmers (ARLSTem, Snowball)
  * NIST MT evaluation metric and added NIST
    international_tokenize
  * Moses tokenizer
  * Document Russian tagger
  * Fix to Stanford segmenter
  * Improve treebank detokenizer, VerbNet, Vader
  * Misc code and documentation cleanups
  * Implement fixes suggested by LGTM
- Convert specfile to python single-spec style.
- Drop unneeded BuildRequires: python-PyYAML, python-xml,
  python-devel; not required for building.
- Change existing Requires to Recommends: these are really needed
  for additional features, and not required for basic nltk usage.
- Add new Recommends: python-scipy, python-matplotlib,
  python-pyparsing, and python-gensim; enables other optional
  features.
- Run fdupes to link-up duplicate files.
- Remove exec permissions for a file not intended to be executed
  (not in exec path, no hashbang, etc.)
- Remove hashbangs from non-executable files.
- Run tests following the suggestion from
  http://www.nltk.org/install.html.
OBS-URL: https://build.opensuse.org/request/show/558587
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nltk?expand=0&rev=9
											
										 
											2017-12-19 18:48:40 +00:00
										 |  |  | BuildRequires:  %{python_module setuptools}
 | 
					
						
							|  |  |  | BuildRequires:  %{python_module six}
 | 
					
						
							| 
									
										
										
										
											2017-03-01 11:23:50 +00:00
										 |  |  | BuildRequires:  fdupes
 | 
					
						
							| 
									
										
										
										
											2018-01-31 11:40:02 +00:00
										 |  |  | BuildRequires:  python-rpm-macros
 | 
					
						
							| 
									
										
											  
											
												Accepting request 558587 from home:badshah400:branches:devel:languages:python
- Update to version 3.2.5:
  * Arabic stemmers (ARLSTem, Snowball)
  * NIST MT evaluation metric and added NIST
    international_tokenize
  * Moses tokenizer
  * Document Russian tagger
  * Fix to Stanford segmenter
  * Improve treebank detokenizer, VerbNet, Vader
  * Misc code and documentation cleanups
  * Implement fixes suggested by LGTM
- Convert specfile to python single-spec style.
- Drop unneeded BuildRequires: python-PyYAML, python-xml,
  python-devel; not required for building.
- Change existing Requires to Recommends: these are really needed
  for additional features, and not required for basic nltk usage.
- Add new Recommends: python-scipy, python-matplotlib,
  python-pyparsing, and python-gensim; enables other optional
  features.
- Run fdupes to link-up duplicate files.
- Remove exec permissions for a file not intended to be executed
  (not in exec path, no hashbang, etc.)
- Remove hashbangs from non-executable files.
- Run tests following the suggestion from
  http://www.nltk.org/install.html.
OBS-URL: https://build.opensuse.org/request/show/558587
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nltk?expand=0&rev=9
											
										 
											2017-12-19 18:48:40 +00:00
										 |  |  | Recommends:     python-gensim
 | 
					
						
							|  |  |  | Recommends:     python-matplotlib
 | 
					
						
							|  |  |  | Recommends:     python-numpy
 | 
					
						
							|  |  |  | Recommends:     python-pyparsing
 | 
					
						
							|  |  |  | Recommends:     python-requests
 | 
					
						
							|  |  |  | Recommends:     python-scipy
 | 
					
						
							| 
									
										
										
										
											2011-09-23 12:31:44 +00:00
										 |  |  | BuildArch:      noarch
 | 
					
						
							| 
									
										
											  
											
												Accepting request 558587 from home:badshah400:branches:devel:languages:python
- Update to version 3.2.5:
  * Arabic stemmers (ARLSTem, Snowball)
  * NIST MT evaluation metric and added NIST
    international_tokenize
  * Moses tokenizer
  * Document Russian tagger
  * Fix to Stanford segmenter
  * Improve treebank detokenizer, VerbNet, Vader
  * Misc code and documentation cleanups
  * Implement fixes suggested by LGTM
- Convert specfile to python single-spec style.
- Drop unneeded BuildRequires: python-PyYAML, python-xml,
  python-devel; not required for building.
- Change existing Requires to Recommends: these are really needed
  for additional features, and not required for basic nltk usage.
- Add new Recommends: python-scipy, python-matplotlib,
  python-pyparsing, and python-gensim; enables other optional
  features.
- Run fdupes to link-up duplicate files.
- Remove exec permissions for a file not intended to be executed
  (not in exec path, no hashbang, etc.)
- Remove hashbangs from non-executable files.
- Run tests following the suggestion from
  http://www.nltk.org/install.html.
OBS-URL: https://build.opensuse.org/request/show/558587
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nltk?expand=0&rev=9
											
										 
											2017-12-19 18:48:40 +00:00
										 |  |  | %python_subpackages
 | 
					
						
							| 
									
										
										
										
											2010-01-15 14:00:38 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %description
 | 
					
						
							|  |  |  | NLTK -- the Natural Language Toolkit -- is a suite of open source
 | 
					
						
							|  |  |  | Python modules, data sets and tutorials supporting research and
 | 
					
						
							|  |  |  | development in Natural Language Processing.
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %prep
 | 
					
						
							| 
									
										
											  
											
												Accepting request 558587 from home:badshah400:branches:devel:languages:python
- Update to version 3.2.5:
  * Arabic stemmers (ARLSTem, Snowball)
  * NIST MT evaluation metric and added NIST
    international_tokenize
  * Moses tokenizer
  * Document Russian tagger
  * Fix to Stanford segmenter
  * Improve treebank detokenizer, VerbNet, Vader
  * Misc code and documentation cleanups
  * Implement fixes suggested by LGTM
- Convert specfile to python single-spec style.
- Drop unneeded BuildRequires: python-PyYAML, python-xml,
  python-devel; not required for building.
- Change existing Requires to Recommends: these are really needed
  for additional features, and not required for basic nltk usage.
- Add new Recommends: python-scipy, python-matplotlib,
  python-pyparsing, and python-gensim; enables other optional
  features.
- Run fdupes to link-up duplicate files.
- Remove exec permissions for a file not intended to be executed
  (not in exec path, no hashbang, etc.)
- Remove hashbangs from non-executable files.
- Run tests following the suggestion from
  http://www.nltk.org/install.html.
OBS-URL: https://build.opensuse.org/request/show/558587
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nltk?expand=0&rev=9
											
										 
											2017-12-19 18:48:40 +00:00
										 |  |  | %setup -q -n %{pyname}-%{version}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | sed -i "1,4{/\/usr\/bin\/env/d}" nltk/corpus/reader/knbc.py
 | 
					
						
							|  |  |  | sed -i "1,4{/\/usr\/bin\/env/d}" nltk/test/runtests.py
 | 
					
						
							|  |  |  | sed -i "1,4{/\/usr\/bin\/env/d}" nltk/test/unit/test_tgrep.py
 | 
					
						
							|  |  |  | sed -i "1,4{/\/usr\/bin\/env/d}" nltk/tgrep.py
 | 
					
						
							|  |  |  | sed -i "1,4{/\/usr\/bin\/env/d}" nltk/tokenize/stanford_segmenter.py
 | 
					
						
							| 
									
										
										
										
											2010-01-15 14:00:38 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %build
 | 
					
						
							| 
									
										
											  
											
												Accepting request 558587 from home:badshah400:branches:devel:languages:python
- Update to version 3.2.5:
  * Arabic stemmers (ARLSTem, Snowball)
  * NIST MT evaluation metric and added NIST
    international_tokenize
  * Moses tokenizer
  * Document Russian tagger
  * Fix to Stanford segmenter
  * Improve treebank detokenizer, VerbNet, Vader
  * Misc code and documentation cleanups
  * Implement fixes suggested by LGTM
- Convert specfile to python single-spec style.
- Drop unneeded BuildRequires: python-PyYAML, python-xml,
  python-devel; not required for building.
- Change existing Requires to Recommends: these are really needed
  for additional features, and not required for basic nltk usage.
- Add new Recommends: python-scipy, python-matplotlib,
  python-pyparsing, and python-gensim; enables other optional
  features.
- Run fdupes to link-up duplicate files.
- Remove exec permissions for a file not intended to be executed
  (not in exec path, no hashbang, etc.)
- Remove hashbangs from non-executable files.
- Run tests following the suggestion from
  http://www.nltk.org/install.html.
OBS-URL: https://build.opensuse.org/request/show/558587
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nltk?expand=0&rev=9
											
										 
											2017-12-19 18:48:40 +00:00
										 |  |  | %python_build
 | 
					
						
							| 
									
										
										
										
											2010-01-15 14:00:38 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %install
 | 
					
						
							| 
									
										
											  
											
												Accepting request 558587 from home:badshah400:branches:devel:languages:python
- Update to version 3.2.5:
  * Arabic stemmers (ARLSTem, Snowball)
  * NIST MT evaluation metric and added NIST
    international_tokenize
  * Moses tokenizer
  * Document Russian tagger
  * Fix to Stanford segmenter
  * Improve treebank detokenizer, VerbNet, Vader
  * Misc code and documentation cleanups
  * Implement fixes suggested by LGTM
- Convert specfile to python single-spec style.
- Drop unneeded BuildRequires: python-PyYAML, python-xml,
  python-devel; not required for building.
- Change existing Requires to Recommends: these are really needed
  for additional features, and not required for basic nltk usage.
- Add new Recommends: python-scipy, python-matplotlib,
  python-pyparsing, and python-gensim; enables other optional
  features.
- Run fdupes to link-up duplicate files.
- Remove exec permissions for a file not intended to be executed
  (not in exec path, no hashbang, etc.)
- Remove hashbangs from non-executable files.
- Run tests following the suggestion from
  http://www.nltk.org/install.html.
OBS-URL: https://build.opensuse.org/request/show/558587
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nltk?expand=0&rev=9
											
										 
											2017-12-19 18:48:40 +00:00
										 |  |  | %python_install
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %{python_expand %fdupes -s %{buildroot}%{$python_sitelib}/
 | 
					
						
							|  |  |  | chmod -x %{buildroot}%{$python_sitelib}/nltk/test/dependency.doctest
 | 
					
						
							|  |  |  | }
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | %check
 | 
					
						
							|  |  |  | # FOLLOWING http://www.nltk.org/install.html
 | 
					
						
							|  |  |  | %python_exec -c "import nltk" || exit 1
 | 
					
						
							| 
									
										
										
										
											2010-01-15 14:00:38 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
											  
											
												Accepting request 558587 from home:badshah400:branches:devel:languages:python
- Update to version 3.2.5:
  * Arabic stemmers (ARLSTem, Snowball)
  * NIST MT evaluation metric and added NIST
    international_tokenize
  * Moses tokenizer
  * Document Russian tagger
  * Fix to Stanford segmenter
  * Improve treebank detokenizer, VerbNet, Vader
  * Misc code and documentation cleanups
  * Implement fixes suggested by LGTM
- Convert specfile to python single-spec style.
- Drop unneeded BuildRequires: python-PyYAML, python-xml,
  python-devel; not required for building.
- Change existing Requires to Recommends: these are really needed
  for additional features, and not required for basic nltk usage.
- Add new Recommends: python-scipy, python-matplotlib,
  python-pyparsing, and python-gensim; enables other optional
  features.
- Run fdupes to link-up duplicate files.
- Remove exec permissions for a file not intended to be executed
  (not in exec path, no hashbang, etc.)
- Remove hashbangs from non-executable files.
- Run tests following the suggestion from
  http://www.nltk.org/install.html.
OBS-URL: https://build.opensuse.org/request/show/558587
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nltk?expand=0&rev=9
											
										 
											2017-12-19 18:48:40 +00:00
										 |  |  | %files %{python_files}
 | 
					
						
							| 
									
										
										
										
											2016-10-15 13:47:44 +00:00
										 |  |  | %doc LICENSE.txt
 | 
					
						
							| 
									
										
											  
											
												Accepting request 558587 from home:badshah400:branches:devel:languages:python
- Update to version 3.2.5:
  * Arabic stemmers (ARLSTem, Snowball)
  * NIST MT evaluation metric and added NIST
    international_tokenize
  * Moses tokenizer
  * Document Russian tagger
  * Fix to Stanford segmenter
  * Improve treebank detokenizer, VerbNet, Vader
  * Misc code and documentation cleanups
  * Implement fixes suggested by LGTM
- Convert specfile to python single-spec style.
- Drop unneeded BuildRequires: python-PyYAML, python-xml,
  python-devel; not required for building.
- Change existing Requires to Recommends: these are really needed
  for additional features, and not required for basic nltk usage.
- Add new Recommends: python-scipy, python-matplotlib,
  python-pyparsing, and python-gensim; enables other optional
  features.
- Run fdupes to link-up duplicate files.
- Remove exec permissions for a file not intended to be executed
  (not in exec path, no hashbang, etc.)
- Remove hashbangs from non-executable files.
- Run tests following the suggestion from
  http://www.nltk.org/install.html.
OBS-URL: https://build.opensuse.org/request/show/558587
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nltk?expand=0&rev=9
											
										 
											2017-12-19 18:48:40 +00:00
										 |  |  | %{python_sitelib}/%{pyname}/
 | 
					
						
							|  |  |  | %{python_sitelib}/%{pyname}-%{version}-py%{py_ver}.egg-info/
 | 
					
						
							| 
									
										
										
										
											2010-01-15 14:00:38 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | %changelog
 |