hunspell/hunspell.spec

109 lines
2.8 KiB
RPMSpec
Raw Normal View History

2019-09-30 10:52:51 -04:00
Name: hunspell
Summary: A spell checker and morphological analyzer library
Version: 1.7.0
2020-03-21 20:03:38 +08:00
Release: 5
2019-09-30 10:52:51 -04:00
URL: https://github.com/hunspell/hunspell
Source: https://github.com/hunspell/hunspell/archive/%{name}-%{version}.tar.gz
License: LGPLv2+ or GPLv2+ or MPLv1.1
BuildRequires: gcc-c++ autoconf automake libtool ncurses-devel gettext
2020-03-21 20:03:38 +08:00
BuildRequires: perl-generators words hunspell hunspell-devel gdb
2019-09-30 10:52:51 -04:00
%ifarch %{ix86} x86_64
BuildRequires: valgrind
%endif
Requires: hunspell-en-US
%description
Hunspell is a free spell checker and morphological analyzer library and
command-line tool, licensed under LGPL/GPL/MPL tri-license.
%package devel
Requires: hunspell = %{version}-%{release} pkgconfig
Summary: Files for developing with hunspell
%description devel
Includes and definitions for developing with hunspell
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
%build
autoreconf -vfi
configureflags="--disable-rpath --with-ui --with-readline"
%define profilegenerate \
CFLAGS="${RPM_OPT_FLAGS} -fprofile-generate"\
CXXFLAGS="${RPM_OPT_FLAGS} -fprofile-generate"
%define profileuse \
CFLAGS="${RPM_OPT_FLAGS} -fprofile-use"\
CXXFLAGS="${RPM_OPT_FLAGS} -fprofile-use"
2020-03-21 20:03:38 +08:00
%configure $configureflags
2019-09-30 10:52:51 -04:00
%make_build
cd po && make %{?_smp_mflags} update-gmo && cd ..
%check
%ifarch %{ix86} x86_64
make check
%endif
%install
%make_install
%delete_la_and_a
mkdir $RPM_BUILD_ROOT/%{_datadir}/myspell
%find_lang %{name}
#Include previous ABI version for temporary binary compatibility
cp -a %{_libdir}/libhunspell-1.6.so* %{buildroot}%{_libdir}
%ldconfig_scriptlets
%files -f %{name}.lang
%defattr(-,root,root)
2019-11-06 19:33:05 +08:00
%doc AUTHORS
%license COPYING COPYING.LESSER COPYING.MPL license.hunspell license.myspell
2019-09-30 10:52:51 -04:00
%{_bindir}/hunspell
%{_libdir}/*.so.*
%{_datadir}/myspell
%files devel
%defattr(-,root,root)
%{_bindir}/*
%{_includedir}/hunspell
%{_libdir}/*.so
%{_libdir}/pkgconfig/hunspell.pc
%exclude %{_bindir}/hunspell
%files help
%defattr(-,root,root)
%doc THANKS README
%{_mandir}/man*/*.gz
%lang(hu) %{_mandir}/hu/man1/hunspell.1.gz
%changelog
2020-03-21 20:03:38 +08:00
* Sat Mar 21 2020 songnannan <songnannan2@huawei.com> - 1.7.0.5
- bugfix about make check
2019-11-06 19:33:05 +08:00
* Sat Oct 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.7.0.4
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:remove the copying files to license root.
2019-09-30 10:52:51 -04:00
* Tue Sep 24 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.7.0-3
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:add previous ABI version for temporary binary compatibility
* Tue Sep 24 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.7.0-2
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:add previous ABI version for temporary binary compatibility
* Thu Sep 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.7.0-1
- Package init