Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[connectionagent] Don't build/install daemon and configuration for Qt 4.
This also makes the Qt 4 packages depend on the Qt 5 package (for the daemon
implementation).

For the time being, Qt 4 declarative/tests are still built, and the Qt 4 tests
package is not co-installable with Qt 5.
  • Loading branch information
rburchell committed Jun 26, 2013
1 parent 4f6a57c commit 1c48fd1
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 27 deletions.
5 changes: 3 additions & 2 deletions connectionagent.pro
Expand Up @@ -2,8 +2,6 @@ TEMPLATE = subdirs

TEMPLATE += ordered

SUBDIRS += config
SUBDIRS += connd
SUBDIRS += connectionagentplugin
SUBDIRS += test

Expand All @@ -14,6 +12,9 @@ equals(QT_MAJOR_VERSION, 4): {
}

equals(QT_MAJOR_VERSION, 5): {
SUBDIRS += config
SUBDIRS += connd

OTHER_FILES += rpm/connectionagent-qt5.spec \
rpm/connectionagent-qt5.yaml
}
Expand Down
2 changes: 2 additions & 0 deletions rpm/connectionagent-qt5.spec
Expand Up @@ -23,6 +23,8 @@ BuildRequires: pkgconfig(connman-qt5)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5Test)
BuildRequires: pkgconfig(Qt5Qml)
Provides: connectionagent > 0.7.6
Obsoletes: connectionagent <= 0.7.6

%description
Connection Agent provides multi user access to connman's User Agent.
Expand Down
5 changes: 4 additions & 1 deletion rpm/connectionagent-qt5.yaml
Expand Up @@ -13,7 +13,10 @@ Sources:
- "%{name}-%{version}.tar.bz2"
Requires:
- connman-qt5-declarative

Provides:
- connectionagent > 0.7.6
Obsoletes:
- connectionagent <= 0.7.6
PkgConfigBR:
- Qt5Core
- Qt5DBus
Expand Down
15 changes: 2 additions & 13 deletions rpm/connectionagent.spec
Expand Up @@ -16,7 +16,6 @@ License: LGPLv2
URL: http://github.com/lpotter/connectionagent
Source0: %{name}-%{version}.tar.bz2
Source100: connectionagent.yaml
Requires: connman-qt-declarative
BuildRequires: pkgconfig(QtCore)
BuildRequires: pkgconfig(QtDBus)
BuildRequires: pkgconfig(connman-qt4)
Expand All @@ -30,17 +29,15 @@ It also provides autoconnecting features.
%package declarative
Summary: Declarative plugin for connection agent.
Group: Development/Tools
Requires: %{name} = %{version}-%{release}
Requires: %{name} = %{version}
Requires: connectionagent-qt5

%description declarative
This package contains the declarative plugin for connection agent.

%package test
Summary: Tests for connection agent.
Group: Development/Tools
Requires: %{name} = %{version}-%{release}
Requires: %{name} = %{version}
Requires: connectionagent-qt5

%description test
This package contains the tests for connection agent.
Expand Down Expand Up @@ -71,14 +68,6 @@ rm -rf %{buildroot}
# >> install post
# << install post

%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
# << files

%files declarative
%defattr(-,root,root,-)
Expand Down
14 changes: 3 additions & 11 deletions rpm/connectionagent.yaml
Expand Up @@ -11,29 +11,21 @@ Description: |
Sources:
- "%{name}-%{version}.tar.bz2"
Requires:
- connman-qt-declarative

PkgConfigBR:
- QtCore
- QtDBus
- connman-qt4
- QtNetwork
Configure: none
Builder: qmake
Files:
- "%{_bindir}/connectionagent"
- "%{_datadir}/dbus-1/services/com.jolla.Connectiond.service"
- "%{_libdir}/systemd/user/connectionagent.service"
- "%{_sysconfdir}/dbus-1/session.d/connectionagent.conf"

NoFiles: true
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}"
- connectionagent-qt5
Files:
- "%{_libdir}/qt4/imports/com/jolla/connection/*"

Expand All @@ -42,7 +34,7 @@ SubPackages:
Group: Development/Tools
Description: This package contains the tests for connection agent.
Requires:
- "%{name} = %{version}"
- connectionagent-qt5
Files:
- "/opt/sdk/bin/testqml"
- "/opt/sdk/share/applications/testqml.desktop"
Expand Down

0 comments on commit 1c48fd1

Please sign in to comment.