diff --git a/.gitignore b/.gitignore index e78112a..c7eeefb 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /v2.1.1.tar.gz /v2.2.0.tar.gz /v3.4.0.tar.gz +/libcommuni-3.5.0.tar.gz diff --git a/libcommuni.spec b/libcommuni.spec index 8daa47e..34e70bf 100644 --- a/libcommuni.spec +++ b/libcommuni.spec @@ -1,54 +1,71 @@ +%global optflags %{optflags} -flto +%global build_ldflags %{build_ldflags} -flto + Name: libcommuni -Version: 3.4.0 -Release: 11%{?dist} -Summary: Cross-platform IRC client library written with Qt 4 +Version: 3.5.0 +Release: 3%{?dist} +Summary: Cross-platform IRC framework written with Qt + License: LGPLv2+ URL: http://communi.github.com -Source0: https://github.com/communi/libcommuni/archive/v%{version}.tar.gz -BuildRequires: qt-devel +Source0: https://github.com/communi/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz + BuildRequires: libicu-devel -Obsoletes: libircclient-qt < 0.5.0-9 +BuildRequires: qt5-qtdeclarative-devel +BuildRequires: pkgconfig(Qt5) %description -Communi is a cross-platform IRC client library written with Qt 4. +A cross-platform IRC framework written with Qt. + +Communi provides a set of tools for enabling IRC connectivity in Qt-based C++ +and QML applications. + + +%package devel +Summary: Devel files for %{name} -%package devel -Summary: Cross-platform IRC client library written with Qt 4 (development files) Requires: %{name}%{?_isa} = %{version}-%{release} -Obsoletes: libircclient-qt-devel < 0.5.0-9 -%description devel -Communi is a cross-platform IRC client library written with Qt 4. +%description devel +Summary: Devel files for %{name}. + %prep -%setup -q +%autosetup -p1 + %build -%{qmake_qt4} -config verbose -config no_examples -config no_rpath -make %{_smp_mflags} +%qmake_qt5 +%make_build -%check -LD_LIBRARY_PATH=%{buildroot}/%{_libdir} make check %install -make INSTALL_ROOT=%{buildroot} install +%make_install INSTALL_ROOT=%{buildroot} + -%ldconfig_scriptlets +%check +LD_LIBRARY_PATH=%{buildroot}%{_libdir} %make_build check %files -%doc LICENSE AUTHORS README.md CHANGELOG +%license LICENSE +%doc AUTHORS README.md CHANGELOG %{_libdir}/libIrc*.so.* -%{_libdir}/qt4/imports/Communi/ +%{_libdir}/qt5/qml/Communi/ %files devel -%doc doc/ -%{_includedir}/Communi/ +%doc doc/* +%{_includedir}/qt5/Communi/ %{_libdir}/libIrc*.so -%{_libdir}/qt4/mkspecs/features/communi-config.prf -%{_libdir}/qt4/mkspecs/features/communi.prf +%{_libdir}/qt5/mkspecs/features/*.prf + %changelog +* Tue Dec 10 2019 Artem Polishchuk - 3.5.0-3 +- Update to 3.5.0 +- Switch to Qt5 +- Unretire package + * Thu Jul 25 2019 Fedora Release Engineering - 3.4.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild diff --git a/sources b/sources index 87c2af1..58cfd92 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -987fa2143324ab3f1843483053bf711f v3.4.0.tar.gz +SHA512 (libcommuni-3.5.0.tar.gz) = 4d62f7e5edd32b9121f2b69d15a4022ad5d6cf7136dc48d0a1ca4bd413b3334533d7734d6939906fa3426f8db9bc255696107ecada19875c60ce59990b54dee4