%ifarch %{java_arches} %global JAVA 1 %else %global JAVA 0 %endif Summary: A full-service natural language dependency parser Name: link-grammar Version: 5.12.3 Release: 8%{?dist} License: LGPL-2.1-or-later Source: http://www.abisource.com/downloads/link-grammar/%{version}/link-grammar-%{version}.tar.gz Patch0: java8.patch URL: http://abisource.com/projects/link-grammar/ BuildRequires: hunspell-devel, libedit-devel, perl-devel, python3-devel, python3-setuptools %if %{JAVA} BuildRequires: java-devel, jpackage-utils, ant %endif BuildRequires: perl-generators, swig, minisat2-devel, gcc-c++ BuildRequires: make, flex, pcre2-devel %description A full-service natural language dependency parser for English and Russian, with prototypes for other assorted languages. %package devel Summary: Support files necessary to compile applications with liblink-grammar Requires: link-grammar = %{version}-%{release} %description devel Libraries, headers, and support files needed for using liblink-grammar. %if %{JAVA} %package java Summary: Java libraries for liblink-grammar Requires: java-headless >= 1:1.6.0 Requires: jpackage-utils Requires: link-grammar = %{version}-%{release} %description java Java libraries for liblink-grammar %package java-devel Summary: Support files necessary to compile Java applications with liblink-grammar Requires: link-grammar-java = %{version}-%{release} Requires: link-grammar-devel = %{version}-%{release} %description java-devel Libraries for developing Java components using liblink-grammar. %endif %package perl Summary: Perl libraries for liblink-grammar Requires: perl-interpreter Requires: link-grammar = %{version}-%{release} %description perl Perl libraries for liblink-grammar %package python3 Summary: Python 3 libraries for liblink-grammar Requires: link-grammar = %{version}-%{release} %description python3 Python 3 libraries for liblink-grammar %prep %setup -q %patch -P 0 -p0 %build %if %{JAVA} # help configure find jni.h export JAVA_HOME=%{java_home} %endif PYTHON_NOVERSIONCHECK=1 PYTHON=%{__python3} PYTHON_VERSION=%{python3_version} %configure --disable-static --enable-pthreads --disable-aspell --enable-perl-bindings sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool #make # currently the build system can not handle smp_flags properly make %{?_smp_mflags} %install make DESTDIR=$RPM_BUILD_ROOT install %if %{JAVA} mv $RPM_BUILD_ROOT/%{_datadir}/java/linkgrammar-%{version}.jar $RPM_BUILD_ROOT/%{_datadir}/java/linkgrammar.jar %endif mkdir -p $RPM_BUILD_ROOT/%{_libdir}/perl5/ mv $RPM_BUILD_ROOT%{_prefix}/local/lib*/perl5/* $RPM_BUILD_ROOT/%{_libdir}/perl5/ find $RPM_BUILD_ROOT/%{_libdir}/ -name '*.la' | xargs rm -f %files %license LICENSE %doc AUTHORS %{_bindir}/* %{_libdir}/liblink-grammar.so.5* %{_datadir}/link-grammar %{_mandir}/man1/link-parser.1* %{_mandir}/man1/link-generator.1* %files devel %{_libdir}/liblink-grammar.so %{_libdir}/pkgconfig/link-grammar.pc %{_includedir}/link-grammar %if %{JAVA} %files java %{_libdir}/liblink-grammar-java.so.5* %{_javadir}/linkgrammar.jar %files java-devel %{_libdir}/liblink-grammar-java.so %endif %files perl %{_libdir}/perl5/* %files python3 %{python3_sitelib}/linkgrammar* %{python3_sitearch}/linkgrammar* %ldconfig_scriptlets %if %{JAVA} %ldconfig_scriptlets java %endif %changelog * Fri Jun 07 2024 Python Maint - 5.12.3-8 - Rebuilt for Python 3.13 * Tue Mar 12 2024 Gwyn Ciesla - 5.12.3-7 - Fix FTBFS * Thu Jan 25 2024 Fedora Release Engineering - 5.12.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 5.12.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 5.12.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jul 11 2023 Jitka Plesnikova - 5.12.3-3 - Perl 5.38 rebuild * Tue Jun 13 2023 Python Maint - 5.12.3-2 - Rebuilt for Python 3.12 * Mon Mar 27 2023 Gwyn Ciesla - 5.12.3-1 - 5.12.3 * Fri Mar 10 2023 Gwyn Ciesla - 5.12.2-1 - 5.12.2 * Tue Mar 07 2023 Gwyn Ciesla - 5.12.1-2 - migrated to SPDX license * Tue Mar 07 2023 Gwyn Ciesla - 5.12.1-1 - 5.12.1 * Thu Jan 19 2023 Fedora Release Engineering - 5.11.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Dec 21 2022 Gwyn Ciesla - 5.11.0-2 - BR setuptools. * Fri Sep 30 2022 Gwyn Ciesla - 5.11.0-1 - 5.11.0 * Mon Aug 01 2022 Gwyn Ciesla - 5.10.2-6 - Only build Java packages on supported platforms. * Thu Jul 21 2022 Fedora Release Engineering - 5.10.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 5.10.2-4 - Rebuilt for Python 3.11 * Sat Feb 05 2022 Jiri Vanek - 5.10.2-3 - Rebuilt for java-17-openjdk as system jdk * Thu Jan 20 2022 Fedora Release Engineering - 5.10.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Sep 17 2021 Gwyn Ciesla - 5.10.2-1 - 5.10.2 * Tue Sep 07 2021 Gwyn Ciesla - 5.10.1-1 - 5.10.1 * Thu Jul 22 2021 Fedora Release Engineering - 5.9.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 5.9.1-3 - Rebuilt for Python 3.10 * Tue May 11 2021 Gwyn Ciesla - 5.9.2-2 - Fix Python 3.10 build. * Thu Apr 29 2021 Gwyn Ciesla - 5.9.1-1 - 5.9.1 * Mon Apr 26 2021 Gwyn Ciesla - 5.9.0-1 - 5.9.0 * Tue Jan 26 2021 Fedora Release Engineering - 5.8.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Jan 11 2021 Gwyn Ciesla - 5.8.1-1 - 5.8.1 * Mon Nov 23 2020 Gwyn Ciesla - 5.8.0-5 - Fix Python 3.10 build. * Tue Jul 28 2020 Fedora Release Engineering - 5.8.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sat Jul 11 2020 Jiri Vanek - 5.8.0-3 - Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11 * Tue May 26 2020 Miro Hrončok - 5.8.0-2 - Rebuilt for Python 3.9 * Mon Mar 02 2020 Gwyn Ciesla - 5.8.0-1 - 5.8.0 * Wed Jan 29 2020 Fedora Release Engineering - 5.7.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sat Sep 14 2019 Gwyn Ciesla - 5.7.0-1 - 5.7.0 * Mon Aug 19 2019 Miro Hrončok - 5.6.2-4 - Rebuilt for Python 3.8 * Mon Aug 12 2019 Jan Beran - 5.6.2-3 - Avoid using compression format while listing manpages * Thu Jul 25 2019 Fedora Release Engineering - 5.6.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Jun 25 2019 Gwyn Ciesla - 5.6.2-1 - 5.6.2 * Tue May 28 2019 Gwyn Ciesla - 5.6.1-1 - 5.6.1 * Wed Mar 06 2019 Gwyn Ciesla - 5.6.0-1 - 5.6.0 * Fri Feb 01 2019 Fedora Release Engineering - 5.5.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Nov 13 2018 Caolán McNamara - 5.5.1-5 - rebuild for hunspell 1.7.2 * Thu Oct 04 2018 Gwyn Ciesla - 5.5.1-2 - Drop python2. * Mon Jul 30 2018 Gwyn Ciesla - 5.5.1-1 - 5.5.1. * Sun Jul 22 2018 Niels de Vos - 5.5.0-4 - Add gcc-c++ to BuildRequires (#1604705) * Fri Jul 13 2018 Fedora Release Engineering - 5.5.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 5.5.0-2 - Rebuilt for Python 3.7 * Tue May 01 2018 Gwyn Ciesla - 5.5.0-1 - 5.5.0 * Mon Mar 12 2018 Gwyn Ciesla - 5.4.4-1 - 5.4.4 * Wed Feb 07 2018 Fedora Release Engineering - 5.4.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jan 04 2018 Gwyn Ciesla - 5.4.3-1 - 5.4.3 * Mon Dec 04 2017 Caolán McNamara - 5.4.2-2 - rebuild for hunspell 1.6.2 * Fri Oct 20 2017 Gwyn Ciesla - 5.4.2-1 - 5.4.2 * Thu Aug 03 2017 Fedora Release Engineering - 5.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Mon Jul 31 2017 Florian Weimer - 5.4.0-2 - Rebuild with binutils fix for ppc64le (#1475636) * Thu Jul 27 2017 Gwyn Ciesla - 5.4.0-1 - 5.4.0 * Wed Jul 26 2017 Fedora Release Engineering - 5.3.16-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu Jul 13 2017 Petr Pisar - 5.3.16-3 - perl dependency renamed to perl-interpreter * Mon May 15 2017 Fedora Release Engineering - 5.3.16-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild * Mon Apr 17 2017 Gwyn Ciesla - 5.3.16-1 - 5.3.16 * Mon Feb 13 2017 Jon Ciesla - 5.3.15-1 - 5.3.15 * Fri Feb 10 2017 Fedora Release Engineering - 5.3.14-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Jan 19 2017 Jon Ciesla - 5.3.14-1 - 5.3.14 * Mon Dec 19 2016 Miro Hrončok - 5.3.13-3 - Rebuild for Python 3.6 * Tue Dec 13 2016 Caolán McNamara - 5.3.13-2 - rebuild for latest hunspell * Mon Nov 21 2016 Jon Ciesla - 5.3.13-1 - 5.3.13. * Fri Nov 18 2016 Jon Ciesla - 5.3.12-1 - 5.3.12. - Ship Python2 bindings. * Wed Sep 28 2016 Jon Ciesla - 5.3.11-2 - Ship Python3 bindings. - Spec cleanup. * Tue Sep 27 2016 Jon Ciesla - 5.3.11-1 - Fix minisat conflict * Thu Sep 15 2016 Jon Ciesla - 5.3.10-1 - 5.3.10. * Mon Aug 29 2016 Jon Ciesla - 5.3.9-1 - 5.3.9. * Thu Feb 04 2016 Fedora Release Engineering - 5.0.8-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 5.0.8-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 02 2015 Kalev Lember - 5.0.8-5 - Rebuilt for GCC 5 C++11 ABI change * Sat Feb 21 2015 Till Maas - 5.0.8-4 - Rebuilt for Fedora 23 Change https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code * Sun Aug 17 2014 Fedora Release Engineering - 5.0.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Tue Jun 24 2014 Jon Ciesla - 5.0.8-2 - Made summary and description more accurate per Linas Vepstas. * Tue Jun 24 2014 Jon Ciesla - 5.0.8-1 - Latest upstream to fix FTBFS BZ 1106100, License change. - Include JAVA_HOME from Yaakov Selkowitz's patch. * Sat Jun 07 2014 Fedora Release Engineering - 4.8.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri Feb 21 2014 Jon Ciesla - 4.8.6-2 - Switch to java-headless, BZ 1068372. * Wed Feb 12 2014 Jon Ciesla - 4.8.6-1 - 4.8.6. - Drop versioned java jars, BZ 1022140. * Sat Aug 03 2013 Fedora Release Engineering - 4.7.11-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed May 15 2013 Jon Ciesla - 4.7.11-2 - Migrate from aspell to hunspell, BZ 961933. * Mon Apr 01 2013 Johannes Lips - 4.7.11-1 - Update to recent upstream version * Thu Feb 14 2013 Fedora Release Engineering - 4.7.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Mon Dec 24 2012 Johannes Lips - 4.7.9-1 - Update to recent upstream version * Thu Jul 19 2012 Fedora Release Engineering - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jan 13 2012 Fedora Release Engineering - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Aug 02 2011 Johannes Lips - 4.7.4-1 - Update to recent upstream version - added libgcj-devel as build requirement * Fri May 28 2010 Tom "spot" Callaway - 4.6.7-3 - fix BuildRequires * Fri May 28 2010 Tom "spot" Callaway - 4.6.7-2 - have the java-devel package Require the -devel package * Fri May 28 2010 Tom "spot" Callaway - 4.6.7-1 - update to 4.6.7 - drop static libs - get rid of rpath - fix man page ownership - add java subpackages - fix defattr invocations * Sat Jul 25 2009 Fedora Release Engineering - 4.3.5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Feb 25 2009 Fedora Release Engineering - 4.3.5-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Thu Aug 7 2008 Tom "spot" Callaway 4.3.5-3 - fix license tag * Thu Jul 10 2008 Marc Maurer 4.3.5-2 - Move the man-page from -devel to the main package * Thu Jul 10 2008 Marc Maurer 4.3.5-1 - New upstream version, fixes bug 434650 - Update URL - Package man-page * Wed Feb 20 2008 Fedora Release Engineering - 4.2.5-2 - Autorebuild for GCC 4.3 * Mon Nov 12 2007 Marc Maurer 4.2.5-1 - New upstream version, fixes bug 371221. * Mon Sep 11 2006 Marc Maurer 4.2.2-2.fc6 - Rebuild for FC6 * Wed Apr 12 2006 Marc Maurer 4.2.2-1 - New upstream version * Mon Apr 10 2006 Marc Maurer 4.2.1-2 - Rebuild * Mon Apr 10 2006 Marc Maurer 4.2.1-1 - New upstream version * Wed Feb 15 2006 Marc Maurer 4.1.3-4 - Rebuild for Fedora Extras 5 - Use %%{?dist} in the release name * Wed Aug 10 2005 Marc Maurer - 4.1.3-3 - Set the buildroot to the standard Fedora buildroot - Make the package own the %%{_datadir}/link-grammar directory (thanks go to Aurelien Bompard for both issues) * Wed Aug 10 2005 Marc Maurer - 4.1.3-2 - Remove epoch - Make rpmlint happy * Sun Aug 7 2005 Marc Maurer - 1:4.1.3-1 - Initial version