From a5c262d0e94e282a4d3ca9015e17313c834b8808 Mon Sep 17 00:00:00 2001 From: Lorn Potter Date: Wed, 22 May 2013 15:38:12 +1000 Subject: [PATCH] [connectionagent] add qmake5_install to sepc. bump version --- rpm/connectionagent-qt5.spec | 91 ++++++++++++++++++++++++++++++++++++ rpm/connectionagent-qt5.yaml | 50 ++++++++++++++++++++ rpm/connectionagent.spec | 2 +- rpm/connectionagent.yaml | 2 +- 4 files changed, 143 insertions(+), 2 deletions(-) create mode 100644 rpm/connectionagent-qt5.spec create mode 100644 rpm/connectionagent-qt5.yaml diff --git a/rpm/connectionagent-qt5.spec b/rpm/connectionagent-qt5.spec new file mode 100644 index 0000000..66e4342 --- /dev/null +++ b/rpm/connectionagent-qt5.spec @@ -0,0 +1,91 @@ +# +# Do NOT Edit the Auto-generated Part! +# Generated by: spectacle version 0.26 +# + +Name: connectionagent-qt5 + +# >> macros +# << macros + +Summary: User Agent daemon +Version: 0.6.4 +Release: 0 +Group: Communications/Connectivity Adaptation +License: LGPLv2 +URL: http://github.com/lpotter/connectionagent +Source0: %{name}-%{version}.tar.bz2 +Source100: connectionagent-qt5.yaml +Requires: connman-qt5-declarative +BuildRequires: pkgconfig(Qt5Core) +BuildRequires: pkgconfig(Qt5DBus) +BuildRequires: pkgconfig(Qt5Quick) +BuildRequires: pkgconfig(Qt5Network) +BuildRequires: pkgconfig(connman-qt5) +BuildRequires: pkgconfig(lipstick-qt5) + +%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: Declarative test for connection agent. +Group: Development/Tools +Requires: %{name} = %{version}-%{release} +Requires: %{name} = %{version} + +%description test +This package contains the declarative plugin for connection agent. + +%prep +%setup -q -n %{name}-%{version} + +# >> setup +# << setup + +%build +# >> build pre +# << build pre + +export QT_SELECT=5 +%qmake5 + +make %{?jobs:-j%jobs} + +# >> build post +# << build post + +%install +rm -rf %{buildroot} +# >> install pre +# << install pre +export QT_SELECT=5 +%qmake5_install + +# >> install post +# << install post + +%files +%defattr(-,root,root,-) +%{_bindir}/connectionagent +%{_datadir}/dbus-1/services/com.jolla.Connectiond.service +%{_libdir}/systemd/user/connectionagent.service +# >> files +# << files + +%files declarative +%defattr(-,root,root,-) +%{_libdir}/qt5/imports/com/jolla/connection/* +# >> files declarative +# << files declarative + diff --git a/rpm/connectionagent-qt5.yaml b/rpm/connectionagent-qt5.yaml new file mode 100644 index 0000000..c2e70a7 --- /dev/null +++ b/rpm/connectionagent-qt5.yaml @@ -0,0 +1,50 @@ +Name: connectionagent-qt5 +Summary: User Agent daemon +Version: 0.6.5 +Release: 0 +Group: "Communications/Connectivity Adaptation" +License: LGPLv2 +URL: http://github.com/lpotter/connectionagent +Description: | + Connection Agent provides multi user access to connman's User Agent. + It also provides autoconnecting features. + +Sources: + - "%{name}-%{version}.tar.bz2" +Requires: + - connman-qt5-declarative + +PkgConfigBR: + - Qt5Core + - Qt5DBus + - connman-qt5 + - lipstick-qt5 + +Configure: none +Builder: qmake5 +Files: + - "%{_bindir}/connectionagent" + - "%{_datadir}/dbus-1/services/com.jolla.Connectiond.service" + - "%{_libdir}/systemd/user/connectionagent.service" +SubPackages: + - Name: declarative + Summary: Declarative plugin for connection agent. + Group: Development/Tools + Description: This package contains the declarative plugin for connection agent. + Requires: + - "%{name} = %{version}" + Files: + - "%{_libdir}/qt5/imports/com/jolla/connection/*" + + - Name: test + Summary: Declarative test for connection agent. + Group: Development/Tools + Description: This package contains the declarative plugin for connection agent. + Requires: + - "%{name} = %{version}" + Files: + - "/opt/sdk/bin/testqml" + - "/opt/sdk/share/applications/testqml.desktop" + - "/opt/sdk/share/testqml/*" + + diff --git a/rpm/connectionagent.spec b/rpm/connectionagent.spec index d1bfe02..b16420b 100644 --- a/rpm/connectionagent.spec +++ b/rpm/connectionagent.spec @@ -9,7 +9,7 @@ Name: connectionagent # << macros Summary: User Agent daemon -Version: 0.4 +Version: 0.6.5 Release: 0 Group: Communications/Connectivity Adaptation License: LGPLv2 diff --git a/rpm/connectionagent.yaml b/rpm/connectionagent.yaml index 03bded1..b17881f 100644 --- a/rpm/connectionagent.yaml +++ b/rpm/connectionagent.yaml @@ -1,6 +1,6 @@ Name: connectionagent Summary: User Agent daemon -Version: 0.4 +Version: 0.6.5 Release: 0 Group: "Communications/Connectivity Adaptation" License: LGPLv2