enchant/enchant.spec

194 lines
5.7 KiB
RPMSpec
Raw Normal View History

%define libname libenchant
Name: enchant
Version: 2.2.6
Release: 1mamba
Summary: An Enchanting Spell Checking Library
Group: Applications/Spelling Checker
Vendor: openmamba
Distribution: openmamba
Packager: Aleph0 <aleph0@openmamba.org>
URL: http://www.abisource.com/projects/enchant/
Source: https://github.com/AbiWord/enchant/releases/download/v%{version}/enchant-%{version}.tar.gz
License: LGPL
Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release}
BuildRequires: pkgconfig
## AUTOBUILDREQ-BEGIN
BuildRequires: aspell-devel
BuildRequires: glibc-devel
BuildRequires: libdbus-devel
BuildRequires: libdbus-glib-devel
BuildRequires: libgcc
BuildRequires: libglib-devel
BuildRequires: libhunspell-devel
BuildRequires: libselinux-devel
BuildRequires: libstdc++6-devel
BuildRequires: libvoikko-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
A library that wraps around other spell checking back-ends.
%package -n %{libname}
Summary: Dynamic libraries and headers for %{name}
Group: System/Libraries
%description -n %{libname}
A library that wraps around other spell checking back-ends.
This package contains dynamic libraries provided by %{name}.
%package -n %{libname}-devel
Summary: Devel package for %{name}
Group: Development/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Provides: libenchant-static
Obsoletes: libenchant-static
%description -n %{libname}-devel
A library that wraps around other spell checking back-ends.
This package contains libraries and header files need for development.
%package -n %{libname}-static
Summary: Static package for %{name}
Group: Development/Libraries
Requires: %{libname}-devel = %{?epoch:%epoch:}%{version}-%{release}
%description -n %{libname}-static
A library that wraps around other spell checking back-ends.
This package contains static libraries need for development.
%package aspell
Summary: Integration with aspell for libenchant
Group: System/Libraries
Requires: enchant = %{?epoch:%epoch:}%{version}-%{release}
%description aspell
Libraries necessary to integrate applications using libenchant with aspell.
%package voikko
Summary: Integration with voikko for libenchant
Group: System/Libraries
Requires: enchant = %{?epoch:%epoch:}%{version}-%{release}
%description voikko
Libraries necessary to integrate applications using libenchant with voikko.
# NOTE:
# Build Aspell backend: yes
# Build Ispell backend: yes
# Build Uspell backend: no
# Build Hspell backend: no
# Build Myspell/Hunspell backend: yes
# Build Voikko backend: yes
# Build Zemberek backend: yes
# Build a relocatable library: no
%prep
%setup -q
%build
%configure \
--with-myspell-dir=%{_datadir}/myspell \
--disable-hspell \
--disable-static
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/enchant-2
%{_bindir}/enchant-lsmod-2
%{_mandir}/man1/enchant-2.*
%{_mandir}/man1/enchant-lsmod-2.*
%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/libenchant-2.so.*
%dir %{_libdir}/enchant-2
%{_libdir}/enchant-2/enchant_hspell.*
%{_libdir}/enchant-2/enchant_hunspell.*
%dir %{_datadir}/enchant
%{_datadir}/enchant/*
%doc AUTHORS COPYING.LIB
%files -n %{libname}-devel
%defattr(-,root,root)
%dir %{_includedir}/enchant-2/
%{_includedir}/enchant-2/*.h
%{_libdir}/libenchant-2.so
%{_libdir}/libenchant-2.la
%{_libdir}/pkgconfig/*.pc
%doc ChangeLog NEWS README
%files aspell
%defattr(-,root,root)
%{_libdir}/enchant-2/enchant_aspell.*
%files voikko
%defattr(-,root,root)
%{_libdir}/enchant-2/enchant_voikko.*
%changelog
* Tue Sep 10 2019 Automatic Build System <autodist@mambasoft.it> 2.2.6-1mamba
- automatic version update by autodist
* Mon Jul 22 2019 Automatic Build System <autodist@mambasoft.it> 2.2.5-1mamba
- automatic version update by autodist
* Thu Jul 11 2019 Automatic Build System <autodist@mambasoft.it> 2.2.4-1mamba
- automatic version update by autodist
* Thu Feb 22 2018 Automatic Build System <autodist@mambasoft.it> 2.2.3-1mamba
- automatic version update by autodist
* Fri Jan 26 2018 Automatic Build System <autodist@mambasoft.it> 2.2.1-1mamba
- automatic version update by autodist
* Sat Dec 23 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 2.2.0-1mamba
- update to 2.2.0
* Mon Aug 15 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.0-2mamba
- remove package libenchant-static which only contained .la files (moved to -devel)
* Sat Jul 30 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.0-1mamba
- update to 1.6.0
* Sat Jun 26 2010 Automatic Build System <autodist@mambasoft.it> 1.4.2-3mamba
- automatic rebuild by autodist
* Mon Feb 02 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.2-2mamba
- fixed %expoch requirement for subpackages
* Mon Feb 02 2009 gil <puntogil@libero.it> 1.4.2-1mamba
- update to 1.4.2
- added libvokkio support
- new packages: aspell; voikko; static
- edit configure options
* Thu Oct 30 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.0-1mamba
- automatic update by autodist
* Tue Oct 30 2007 Aleph0 <aleph0@openmamba.org> 1.3.0-2mamba
- specfile updated and fixed
- create package enchant with binaries
* Tue Apr 10 2007 Tiziano Pratellesi <tiziano.pratellesi@openmamba.org> 1.3.0-1mamba
- update to version 1.3.0
* Tue Jun 27 2006 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 1.2.6-1qilnx
- update to version 1.2.6 by autospec
* Tue Aug 09 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 1.1.6-1qilnx
- package created by autospec