Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[sensorfw] use qt5 sensord, lib, qt4 qt-api compat packaging.
Also move hybris to own lib, and package separately.
- Loading branch information
Lorn Potter
committed
Aug 28, 2013
1 parent
a9889f3
commit 5bd91d6
Showing
16 changed files
with
419 additions
and
288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
# | ||
# Do NOT Edit the Auto-generated Part! | ||
# Generated by: spectacle version 0.27 | ||
# | ||
|
||
Name: hybris-libsensorfw-qt5 | ||
|
||
# >> macros | ||
# << macros | ||
|
||
Summary: Sensor Framework Qt5 | ||
Version: 0.7.3.3 | ||
Release: 0 | ||
Group: System/Sensor Framework | ||
License: LGPLv2+ | ||
URL: http://gitorious.org/sensorfw | ||
Source0: %{name}-%{version}.tar.bz2 | ||
Source100: sensorfw-qt5-hybris.yaml | ||
Requires: qt5-qtcore | ||
Requires: GConf-dbus | ||
Requires: %{name}-configs | ||
Requires: systemd | ||
Requires: sensorfw-qt5 | ||
Requires(preun): systemd | ||
Requires(post): /sbin/ldconfig | ||
Requires(post): systemd | ||
Requires(postun): /sbin/ldconfig | ||
Requires(postun): systemd | ||
BuildRequires: pkgconfig(Qt5Core) | ||
BuildRequires: pkgconfig(Qt5DBus) | ||
BuildRequires: pkgconfig(Qt5Network) | ||
BuildRequires: pkgconfig(Qt5Test) | ||
BuildRequires: pkgconfig(gconf-2.0) | ||
|
||
%description | ||
Sensor Framework provides an interface to hardware sensor drivers through logical sensors. This package contains sensor framework daemon and required libraries. | ||
|
||
%package devel | ||
Summary: Sensor framework daemon libraries development headers | ||
Group: Development/Libraries | ||
Requires: %{name} = %{version}-%{release} | ||
Requires: qt5-qtcore-devel | ||
Requires: qt5-qtdbus-devel | ||
Requires: qt5-qtnetwork-devel | ||
|
||
%description devel | ||
Development headers for sensor framework daemon and libraries. | ||
|
||
|
||
%package configs | ||
Summary: Sensorfw configuration files | ||
Group: System/Libraries | ||
BuildArch: noarch | ||
Requires: %{name} = %{version} | ||
Provides: config-hybris | ||
|
||
%description configs | ||
Sensorfw configuration files. | ||
|
||
%prep | ||
%setup -q -n %{name}-%{version} | ||
|
||
# >> setup | ||
# << setup | ||
|
||
%build | ||
unset LD_AS_NEEDED | ||
# >> build pre | ||
export LD_RUN_PATH=/usr/lib/sensord/ | ||
export QT_SELECT=5 | ||
# << build pre | ||
|
||
%qmake5 CONFIG+=hybris | ||
|
||
make %{?jobs:-j%jobs} | ||
|
||
# >> build post | ||
# << build post | ||
|
||
%install | ||
rm -rf %{buildroot} | ||
# >> install pre | ||
export QT_SELECT=5 | ||
# << install pre | ||
%qmake5_install | ||
|
||
# >> install post | ||
# << install post | ||
|
||
%preun | ||
if [ "$1" -eq 0 ]; then | ||
systemctl stop sensord.service | ||
fi | ||
|
||
%post | ||
/sbin/ldconfig | ||
systemctl daemon-reload | ||
systemctl reload-or-try-restart sensord.service | ||
|
||
%postun | ||
/sbin/ldconfig | ||
systemctl daemon-reload | ||
|
||
%files | ||
%defattr(-,root,root,-) | ||
# >> files | ||
%{_libdir}/libhybrissensorfw*.so.* | ||
%{_libdir}/libhybrissensorfw*.so | ||
%{_libdir}/sensord-qt5/*.so | ||
# << files | ||
|
||
%files devel | ||
%defattr(-,root,root,-) | ||
# >> files devel | ||
%{_includedir}/sensord-qt5/* | ||
# << files devel | ||
|
||
%files configs | ||
%defattr(-,root,root,-) | ||
# >> files configs | ||
%config %{_sysconfdir}/sensorfw/sensord-hybris.conf | ||
# << files configs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
Name: sensorfw-qt5 | ||
Summary: Sensor Framework Qt5 | ||
Version: 0.7.3.3 | ||
Release: 0 | ||
Group: "System/Sensor Framework" | ||
License: LGPLv2+ | ||
URL: http://gitorious.org/sensorfw | ||
Description: | | ||
Sensor Framework provides an interface to hardware sensor drivers through logical sensors. This package contains sensor framework daemon and required libraries. | ||
Sources: | ||
- "%{name}-%{version}.tar.bz2" | ||
Requires: | ||
- qt5-qtcore | ||
- GConf-dbus | ||
- "%{name}-configs" | ||
- sensorfw-qt5 | ||
PkgConfigBR: | ||
- Qt5Core | ||
- Qt5DBus | ||
- Qt5Network | ||
- Qt5Test | ||
- gconf-2.0 | ||
#PkgBR: | ||
# - doxygen | ||
# - graphviz | ||
|
||
Configure: none | ||
Builder: qmake5 | ||
UseAsNeeded: no | ||
|
||
SubPackages: | ||
- Name: devel | ||
Group: Development/Libraries | ||
Requires: | ||
- qt5-qtcore-devel | ||
- qt5-qtdbus-devel | ||
- qt5-qtnetwork-devel | ||
- sensorfw-qt5-devel | ||
Summary: Sensor framework hybris libraries development headers | ||
Description: | | ||
Development headers for sensor framework hybris library. | ||
- Name: configs | ||
Group: System/Libraries | ||
Summary: Sensorfw configuration files | ||
Description: | | ||
Sensorfw configuration files. | ||
BuildArch: noarch | ||
AutoDepend: no | ||
Requires: | ||
- "%{name} = %{version}" | ||
Provides: | ||
- config-hybris |
Oops, something went wrong.