2018-07-28 15:35:55 +02:00
|
|
|
#
|
|
|
|
# spec file for package kitinerary
|
|
|
|
#
|
2019-11-29 12:39:46 +01:00
|
|
|
# Copyright (c) 2019 SUSE LLC.
|
2018-07-28 15:35:55 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-10-12 10:46:04 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-07-28 15:35:55 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%bcond_without lang
|
|
|
|
Name: kitinerary
|
2019-11-29 12:39:46 +01:00
|
|
|
Version: 19.11.80
|
2018-07-28 15:35:55 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Data model and extraction system for travel reservations
|
|
|
|
License: LGPL-2.1-or-later
|
|
|
|
Group: System/GUI/KDE
|
2019-08-15 16:00:45 +02:00
|
|
|
URL: https://www.kde.org
|
2019-11-29 12:39:46 +01:00
|
|
|
Source: https://download.kde.org/unstable/applications/%{version}/src/%{name}-%{version}.tar.xz
|
2019-08-15 16:00:45 +02:00
|
|
|
%if %{with lang}
|
2019-11-29 12:39:46 +01:00
|
|
|
Source1: https://download.kde.org/unstable/applications/%{version}/src/%{name}-%{version}.tar.xz.sig
|
2019-08-15 16:00:45 +02:00
|
|
|
Source2: applications.keyring
|
|
|
|
%endif
|
2019-10-25 21:47:45 +02:00
|
|
|
BuildRequires: extra-cmake-modules
|
2018-09-07 09:46:52 +02:00
|
|
|
BuildRequires: kf5-filesystem
|
2018-07-28 15:35:55 +02:00
|
|
|
BuildRequires: libpoppler-qt5-devel
|
2019-10-25 21:47:45 +02:00
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
BuildRequires: cmake(KF5CalendarCore)
|
|
|
|
BuildRequires: cmake(KF5Contacts)
|
|
|
|
BuildRequires: cmake(KF5I18n)
|
|
|
|
BuildRequires: cmake(KF5Mime)
|
|
|
|
BuildRequires: cmake(KPimPkPass)
|
2018-07-28 15:35:55 +02:00
|
|
|
BuildRequires: cmake(Qt5Gui)
|
|
|
|
BuildRequires: cmake(Qt5Qml)
|
|
|
|
BuildRequires: cmake(Qt5Test)
|
2019-04-03 10:52:13 +02:00
|
|
|
Requires: libKPimItinerary5 = %{version}
|
2019-10-25 21:47:45 +02:00
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
BuildRequires: libphonenumber-devel
|
|
|
|
BuildRequires: cmake(ZXing)
|
|
|
|
%endif
|
2018-07-28 15:35:55 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Kitinerary is a library which provides a data model and a system to extract information
|
|
|
|
from travel reservations. The model can then be reused in other applications.
|
|
|
|
|
|
|
|
%package -n libKPimItinerary5
|
|
|
|
Summary: Data model and extraction system for travel reservations
|
2018-07-30 11:35:51 +02:00
|
|
|
Group: System/Libraries
|
2019-04-03 10:52:13 +02:00
|
|
|
Recommends: %{name}
|
2019-11-29 12:39:46 +01:00
|
|
|
Recommends: libKPimItinerary5-lang
|
2018-07-28 15:35:55 +02:00
|
|
|
|
|
|
|
%description -n libKPimItinerary5
|
|
|
|
Kitinerary is a library which provides a data model and a system to extract information
|
|
|
|
from travel reservations. The model can then be reused in other applications.
|
|
|
|
This package contains the library itself.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for kitinerary
|
|
|
|
Group: Development/Libraries/KDE
|
|
|
|
Requires: libKPimItinerary5 = %{version}
|
2019-10-25 21:47:45 +02:00
|
|
|
Requires: cmake(KF5CalendarCore)
|
|
|
|
Requires: cmake(KF5Contacts)
|
|
|
|
Requires: cmake(KF5Mime)
|
|
|
|
Requires: cmake(KPimPkPass)
|
|
|
|
Requires: cmake(Qt5Gui)
|
2018-07-28 15:35:55 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains all necessary include files and libraries needed
|
|
|
|
to build programs that use the kitinerary library.
|
|
|
|
|
|
|
|
%lang_package -n libKPimItinerary5
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake_kf5 -d build
|
|
|
|
%make_jobs
|
|
|
|
|
|
|
|
%install
|
|
|
|
%kf5_makeinstall -C build
|
|
|
|
%if %{with lang}
|
|
|
|
%find_lang %{name} --with-man --with-qt --all-name
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%post -n libKPimItinerary5 -p /sbin/ldconfig
|
|
|
|
%postun -n libKPimItinerary5 -p /sbin/ldconfig
|
|
|
|
|
2019-04-03 10:52:13 +02:00
|
|
|
%files
|
|
|
|
%license COPYING.LIB
|
|
|
|
%{_kf5_libexecdir}/kitinerary-extractor
|
2019-11-29 12:39:46 +01:00
|
|
|
%dir %{_kf5_sharedir}/mime
|
|
|
|
%dir %{_kf5_sharedir}/mime/packages
|
|
|
|
%{_kf5_sharedir}/mime/packages/application-vnd-kde-itinerary.xml
|
2019-04-03 10:52:13 +02:00
|
|
|
|
2018-07-28 15:35:55 +02:00
|
|
|
%files -n libKPimItinerary5
|
|
|
|
%license COPYING.LIB
|
|
|
|
%{_kf5_libdir}/libKPimItinerary.so.*
|
|
|
|
%{_kf5_debugdir}/*.categories
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%dir %{_includedir}/KPim/
|
|
|
|
%{_includedir}/KPim/KItinerary/
|
|
|
|
%{_includedir}/KPim/kitinerary/
|
|
|
|
%{_kf5_cmakedir}/KPimItinerary/
|
|
|
|
%{_kf5_libdir}/libKPimItinerary.so
|
|
|
|
|
|
|
|
%if %{with lang}
|
|
|
|
%files -n libKPimItinerary5-lang -f %{name}.lang
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%changelog
|