diff --git a/.gitignore b/.gitignore index e69de29..20a8539 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/qtspell-0.8.1.tar.xz diff --git a/mingw-qtspell.spec b/mingw-qtspell.spec new file mode 100644 index 0000000..97e902c --- /dev/null +++ b/mingw-qtspell.spec @@ -0,0 +1,194 @@ +%{?mingw_package_header} + +%global pkgname qtspell + +Name: mingw-%{pkgname} +Version: 0.8.1 +Release: 3%{?dist} +Summary: Spell checking for Qt text widgets + +License: GPLv3+ +BuildArch: noarch +URL: https://github.com/manisandro/qtspell +Source0: https://github.com/manisandro/qtspell/releases/download/%{version}/%{pkgname}-%{version}.tar.xz + +BuildRequires: cmake + +BuildRequires: mingw32-filesystem >= 95 +BuildRequires: mingw32-gcc +BuildRequires: mingw32-enchant +BuildRequires: mingw32-qt +BuildRequires: mingw32-qt5-qtbase-devel +BuildRequires: mingw32-qt5-qttools + +BuildRequires: mingw64-filesystem >= 95 +BuildRequires: mingw64-gcc +BuildRequires: mingw64-enchant +BuildRequires: mingw64-qt +BuildRequires: mingw64-qt5-qtbase-devel +BuildRequires: mingw64-qt5-qttools + + +%description +QtSpell adds spell-checking functionality to Qt's text widgets, using the +enchant spell-checking library. + + +%package -n mingw32-%{pkgname}-qt4 +Summary: MinGW Windows ${pkgname}-Qt4 library + +%description -n mingw32-%{pkgname}-qt4 +MinGW Windows ${pkgname}-Qt4 library. + +############################################################################### + +%package -n mingw32-%{pkgname}-qt4-static +Summary: Static version of the MinGW Windows ${pkgname}-Qt4 library +Requires: mingw32-%{pkgname}-qt4 = %{version}-%{release} + +%description -n mingw32-%{pkgname}-qt4-static +Static version of the MinGW Windows ${pkgname}-Qt4 library. + +############################################################################### + +%package -n mingw32-%{pkgname}-qt5 +Summary: MinGW Windows ${pkgname}-Qt5 library +Requires: mingw32-qt5-qttranslations + +%description -n mingw32-%{pkgname}-qt5 +MinGW Windows ${pkgname}-Qt5 library. + +############################################################################### + +%package -n mingw32-%{pkgname}-qt5-static +Summary: Static version of the MinGW Windows ${pkgname}-Qt5 library +Requires: mingw32-%{pkgname}-qt5 = %{version}-%{release} + +%description -n mingw32-%{pkgname}-qt5-static +Static version of the MinGW Windows ${pkgname}-Qt5 library. + +############################################################################### + +%package -n mingw64-%{pkgname}-qt4 +Summary: MinGW Windows ${pkgname}-Qt4 library + +%description -n mingw64-%{pkgname}-qt4 +MinGW Windows ${pkgname}-Qt4 library. + +############################################################################### + +%package -n mingw64-%{pkgname}-qt4-static +Summary: Static version of the MinGW Windows ${pkgname}-Qt4 library +Requires: mingw64-%{pkgname}-qt4 = %{version}-%{release} + +%description -n mingw64-%{pkgname}-qt4-static +Static version of the MinGW Windows ${pkgname}-Qt4 library. + +############################################################################### + +%package -n mingw64-%{pkgname}-qt5 +Summary: MinGW Windows ${pkgname}-Qt5 library +Requires: mingw64-qt5-qttranslations + +%description -n mingw64-%{pkgname}-qt5 +MinGW Windows ${pkgname}-Qt5 library. + +############################################################################### + +%package -n mingw64-%{pkgname}-qt5-static +Summary: Static version of the MinGW Windows ${pkgname}-Qt5 library +Requires: mingw64-%{pkgname}-qt5 = %{version}-%{release} + +%description -n mingw64-%{pkgname}-qt5-static +Static version of the MinGW Windows ${pkgname}-Qt5 library. + +############################################################################### + +%{?mingw_debug_package} + + +%prep +%setup -q -n %{pkgname}-%{version} + + +%build +mkdir build_qt4 +pushd build_qt4 +%mingw_cmake -DBUILD_STATIC_LIBS=ON ../.. +%mingw_make %{?_smp_mflags} +popd + +mkdir build_qt5 +pushd build_qt5 +%mingw_cmake -DBUILD_STATIC_LIBS=ON -DUSE_QT5=ON ../.. +%mingw_make %{?_smp_mflags} +popd + + +%install +pushd build_qt4 +%mingw_make DESTDIR=%{buildroot} install +popd +pushd build_qt5 +%mingw_make DESTDIR=%{buildroot} install +popd + + +%files -n mingw32-%{pkgname}-qt4 +%license COPYING +%{mingw32_bindir}/libqtspell-qt4-0.dll +%{mingw32_libdir}/libqtspell-qt4.dll.a +%{mingw32_libdir}/pkgconfig/QtSpell-qt4.pc +%{mingw32_includedir}/QtSpell-qt4/ +%{mingw32_datadir}/qt4/translations/QtSpell_*.qm + +%files -n mingw32-%{pkgname}-qt4-static +%{mingw32_libdir}/libqtspell-qt4.a + +%files -n mingw32-%{pkgname}-qt5 +%license COPYING +%{mingw32_bindir}/libqtspell-qt5-0.dll +%{mingw32_libdir}/libqtspell-qt5.dll.a +%{mingw32_libdir}/pkgconfig/QtSpell-qt5.pc +%{mingw32_includedir}/QtSpell-qt5/ +%{mingw32_datadir}/qt5/translations/QtSpell_*.qm + +%files -n mingw32-%{pkgname}-qt5-static +%{mingw32_libdir}/libqtspell-qt5.a + +%files -n mingw64-%{pkgname}-qt4 +%license COPYING +%{mingw64_bindir}/libqtspell-qt4-0.dll +%{mingw64_libdir}/libqtspell-qt4.dll.a +%{mingw64_libdir}/pkgconfig/QtSpell-qt4.pc +%{mingw64_includedir}/QtSpell-qt4/ +%{mingw64_datadir}/qt4/translations/QtSpell_*.qm + +%files -n mingw64-%{pkgname}-qt4-static +%{mingw64_libdir}/libqtspell-qt4.a + +%files -n mingw64-%{pkgname}-qt5 +%license COPYING +%{mingw64_bindir}/libqtspell-qt5-0.dll +%{mingw64_libdir}/libqtspell-qt5.dll.a +%{mingw64_libdir}/pkgconfig/QtSpell-qt5.pc +%{mingw64_includedir}/QtSpell-qt5/ +%{mingw64_datadir}/qt5/translations/QtSpell_*.qm + +%files -n mingw64-%{pkgname}-qt5-static +%{mingw64_libdir}/libqtspell-qt5.a + + +%changelog +* Sat Jul 30 2016 Sandro Mani - 0.8.1-3 +- Fix requires + +* Wed Jul 20 2016 Sandro Mani - 0.8.1-2 +- Use %%license +- Use build subdirs instead of copying the entire source tree + +* Mon Nov 16 2015 Sandro Mani - 0.8.1-1 +- QtSpell 0.8.1 + +* Wed Apr 29 2015 Sandro Mani - 0.7.2-1 +- QtSpell 0.7.2 diff --git a/sources b/sources index e69de29..5f34927 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +1131a80f10b41d32da280a366dde0282 qtspell-0.8.1.tar.xz