Search
SailfishOS Open Build Service
>
Projects
>
home:tangtao77
>
connectionagent-qt5
> Changes
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 3
We truncated the diff of some files because they were too big. If you want to see the full diff for every file,
click here
.
[-]
[+]
Added
connectionagent-qt5.spec
@@ -0,0 +1,437 @@ +Name: connectionagent-qt5 + +# >> macros +# << macros + +Summary: User Agent daemon +Version: 0.11.23 +Release: 1.3.39 +Group: Communications/Connectivity Adaptation +License: LGPLv2 +URL: http://github.com/lpotter/connectionagent +Source0: %{name}-%{version}.tar.bz2 +Source1: connectionagent.tracing +Requires: connman-qt5-declarative +Requires: systemd +Requires: systemd-user-session-targets +Requires: connman >= 1.21 +BuildRequires: pkgconfig(Qt5Core) +BuildRequires: pkgconfig(Qt5DBus) +BuildRequires: pkgconfig(connman-qt5) +BuildRequires: pkgconfig(qofono-qt5) +BuildRequires: pkgconfig(Qt5Network) +BuildRequires: pkgconfig(Qt5Test) +BuildRequires: pkgconfig(Qt5Qml) +Provides: connectionagent > 0.10.1 +Obsoletes: connectionagent <= 0.7.6 + +%description +Connection Agent provides multi user access to connman's User Agent. +It also provides autoconnecting features. + + +%package declarative +Summary: Declarative plugin for connection agent. +Group: Development/Tools +Requires: %{name} = %{version}-%{release} +Requires: %{name} = %{version} + +%description declarative +This package contains the declarative plugin for connection agent. + +%package test +Summary: auto test for connection agent. +Group: Development/Tools +Requires: %{name} = %{version}-%{release} +Requires: %{name} = %{version} + +%description test +This package contains the auto tests for connection agent. + +%package tracing +Summary: Configuration for Connectionagent to enable tracing +Group: Development/Tools +Requires: %{name} = %{version}-%{release} + +%description tracing +Will enable tracing for Connectionagent + + +%prep +%setup -q -n %{name}-%{version} + +# >> setup +# << setup + +%build +# >> build pre +# << build pre + +%{!?qtc_qmake5:%define qtc_qmake5 %qmake5} +%{!?qtc_make:%define qtc_make make} + +%qtc_qmake5 +%qtc_make %{?_smp_mflags} + +# >> build post +# << build post + +%install +rm -rf %{buildroot} +# >> install pre +# << install pre +%qmake5_install + +%make_install +mkdir -p %{buildroot}%{_sysconfdir}/tracing/connectionagent/ +cp -a %{SOURCE1} %{buildroot}%{_sysconfdir}/tracing/connectionagent/ + +# >> install post +mkdir -p %{buildroot}%{_libdir}/systemd/user/user-session.target.wants +ln -s ../connectionagent.service %{buildroot}%{_libdir}/systemd/user/user-session.target.wants/ +# << install post + +%post +# >> post +if [ "$1" -ge 1 ]; then +systemctl-user daemon-reload || : +systemctl-user restart connectionagent.service || : +fi +# << post + +%postun +# >> postun +if [ "$1" -eq 0 ]; then +systemctl-user stop connectionagent.service || : +systemctl-user daemon-reload || : +fi +# << postun + +%files +%defattr(-,root,root,-) +%{_bindir}/connectionagent +%{_datadir}/dbus-1/services/com.jolla.Connectiond.service +%{_libdir}/systemd/user/connectionagent.service +%{_sysconfdir}/dbus-1/session.d/connectionagent.conf +# >> files +%{_libdir}/systemd/user/user-session.target.wants/connectionagent.service +# << files + +%files declarative +%defattr(-,root,root,-) +%{_libdir}/qt5/qml/com/jolla/connection/* +# >> files declarative +# << files declarative + +%files test +%defattr(-,root,root,-) +%{_prefix}/opt/tests/libqofono/* +# >> files test +# << files test + +%files tracing +%defattr(-,root,root,-) +%config %{_sysconfdir}/tracing/connectionagent +# >> files tracing +# << files tracing + +%changelog +* Fri Oct 3 2014 Lorn Potter <lorn.potter@jollamobile.com> - 0.11.23 +- [connectionagent] bump version to 0.11.23 +* Wed Oct 1 2014 Lorn Potter <lorn.potter@jollamobile.com> - 0.11.22 +- [connectionagent] recommit do not continue connectToType(\"cellular\") if autoconnect is not enabled +* Wed Oct 1 2014 Lorn Potter <lorn.potter@jollamobile.com> - 0.11.21 +- [connectionagent] Check for null pointer before debugging +- [connectionagent] do not continue connectToType(\"cellular\") if autoconnect is not enabled +- [connectionagent] fix wlan<->wifi and mobile<->cellular in connectToType +- [connectionagent] Rework service tracking +* Tue Sep 9 2014 Lorn Potter <lorn.potter@gmail.com> - 0.11.20 +- [connectionagent] Add module identifier +* Mon Aug 25 2014 Pasi Sjöholm <pasi.sjoholm@siirappi.com> - 0.11.19 +- [connectionagent] do not crash if tethering interface disappears +* Fri Aug 22 2014 Lorn Potter <lorn.potter@jollamobile.com> - 0.11.18 +- [connectionagent] remove ask for roaming. +* Thu Jul 31 2014 Lorn Potter <lorn.potter@jollamobile.com> - 0.11.17 +- [connectionagent] Make sure to popup conneciton dialog only when +- [connectionagent] Make sure to popup conneciton dialog only when roaming and always ask is selected. Fixes JB21640 +* Mon Jul 14 2014 Aaron McCarthy <aaron.mccarthy@jollamobile.com> - 0.11.16 +- [connectionagent] Add option to keep tech powered when disabling tethering. +* Wed Jul 9 2014 Lorn Potter <lorn.potter@jollamobile.com> - 0.11.15 +- [connectionagent] Do not send connectionRequest if there is a service +- [connectionagent] Do not send connectionRequest if there is a service available that is auto connectable. +* Sun Jul 6 2014 Lorn Potter <lorn.potter@jollamobile.com> - 0.11.14 +- [connectionagent] ask for connection when always ask is configured +- [connectionagent] ask for connection when always ask is configured and user changes autoconnect on. +* Fri Jun 27 2014 Lorn Potter <lorn.potter@jollamobile.com> - 0.11.13 +- [connectionagent] fix disconnecting mobile data when connecting to wlan +* Wed Jun 25 2014 Aaron McCarthy <aaron.mccarthy@jollamobile.com> - 0.11.12 +- [connectionagent] Suppress errors when enabling tethering. +* Tue Jun 24 2014 Lorn Potter <lorn.potter@jollamobile.com> - 0.11.11 +- [connectionagent] disconnect mobile data if wifi becomes ready +* Thu Jun 12 2014 Lorn Potter <lorn.potter@jollamobile.com> - 0.11.10 +- [connectionagent] delay setting tethering enabled after power on. +* Mon Jun 9 2014 Lorn Potter <lorn.potter@jollamobile.com> - 0.11.9 +- [connectionagent] bump version to 0.11.9 +- [connectionagent] do not try to connect if already connected when +- [connectionagent] do not try to connect if already connected when autoconnect property changes +- [connectionagent] trace every requestConnect call +* Thu May 29 2014 Lorn Potter <lorn.potter@jollamobile.com> - 0.11.8 +- [connectionagent] fix crash accessing NULL object +* Thu May 8 2014 Lorn Potter <lorn.potter@jollamobile.com> - 0.11.7 +- [connectionagent] Initialize delayedTethering member +* Mon May 5 2014 Lorn Potter <lorn.potter@jollamobile.com> - 0.11.6 +- [connectionagent] Ensure dangling pointers are not left in services map. +* Fri May 2 2014 Lorn Potter <lorn.potter@jollamobile.com> - 0.11.5 +- [connectionagent] add tethering functionality +* Mon Apr 28 2014 Vesa Halttunen <vesa.halttunen@jollamobile.com> - 0.11.4 +- [connectionagent] Remove debug print +* Tue Apr 22 2014 Lorn Potter <lorn.potter@jollamobile.com> - 0.11.3 +- [connectionagent] Do not signal dbus Method errors and discard connect-failed errors from mobiledata when flightmode is enabled. +- [connectionagent] make connectToType work correctly. +- [connectionagent] make connectToType work correctly, discard some errors +* Tue Apr 15 2014 Aaron McCarthy <aaron.mccarthy@jollamobile.com> - 0.11.2 +- [connectionagent] Don't automatically turn on tech power. +* Tue Apr 15 2014 Lorn Potter <lorn.potter@jollamobile.com> - 0.11.1 +- [connectionagent] add requires for connman > 1.21 +- [connectionagent] dont connect when autoconnect is toggled if network is already connected. +- [connectionagent] open connection selector when called from connectToType and not autoconnectable. +* Fri Apr 11 2014 Lorn Potter <lorn.potter@jollamobile.com> - 0.11.0 +- [connectionagent] dont try to connect if already connected. Will result in 'Already connected' error