|
|
@ -1,15 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} < 25
|
|
|
|
|
|
|
|
%global strigi 1
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: kdegraphics-mobipocket
|
|
|
|
Name: kdegraphics-mobipocket
|
|
|
|
Summary: A collection of plugins to handle mobipocket files
|
|
|
|
Summary: A collection of plugins to handle mobipocket files
|
|
|
|
Version: 16.08.3
|
|
|
|
Version: 16.12.1
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
|
|
|
|
|
|
|
License: GPLv2+
|
|
|
|
License: GPLv2+
|
|
|
|
URL: https://quickgit.kde.org/?p=%{name}.git
|
|
|
|
URL: https://www.kde.org/applications/graphics/
|
|
|
|
%global revision %(echo %{version} | cut -d. -f3)
|
|
|
|
%global revision %(echo %{version} | cut -d. -f3)
|
|
|
|
%if %{revision} >= 50
|
|
|
|
%if %{revision} >= 50
|
|
|
|
%global stable unstable
|
|
|
|
%global stable unstable
|
|
|
@ -18,51 +14,37 @@ URL: https://quickgit.kde.org/?p=%{name}.git
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
Source0: http://download.kde.org/%{stable}/applications/%{version}/src/%{name}-%{version}.tar.xz
|
|
|
|
Source0: http://download.kde.org/%{stable}/applications/%{version}/src/%{name}-%{version}.tar.xz
|
|
|
|
|
|
|
|
|
|
|
|
## upstreamable patches
|
|
|
|
BuildRequires: extra-cmake-modules
|
|
|
|
Patch50: kdegraphics-mobipocket-4.12.0-qmobipocket_kde4_includes_hint.patch
|
|
|
|
BuildRequires: kf5-rpm-macros
|
|
|
|
|
|
|
|
BuildRequires: cmake(Qt5Gui)
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
|
|
|
|
BuildRequires: kdelibs4-devel >= 4.14
|
|
|
|
|
|
|
|
%if 0%{?strigi}
|
|
|
|
|
|
|
|
BuildRequires: pkgconfig(libstreams)
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Requires: qmobipocket%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: qmobipocket%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
# when split occurred
|
|
|
|
Obsoletes: qmobipocket < 16.12.0
|
|
|
|
Conflicts: kdegraphics < 7:4.6.95-10
|
|
|
|
Provides: qmobipocket = %{version}-%{release}
|
|
|
|
|
|
|
|
Provides: qmobipocket%{?_isa} = %{version}-%{release}
|
|
|
|
# pkg renamed
|
|
|
|
|
|
|
|
Obsoletes: mobipocket < 4.7.97
|
|
|
|
|
|
|
|
Provides: mobipocket = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
%{summary}.
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n qmobipocket
|
|
|
|
%package devel
|
|
|
|
Summary: Mobipocket Qt bindings
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
%description -n qmobipocket
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
%{summary}.
|
|
|
|
Obsoletes: qmobipocket-devel < 16.12.0
|
|
|
|
|
|
|
|
Provides: qmobipocket-devel = %{version}-%{release}
|
|
|
|
%package -n qmobipocket-devel
|
|
|
|
Provides: qmobipocket-devel%{?_isa} = %{version}-%{release}
|
|
|
|
Summary: Development files for qmobipocket
|
|
|
|
%description devel
|
|
|
|
Requires: qmobipocket%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description -n qmobipocket-devel
|
|
|
|
|
|
|
|
%{summary}.
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%autosetup
|
|
|
|
|
|
|
|
|
|
|
|
%patch50 -p1 -b .qmobipocket_kde4_includes_hint
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
mkdir %{_target_platform}
|
|
|
|
mkdir %{_target_platform}
|
|
|
|
pushd %{_target_platform}
|
|
|
|
pushd %{_target_platform}
|
|
|
|
%{cmake_kde4} .. \
|
|
|
|
%{cmake_kf5} ..
|
|
|
|
%{!?strigi:-DBUILD_strigi:BOOL=OFF}
|
|
|
|
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
make %{?_smp_mflags} -C %{_target_platform}
|
|
|
|
make %{?_smp_mflags} -C %{_target_platform}
|
|
|
@ -72,29 +54,26 @@ make %{?_smp_mflags} -C %{_target_platform}
|
|
|
|
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
|
|
|
|
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%license COPYING
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%{_kde4_libdir}/kde4/mobithumbnail.so
|
|
|
|
|
|
|
|
%{_kde4_datadir}/kde4/services/mobithumbnail.desktop
|
|
|
|
|
|
|
|
%if 0%{?strigi}
|
|
|
|
|
|
|
|
%{_kde4_libdir}/strigi/strigila_mobi.so
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post -n qmobipocket -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n qmobipocket -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n qmobipocket
|
|
|
|
%files
|
|
|
|
%license COPYING
|
|
|
|
%license COPYING
|
|
|
|
%{_kde4_libdir}/libqmobipocket.so.1*
|
|
|
|
%{_libdir}/libqmobipocket.so.2*
|
|
|
|
|
|
|
|
%{_qt5_plugindir}/mobithumbnail.so
|
|
|
|
|
|
|
|
%{_kf5_datadir}/kservices5/mobithumbnail.desktop
|
|
|
|
|
|
|
|
|
|
|
|
%files -n qmobipocket-devel
|
|
|
|
%files devel
|
|
|
|
%{_kde4_libdir}/libqmobipocket.so
|
|
|
|
%{_libdir}/libqmobipocket.so
|
|
|
|
%{_kde4_includedir}/qmobipocket/
|
|
|
|
%{_includedir}/qmobipocket/
|
|
|
|
%dir %{_kde4_libdir}/cmake/
|
|
|
|
%dir %{_libdir}/cmake/
|
|
|
|
%{_kde4_libdir}/cmake/QMobipocket/
|
|
|
|
%{_libdir}/cmake/QMobipocket/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Thu Jan 12 2017 Rex Dieter <rdieter@fedoraproject.org> - 16.12.1-1
|
|
|
|
|
|
|
|
- 16.12.1, kf5-ize, simplify packaging (just base + -devel subpkg)
|
|
|
|
|
|
|
|
|
|
|
|
* Mon Dec 05 2016 Rex Dieter <rdieter@fedoraproject.org> - 16.08.3-1
|
|
|
|
* Mon Dec 05 2016 Rex Dieter <rdieter@fedoraproject.org> - 16.08.3-1
|
|
|
|
- 16.08.3
|
|
|
|
- 16.08.3
|
|
|
|
|
|
|
|
|
|
|
|