commit 4d0d2d268d1cf0aab3b40bf5f50649842324abc5997e11c1d7def6241d4bed67 Author: Christophe Giboudeaux Date: Sat Nov 14 08:55:42 2020 +0000 osc copypac from project:KDE:Unstable:Extra package:kpublictransport revision:303 OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/kpublictransport?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..79ca817 --- /dev/null +++ b/_service @@ -0,0 +1,13 @@ + + + https://invent.kde.org/libraries/kpublictransport.git + git + 0.0.1git.%ci~%h + + + + *.tar + xz + + + diff --git a/_service:obs_scm:kpublictransport-0.0.1git.20201108T190551~02631b5.obscpio b/_service:obs_scm:kpublictransport-0.0.1git.20201108T190551~02631b5.obscpio new file mode 100644 index 0000000..ec060bc --- /dev/null +++ b/_service:obs_scm:kpublictransport-0.0.1git.20201108T190551~02631b5.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eec6f5f94754a8fb87d83b7c8979060d4d0a30b188b0dc3e9f2523368f442d93 +size 2881548 diff --git a/_service:obs_scm:kpublictransport.obsinfo b/_service:obs_scm:kpublictransport.obsinfo new file mode 100644 index 0000000..f69dc68 --- /dev/null +++ b/_service:obs_scm:kpublictransport.obsinfo @@ -0,0 +1,5 @@ +name: kpublictransport +version: 0.0.1git.20201108T190551~02631b5 +mtime: 1604858751 +commit: 02631b5699289c28f2984619e3e1a34cf061db9a + diff --git a/kpublictransport.changes b/kpublictransport.changes new file mode 100644 index 0000000..dc51ee1 --- /dev/null +++ b/kpublictransport.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Mon Jul 22 07:46:15 UTC 2019 - Fabian Vogt + +- Initial commit diff --git a/kpublictransport.spec b/kpublictransport.spec new file mode 100644 index 0000000..95bffe5 --- /dev/null +++ b/kpublictransport.spec @@ -0,0 +1,116 @@ +# +# spec file for package kpublictransport +# +# Copyright (c) 2020 SUSE LLC +# +# 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. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%global sover 0 +%global fullsover 0.0.1 +%global lname libKPublicTransport%{sover} +%bcond_without lang +Name: kpublictransport +Version: 0.0.1 +Release: 0 +Summary: QML imports for querying public transport data +License: LGPL-2.0-or-later +Group: System/GUI/KDE +URL: https://www.kde.org +# Not there yet +Source: %{name}-%{version}.tar.xz +BuildRequires: bison +BuildRequires: cmake >= 3.5 +BuildRequires: extra-cmake-modules +BuildRequires: fdupes +BuildRequires: flex +BuildRequires: kf5-filesystem +BuildRequires: pkgconfig +BuildRequires: cmake(Qt5Quick) >= 5.10.0 +BuildRequires: cmake(Qt5Test) >= 5.10.0 +BuildRequires: cmake(Qt5Widgets) >= 5.10.0 +BuildRequires: pkgconfig(zlib) +Requires: %{lname} = %{version} + +%description +A library for access realtime public transport data and for performing public +ransport journey queries. QML imports. + +%package -n %{lname} +Summary: Library for querying public transport data +Group: System/GUI/KDE + +%description -n %{lname} +A library for access realtime public transport data and for performing public +ransport journey queries. + +%package devel +Summary: Library for querying public transport data +Group: Development/Libraries/KDE +Requires: %{lname} = %{version} +Requires: extra-cmake-modules +Requires: cmake(Qt5Gui) + +%description devel +A library for access realtime public transport data and for performing public +ransport journey queries.Development files. + +%lang_package -n %{lname} + +%prep +%autosetup -p1 + +%build +%cmake_kf5 -d build -- -DBUILD_TESTING=ON +%cmake_build + +%install +%kf5_makeinstall -C build +%if %{with lang} + # Fill once released + # %find_lang %{name} --with-man --all-name +%endif + +%check +export CTEST_OUTPUT_ON_FAILURE=1 +export QT_QPA_PLATFORM=offscreen +%make_build -C build test + +%post -n %{lname} -p /sbin/ldconfig +%postun -n %{lname} -p /sbin/ldconfig + +%if %{with lang} +%files -n %{lname}-lang -f %{name}.lang +%endif + +%files +%license LICENSES/* +%dir %{_kf5_qmldir}/org/ +%dir %{_kf5_qmldir}/org/kde/ +%{_kf5_qmldir}/org/kde/kpublictransport/ + +%files -n %{lname} +%license LICENSES/* +%{_kf5_debugdir}/org_kde_kpublictransport.categories +%{_kf5_libdir}/libKPublicTransport.so.%{fullsover} +%{_kf5_libdir}/libKPublicTransport.so.%{sover} + +%files devel +%license LICENSES/* +%{_includedir}/KPublicTransport/ +%{_includedir}/kpublictransport/ +%{_includedir}/kpublictransport_version.h +%{_kf5_libdir}/cmake/KPublicTransport/ +%{_kf5_libdir}/libKPublicTransport.so + +%changelog