%global mod_name nltk Name: python-nltk Epoch: 1 Version: 3.8.1 Release: 7%{?dist} Summary: Natural Language Toolkit # The entire source code is ASL 2.0 except nltk/stem/porter.py is # GPLv2+ with exceptions License: ASL 2.0 and GPLv2+ with exceptions URL: http://www.nltk.org/ Source0: https://github.com/nltk/nltk/archive/%{version}.tar.gz#/%{mod_name}-%{version}.tar.gz BuildArch: noarch %global _description\ NLTK is a Python package that simplifies the construction of programs\ that process natural language; and defines standard interfaces between\ the different components of an NLP system. It was designed primarily\ to help teach graduate and undergraduate students about computational\ linguistics; but it is also useful as a framework for implementing\ research projects. %description %_description %package -n python3-%{mod_name} Summary: Natural Language Toolkit (Python 3) BuildRequires: python3-devel >= 2.5 BuildRequires: python3-setuptools Requires: python3-PyYAML >= 3.09 Requires: python3-numpy python3-matplotlib python3-tkinter %description -n python3-%{mod_name} NLTK is a Python package that simplifies the construction of programs that process natural language; and defines standard interfaces between the different components of an NLP system. It was designed primarily to help teach graduate and undergraduate students about computational linguistics; but it is also useful as a framework for implementing research projects. This package provides the Python 3 build of NLTK. %prep %autosetup -n %{mod_name}-%{version} for f in $(grep -Frl '/usr/bin/env' %{mod_name}); do sed -i -e "s|^#!/usr/bin/env python$|#!%{__python3}|g" $f done %build %py3_build %install %py3_install %check # skip tests since it requires nltk-data and a few utilities not available in # Fedora #%%{__python3} %%{mod_name}/test/runtests.py %files -n python3-%{mod_name} %{_bindir}/%{mod_name} %license LICENSE.txt %doc AUTHORS.md CONTRIBUTING.md ChangeLog README.md %{python3_sitelib}/%{mod_name}/ %{python3_sitelib}/%{mod_name}-*.egg-info/ %changelog * Fri Jul 19 2024 Fedora Release Engineering - 1:3.8.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 1:3.8.1-6 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 1:3.8.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1:3.8.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 1:3.8.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 1:3.8.1-2 - Rebuilt for Python 3.12 * Fri Mar 31 2023 FeRD (Frank Dana) - 1:3.8.1-1 - New upstream release * Fri Jan 20 2023 Fedora Release Engineering - 1:3.6.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1:3.6.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 1:3.6.2-4 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 1:3.6.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 1:3.6.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jul 7 2021 José Matos - 1:3.6.2-1 - update to 3.6.2 * Fri Jun 04 2021 Python Maint - 1:3.4.5-6 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 1:3.4.5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1:3.4.5-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 1:3.4.5-3 - Rebuilt for Python 3.9 * Thu Mar 19 2020 José Matos - 1:3.4.5-2 - Remove /usr/bin/env python from script's headers * Sun Mar 8 2020 Robin Lee - 1:3.4.5-1 - Updated to 3.4.5 (RHBZ#1771376, CVE-2019-14751) * Thu Jan 30 2020 Fedora Release Engineering - 1:3.0.3-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 1:3.0.3-18 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 1:3.0.3-17 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 1:3.0.3-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Jul 20 2019 Miro Hrončok - 1:3.0.3-15 - Subpackage python2-nltk has been removed See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Sat Feb 02 2019 Fedora Release Engineering - 1:3.0.3-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 1:3.0.3-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 1:3.0.3-12 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 1:3.0.3-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Fri Jan 26 2018 Iryna Shcherbina - 1:3.0.3-10 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 1:3.0.3-9 - Python 2 binary package renamed to python2-nltk See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 * Thu Jul 27 2017 Fedora Release Engineering - 1:3.0.3-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1:3.0.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 1:3.0.3-6 - Rebuild for Python 3.6 * Mon Sep 26 2016 Dominik Mierzejewski - 1:3.0.3-5 - rebuilt for matplotlib-2.0.0 * Tue Jul 19 2016 Fedora Release Engineering - 1:3.0.3-4 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 1:3.0.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Nov 12 2015 Kalev Lember - 1:3.0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Fri Jul 03 2015 Parag Nemade - 1:3.0.3-1 - Update to 3.0.3 * Thu Jun 18 2015 Fedora Release Engineering - 1:3.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Fri Oct 24 2014 Robin Lee - 1:3.0.0-1 - Update to 3.0.0, build a python3 subpackage - Drop the included distribute_setup.py - License specified from 'ASL 2.0' to 'ASL 2.0 and GPLv2+ with exceptions' * Sat Jun 07 2014 Fedora Release Engineering - 1:2.0.4-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Thu Aug 8 2013 Robin Lee - 1:2.0.4-5 - Update distribute_setup.py to work with setuptools >= 0.7 * Sun Aug 04 2013 Fedora Release Engineering - 1:2.0.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 1:2.0.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Dec 12 2012 Robin Lee - 1:2.0.4-2 - BuildRequires: python-setuptools * Wed Dec 12 2012 Robin Lee - 1:2.0.4-1 - Update to 2.0.4 * Sat Jul 21 2012 Fedora Release Engineering - 1:2.0.1-0.6.rc1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jan 14 2012 Fedora Release Engineering - 1:2.0.1-0.5.rc1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Apr 12 2011 Robin Lee - 1:2.0.1-0.4.rc1 - Update to 2.0.1rc1 - Requires tkinter * Tue Feb 08 2011 Fedora Release Engineering - 1:2.0-0.4.b9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Aug 30 2010 Robin Lee - 1:2.0-0.3.b9 - update to 2.0b9 * Thu Jul 22 2010 David Malcolm - 1:2.0-0.2.b8 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Mon May 17 2010 Robin Lee - 1:2.0-0.1.b8 - Updated to 2.0b8 - License switched upstream to ASL 2.0 since 2.0b4 - Remove specifications for obsolete Fedora versions - Remove python_sitelib definition - URL and Source0 URL revised - BuildRoot tag removed - BR: tkinter removed, PyYAML added - Requires: tkinter removed - nltk-0.9.2-use-sys-yaml.patch removed - All redundant commands in 'install' section removed - nltk_contrib entry in 'file' section was removed since it will include no file. Upstream split off a new tarball for nltk-contrib. * Sun Jul 26 2009 Fedora Release Engineering - 1:0.9.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering - 1:0.9.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 1:0.9.2-2 - Rebuild for Python 2.6 * Mon Apr 7 2008 Michel Salim - 1:0.9.2-1 - Update to 0.9.2 * Sat Feb 23 2008 Michel Salim - 1:0.9-2 - Use system PyYAML (bug #432329) * Sun Jan 20 2008 Michel Salim - 1:0.9-1 - Update to final 0.9 - Add Epoch to clear upgrade path from (old) 1.4.4 * Sat Sep 22 2007 Michel Salim - 0.9-0.2.b2 - BR on tkinter, it is now needed at build time * Fri Sep 21 2007 Michel Salim - 0.9-0.1.b2 - Updated to 0.9b2 - Renamed back to python-nltk * Mon Dec 18 2006 Michel Salim - 0.6.6-2 - Rebuild for development branch * Mon Oct 30 2006 Michel Salim - 0.6.6-1 - Initial package