X-Git-Url: https://git.pld-linux.org/?p=packages%2Fka5-kmime.git;a=blobdiff_plain;f=ka5-kmime.spec;h=2a0a2868941fe0a6e549518a35c14b4ba9a7bb07;hp=e15137a27bf03caa29d2b22fcdb9df6d74c476fc;hb=HEAD;hpb=9778afdd8b2c40e3f72b1cd35f54e0478e26576e diff --git a/ka5-kmime.spec b/ka5-kmime.spec index e15137a..2a0a286 100644 --- a/ka5-kmime.spec +++ b/ka5-kmime.spec @@ -1,23 +1,27 @@ -%define kdeappsver 18.12.1 -%define qtver 5.9.0 +# +# Conditional build: +%bcond_with tests # build with tests +%define kdeappsver 23.08.5 +%define qtver 5.15.2 %define kaname kmime Summary: KMime Name: ka5-%{kaname} -Version: 18.12.1 +Version: 23.08.5 Release: 1 License: GPL v2+/LGPL v2.1+ Group: X11/Libraries -Source0: http://download.kde.org/stable/applications/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz -# Source0-md5: 8bf4568f12a9f3e5cbd1cc73941040be +Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz +# Source0-md5: 4019ac058036e32f4de7b50831696349 URL: http://www.kde.org/ BuildRequires: Qt5Core-devel >= %{qtver} BuildRequires: Qt5Test-devel >= 5.9.0 -BuildRequires: cmake >= 2.8.12 +BuildRequires: cmake >= 3.20 BuildRequires: gettext-devel BuildRequires: kf5-extra-cmake-modules >= 5.53.0 BuildRequires: kf5-kcodecs-devel >= 5.51.0 BuildRequires: kf5-ki18n-devel BuildRequires: kf5-ki18n-devel >= 5.51.0 +BuildRequires: ninja BuildRequires: qt5-build >= %{qtver} BuildRequires: rpmbuild(macros) >= 1.164 BuildRequires: shared-mime-info @@ -33,6 +37,15 @@ standard called MIME, which stands for term `message` is used to refer to both mail messages and newsgroup articles. +%description -l pl.UTF-8 +KMime jest biblioteką do obsługi wiadomości pocztowych i +artykułów grup Usenetowych. Zarówno wiadomości pocztowe i +artykuły są oparte na tym samym standardzie zwanym MIME +- **Multipurpose Internet Mail Extensions**, (**Uniweralne + roszszerzenie poczty internetowej**). W tym dokumencie, termin + `wiadomość` oznacza zarówno wiadomości pocztowe, jak i artykuły + grup news. + %package devel Summary: Header files for %{kaname} development Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kpname} @@ -49,17 +62,21 @@ Pliki nagłówkowe dla programistów używających %{kaname}. %setup -q -n %{kaname}-%{version} %build -install -d build -cd build -%cmake \ - -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ - .. -%{__make} +%cmake -B build \ + -G Ninja \ + %{!?with_tests:-DBUILD_TESTING=OFF} \ + -DHTML_INSTALL_DIR=%{_kdedocdir} \ + -DKDE_INSTALL_USE_QT_SYS_PATHS=ON +%ninja_build -C build + +%if %{with tests} +ctest --test-dir build +%endif + %install rm -rf $RPM_BUILD_ROOT -%{__make} -C build install \ - DESTDIR=$RPM_BUILD_ROOT +%ninja_install -C build %find_lang %{kaname} --all-name --with-kde @@ -71,13 +88,14 @@ rm -rf $RPM_BUILD_ROOT %files -f %{kaname}.lang %defattr(644,root,root,755) -%attr(755,root,root) %ghost %{_libdir}/libKF5Mime.so.5 -%attr(755,root,root) %{_libdir}/libKF5Mime.so.*.*.* +%{_datadir}/qlogging-categories5/kmime.categories +%ghost %{_libdir}/libKPim5Mime.so.5 +%attr(755,root,root) %{_libdir}/libKPim5Mime.so.*.*.* %files devel %defattr(644,root,root,755) -%{_includedir}/KF5/KMime -%{_includedir}/KF5/kmime_version.h %{_libdir}/cmake/KF5Mime -%attr(755,root,root) %{_libdir}/libKF5Mime.so %{_libdir}/qt5/mkspecs/modules/qt_KMime.pri +%{_includedir}/KPim5/KMime +%{_libdir}/cmake/KPim5Mime +%{_libdir}/libKPim5Mime.so