Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Simmphonie
guh
guh.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File guh.spec of Package guh
%define _qt4_datadir %{_datadir}/qt4 %define _qt4_headerdir %{_includedir} %define _qt4_libdir %{_libdir} %define _qt5_datadir %{_prefix}/lib/qt5 %define _qt5_libdir %{_libdir} %define _qt5_headerdir %{_includedir}/qt5 %define _qt5_archdatadir %{_libdir}/qt5 %global commit0 2972f3d83face46c2b07089bdb2004a0193ad5fd %global commitdate 20170913 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) %define libname lib%{name} %define soname 1 Summary: Open source IoT (Internet of Things) server Name: guh Version: 0.8.0 Release: %{commitdate}git%{shortcommit0} License: GPL-2.0 URL: https://github.com/guh/guh Source0: https://github.com/guh/guh/archive/%{commit0}.tar.gz#/%{name}-%{commit0}.tar.gz # BuildRequires: qtlockedfile-devel # BuildRequires: qtlockedfile-qt5-devel # BuildRequires: libqt4-devel BuildRequires: pkgconfig BuildRequires: libqt5-qtbase-devel BuildRequires: libqt5-qtconnectivity-devel BuildRequires: libqt5-qtwebsockets-devel BuildRequires: libqt5-qtserialport-devel BuildRequires: libavahi-devel BuildRequires: openssl-devel BuildRequires: libqt5-linguist-devel BuildRequires: rsync ccache dpkg BuildRequires: libqt5-qttools-devel # BuildRequires: python-argparse # BuildRequires: python-traceback2 # BuildRequires: python-json Requires: %{libname}%{soname} %description guh (/[guːh]/ - pronounced German and sounds like "goo") is an open source IoT (Internet of Things) server, which allows to control a lot of different devices from many different manufacturers. With the powerful rule engine you are able to connect any device available in the system and create individual scenes and behaviors for your environment. %package -n %{libname}%{soname} Summary: An open source IoT server - core library Group: Productivity/Multimedia/Video/Editors and Convertors %description -n %{libname}%{soname} The guh daemon is a plugin based IoT (Internet of Things) server. The server works like a translator for devices, things and services and allows them to interact. With the powerful rule engine you are able to connect any device available in the system and create individual scenes and behaviors for your environment. . This package will install shared libraries for guh. %package -n %{libname}-devel Summary: An open source IoT server - development files Group: Development/Libraries/C and C++ %description -n %{libname}-devel The guh daemon is a plugin based IoT (Internet of Things) server. The server works like a translator for devices, things and services and allows them to interact. With the powerful rule engine you are able to connect any device available in the system and create individual scenes and behaviors for your environment. . This package will install the development files and compilers for guh. %prep %setup -q -n guh-%{commit0} sed -i 's|GUH_PLUGINS_PATH=/usr/lib.*|GUH_PLUGINS_PATH=%{_libdir}/guh/plugins/|' guh.pri sed -i 's|rsync -a $$top_srcdir/|rsync -a |' guh.pri sed -i 's|target.path = /usr/lib/.*|target.path = %{buildroot}%{_libdir}|' libguh/libguh.pro sed -i 's|generateplugininfo.path = /usr/bin|generateplugininfo.path = %{buildroot}%{_bindir}|' libguh/libguh.pro sed -i 's|path = /usr/include/guh/|path = %{buildroot}/usr/include/guh/|' libguh/libguh.pro sed -i 's|target.path = /usr/bin|target.path = %{buildroot}%{_bindir}|' server/server.pro sed -i 's|translations.path = /usr/share/guh/translations|translations.path = %{buildroot}/usr/share/guh/translations|' server/server.pro # sed -i 's|LIBS += -L$$top_builddir/|LIBS += -L%{buildroot}/|' server/server.pro # sed -i 's|translationFile = .*|translationFile = "%{_builddir}/guh-%{commit0}/plugins/mock/" + (translation)|' plugins/guh-generateplugininfo sed -i 's|target.path = /usr/lib/.*|target.path = %{buildroot}%{_libdir}|' tests/libguh-core/libguh-core.pro %build # export DH_VERBOSE=1 # export QT_QPA_PLATFORM=minimal qmake-qt5 PYTHON_CONFIG=python%{python_version}-config CONFIG+="nosilent c++11 disabletesting ccache" QMAKE_CXXFLAGS="%{optflags}" ../guh-%{commit0}/ make %{?_smp_mflags} %install make install mkdir -p %{buildroot}%{_sysconfdir}/guh mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d mkdir -p %{buildroot}%{_unitdir} # mkdir -p %{buildroot}%{_mandir}/man1 # mkdir -p %{buildroot}%{_localstatedir}/adm/fillup-templates/ install -m 644 data/logrotate/guhd %{buildroot}%{_sysconfdir}/logrotate.d/ install -m 644 data/systemd/guhd.service %{buildroot}%{_unitdir}/%{name}d.service # install -m 644 data/logrotate/guhd /etc/logrotate.d/ # install -m 755 init.d_client_rh %{buildroot}%{_sysconfdir}/init.d/urbackupclientbackend %post -n %{libname}%{soname} -p /sbin/ldconfig %postun -n %{libname}%{soname} -p /sbin/ldconfig %pre %service_add_pre %{name}d.service %post %service_add_post %{name}d.service %preun %service_del_preun %{name}d.service %postun %service_del_postun %{name}d.service %files %defattr(-,root,root) %doc README.md LICENSE CODE_OF_CONDUCT.md %{_bindir}/* %attr(0644,root,root) %{_unitdir}/%{name}d.service %config(noreplace) %{_sysconfdir}/logrotate.d/* %files -n %{libname}%{soname} %defattr(0644,root,root) %{_libdir}/%{libname}.so.%{soname}* %files -n %{libname}-devel %defattr(0644,root,root) %{_includedir}/* %{_libdir}/%{libname}.so %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor