6d1b7d1
Name:           qtspell
4b9f905
Version:        0.8.1
585d922
Release:        1%{?dist}
6d1b7d1
Summary:        Spell checking for Qt text widgets
6d1b7d1
6d1b7d1
License:        GPLv3+
6d1b7d1
URL:            https://github.com/manisandro/qtspell
6d1b7d1
Source0:        https://github.com/manisandro/qtspell/releases/download/%{version}/%{name}-%{version}.tar.xz
6d1b7d1
6d1b7d1
BuildRequires:  cmake
6d1b7d1
BuildRequires:  qt4-devel
6d1b7d1
BuildRequires:  qt5-qtbase-devel
6d1b7d1
BuildRequires:  qt5-qttools-devel
6d1b7d1
BuildRequires:  enchant-devel
6d1b7d1
BuildRequires:  doxygen
6d1b7d1
6d1b7d1
Requires:       iso-codes
6d1b7d1
6d1b7d1
%description
6d1b7d1
QtSpell adds spell-checking functionality to Qt's text widgets, using the
6d1b7d1
enchant spell-checking library.
6d1b7d1
6d1b7d1
6d1b7d1
%package        qt4
6d1b7d1
Summary:        Spell checking for Qt4 text widgets
6d1b7d1
6d1b7d1
%description    qt4
6d1b7d1
QtSpell adds spell-checking functionality to Qt4's text widgets, using the
6d1b7d1
enchant spell-checking library.
6d1b7d1
6d1b7d1
6d1b7d1
%package        qt4-devel
6d1b7d1
Summary:        Development files for %{name}-qt4
6d1b7d1
Requires:       %{name}-qt4%{?_isa} = %{version}-%{release}
6d1b7d1
6d1b7d1
%description    qt4-devel
6d1b7d1
The %{name}-devel package contains libraries and header files for
6d1b7d1
developing applications that use %{name}.
6d1b7d1
6d1b7d1
6d1b7d1
%package        qt5
6d1b7d1
Summary:        Spell checking for Qt5 text widgets
6d1b7d1
6d1b7d1
%description    qt5
6d1b7d1
QtSpell adds spell-checking functionality to Qt5's text widgets, using the
6d1b7d1
enchant spell-checking library.
6d1b7d1
6d1b7d1
6d1b7d1
%package        qt5-devel
6d1b7d1
Summary:        Development files for %{name}-qt5
6d1b7d1
Requires:       %{name}-qt5%{?_isa} = %{version}-%{release}
6d1b7d1
6d1b7d1
%description    qt5-devel
6d1b7d1
The %{name}-qt5-devel package contains libraries and header files for
6d1b7d1
developing applications that use %{name}-qt5.
6d1b7d1
6d1b7d1
6d1b7d1
%package        qt5-translations
6d1b7d1
Summary:        Translations for %{name}-qt5
6d1b7d1
BuildArch:      noarch
6d1b7d1
Requires:       %{name}-qt5 = %{version}-%{release}
6d1b7d1
Requires:       qt5-qttranslations
6d1b7d1
6d1b7d1
%description    qt5-translations
6d1b7d1
The %{name}-qt5-translations contains translations for %{name}-qt5.
6d1b7d1
6d1b7d1
6d1b7d1
%package        doc
6d1b7d1
Summary:        Developer documentation for %{name}
6d1b7d1
BuildArch:      noarch
6d1b7d1
6d1b7d1
%description    doc
6d1b7d1
The %{name}-doc package contains the documentation for developing applications
6d1b7d1
that use %{name}.
6d1b7d1
6d1b7d1
6d1b7d1
%prep
6d1b7d1
%setup -q -n %{name}-%{version}
6d1b7d1
6d1b7d1
6d1b7d1
%build
6d1b7d1
mkdir build-qt4
6d1b7d1
pushd build-qt4
2349f4e
LDFLAGS="%{__global_ldflags} -Wl,--as-needed" %cmake ..
6d1b7d1
make %{?_smp_mflags}
6d1b7d1
make doc
6d1b7d1
popd
6d1b7d1
6d1b7d1
mkdir build-qt5
6d1b7d1
pushd build-qt5
2349f4e
LDFLAGS="%{__global_ldflags} -Wl,--as-needed" %cmake -DUSE_QT5=ON ..
6d1b7d1
make %{?_smp_mflags}
6d1b7d1
popd
6d1b7d1
6d1b7d1
6d1b7d1
%install
6d1b7d1
%make_install -C build-qt4
6d1b7d1
%make_install -C build-qt5
6d1b7d1
6d1b7d1
6d1b7d1
%post qt4 -p /sbin/ldconfig
6d1b7d1
6d1b7d1
%postun qt4 -p /sbin/ldconfig
6d1b7d1
6d1b7d1
6d1b7d1
%post qt5 -p /sbin/ldconfig
6d1b7d1
6d1b7d1
%postun qt5 -p /sbin/ldconfig
6d1b7d1
6d1b7d1
6d1b7d1
%files qt4
6d1b7d1
%license COPYING
6d1b7d1
%{_libdir}/libqtspell-qt4.so.*
6d1b7d1
%{_qt4_translationdir}/QtSpell_*.qm
6d1b7d1
6d1b7d1
%files qt4-devel
6d1b7d1
%{_includedir}/QtSpell-qt4/
6d1b7d1
%{_libdir}/libqtspell-qt4.so
6d1b7d1
%{_libdir}/pkgconfig/QtSpell-qt4.pc
6d1b7d1
6d1b7d1
%files qt5
6d1b7d1
%license COPYING
6d1b7d1
%{_libdir}/libqtspell-qt5.so.*
6d1b7d1
6d1b7d1
%files qt5-devel
6d1b7d1
%{_includedir}/QtSpell-qt5/
6d1b7d1
%{_libdir}/libqtspell-qt5.so
6d1b7d1
%{_libdir}/pkgconfig/QtSpell-qt5.pc
6d1b7d1
6d1b7d1
%files qt5-translations
6d1b7d1
%{_qt5_translationdir}/QtSpell_*.qm
6d1b7d1
6d1b7d1
%files doc
6d1b7d1
%license COPYING
6d1b7d1
%doc build-qt4/doc/html
6d1b7d1
6d1b7d1
6d1b7d1
%changelog
4b9f905
* Mon Nov 16 2015 Sandro Mani <manisandro@gmail.com> - 0.8.1-1
4b9f905
- QtSpell 0.8.1
4b9f905
585d922
* Fri Oct 16 2015 Sandro Mani <manisandro@gmail.com> - 0.8.0-1
585d922
- QtSpell 0.8.0
585d922
55aaa25
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.4-2
55aaa25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
55aaa25
d00a8d7
* Tue May 26 2015 Sandro Mani <manisandro@gmail.com> - 0.7.4-1
d00a8d7
- QtSpell 0.7.4
d00a8d7
04760fa
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.7.2-2
04760fa
- Rebuilt for GCC 5 C++11 ABI change
04760fa
f24d090
* Mon Mar 30 2015 Sandro Mani <manisandro@gmail.com> - 0.7.2-1
f24d090
- QtSpell 0.7.2
f24d090
928047a
* Mon Feb 09 2015 Sandro Mani <manisandro@gmail.com> - 0.7.1-1
928047a
- QtSpell 0.7.1
928047a
2349f4e
* Thu Feb 05 2015 Sandro Mani <manisandro@gmail.com> - 0.7.0-1
2349f4e
- QtSpell 0.7.0
2349f4e
d46b3d9
* Sat Dec 27 2014 Sandro Mani <manisandro@gmail.com> - 0.6.0-1
d46b3d9
- QtSpell 0.6.0
d46b3d9
6d1b7d1
* Fri Dec 12 2014 Sandro Mani <manisandro@gmail.com> - 0.5.0-2
6d1b7d1
- Use %%license
6d1b7d1
- Add -Wl,--as-needed
6d1b7d1
6d1b7d1
* Fri Dec 12 2014 Sandro Mani <manisandro@gmail.com> - 0.5.0-1
6d1b7d1
- QtSpell 0.5.0