diff --git a/cmst.appdata.xml b/cmst.appdata.xml new file mode 100644 index 0000000..d0ccdaa --- /dev/null +++ b/cmst.appdata.xml @@ -0,0 +1,37 @@ + + + + cmst.desktop + CC0 + MIT + cmst + A Qt based GUI front end for the connman connection manager with systemtray icon + +

+ Qt GUI for Connman with system tray icon. The program provides graphical user interface to control the connman daemon. + The connman daemon must be started as you normally would, this program just interfaces with that daemon. + You can see what technologies and services connman has found, and for wifi services an agent is registered to assist in + obtaining the information from you necessary to logon the wifi service. +

+
+ + https://cloud.githubusercontent.com/assets/6935544/6433029/c8f5428a-c032-11e4-8959-b7c2560d4c03.png + https://cloud.githubusercontent.com/assets/6935544/6433032/c90476f6-c032-11e4-9f07-897a075ddc25.png + https://cloud.githubusercontent.com/assets/6935544/6433031/c901205a-c032-11e4-9caf-af1d2176d9fc.png + https://cloud.githubusercontent.com/assets/6935544/10594662/5a4e4a9e-769d-11e5-87b7-a6238acd3983.png + + https://github.com/andrew-bibb/cmst + Andrew Bibb@email_address_hidden + + HiDpiIcon + ModernToolkit + Notifications + + + audio + music + player + tag + library + +
diff --git a/cmst.service b/cmst.service new file mode 100644 index 0000000..cab6e99 --- /dev/null +++ b/cmst.service @@ -0,0 +1,12 @@ +[Unit] +Description=GUI to control the connman daemon + +[Service] +Type=dbus +User=root +EnvironmentFile=/etc/dbus-1/system.d/org.cmst.roothelper.conf +BusName=org.cmst.roothelper +ExecStart=/usr/lib/cmst/cmstroothelper --no-daemon + +[Install] +WantedBy=multi-user.target diff --git a/cmst.spec b/cmst.spec new file mode 100644 index 0000000..7b209c8 --- /dev/null +++ b/cmst.spec @@ -0,0 +1,126 @@ +#https://github.com/andrew-bibb/cmst/commit/16ee823c3edb0d91203ac2a532220dc79018b0c9 +%global commit0 16ee823c3edb0d91203ac2a532220dc79018b0c9 +%global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) + +Name: cmst +Version: 2016.01.26 +Release: 5.git%{shortcommit0}%{?dist} +Summary: A Qt based GUI front end for the connman connection manager with systemtray icon + +License: MIT +URL: https://github.com/andrew-bibb/cmst +# wget https://github.com/andrew-bibb/cmst/archive/16ee823c3edb0d91203ac2a532220dc79018b0c9/cmst-16ee823.tar.gz +Source0: https://github.com/andrew-bibb/cmst/archive/%{commit0}/%{name}-%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz +Source1: %{name}.service +# https://github.com/andrew-bibb/cmst/issues/135 +Source2: %{name}.appdata.xml + +BuildRequires: qt5-qtbase-devel +BuildRequires: qt5-linguist +BuildRequires: desktop-file-utils +BuildRequires: libappstream-glib +BuildRequires: systemd-units +Requires(pre): shadow-utils +Requires(post): systemd-units +Requires(preun): systemd-units +Requires(postun): systemd-units + +Requires: connman +Requires: hicolor-icon-theme + +%description +Qt GUI for Connman with system tray icon. The program provides graphical user +interface to control the connman daemon. The connman daemon must be started as +you normally would, this program just interfaces with that daemon. +You can see what technologies and services connman has found, and for wifi +services an agent is registered to assist in obtaining the information from +you necessary to logon the wifi service. + +%prep +%setup -qn %{name}-%{commit0} + +sed -i -e 's|Categories=Settings;System;Qt;Network;|Categories=Network;|g' misc/desktop/cmst.desktop +sed -i -e 's|CMST_LIB_PATH = "/usr/lib/cmst"|CMST_LIB_PATH = "%{_libexecdir}/%{name}"|g' cmst.pri + +# change permission due rpmlint W: spurious-executable-perm +find . -type f \( -name "*.cpp" -o -name "*.h" \) -exec chmod a-x {} \; + +%build +# Create translation files. +lrelease-qt5 translations/*.ts + +%{qmake_qt5} +make %{?_smp_mflags} + +%install +make install INSTALL_ROOT=%{buildroot} +install -d -m 0755 %{buildroot}%{_datadir}/%{name}/languages +install -m 0644 translations/*.qm \ + %{buildroot}%{_datadir}/%{name}/languages + +# Systemd unit files +# copy cmst.service to unitdir /lib/systemd/system +mkdir -p %{buildroot}%{_unitdir} +install -Dpm 644 %{SOURCE1} %{buildroot}/%{_unitdir}/%{name}.service + +mkdir -p %{buildroot}%{_datadir}/{applications,appdata} +install -Dm 0644 %{SOURCE2} %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml + +%find_lang %{name} --with-qt + +%check +desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop +appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/*.appdata.xml + +%post +touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : +update-desktop-database &> /dev/null || : +%systemd_post %{name}.service + +%preun +%systemd_preun %{name}.service + +%postun +if [ $1 -eq 0 ] ; then + touch --no-create %{_datadir}/icons/hicolor &>/dev/null + gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +fi +update-desktop-database &> /dev/null || : +%systemd_postun_with_restart %{name}.service + +%posttrans +gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + +%files -f %{name}.lang +%doc README.md +%license text/LICENSE +%{_bindir}/%{name} +%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.cmst.roothelper.conf +%{_unitdir}/%{name}.service +%{_libexecdir}/%{name}/ +%{_datadir}/applications/*.desktop +%{_datadir}/dbus-1/system-services/org.cmst.roothelper.service +%{_datadir}/icons/hicolor/*/apps/%{name}.* +%{_datadir}/appdata/%{name}.appdata.xml +%{_datadir}/%{name}/ +%{_mandir}/man1/* + +%changelog +* Thu Feb 25 2016 Martin Gansser - 2016.01.26-5.git16ee823 +- set correct file permisson +- take ownership of unowned directorys + +* Thu Feb 25 2016 Martin Gansser - 2016.01.26-4.git16ee823 +- added BR qt5-linguist +- added BR libappstream-glib + +* Wed Feb 24 2016 Martin Gansser - 2016.01.26-3.git16ee823 +- addedd cmst.appdata.xml file + +* Wed Feb 24 2016 Martin Gansser - 2016.01.26-2.git16ee823 +- changed release tag +- removed owned files in files/sub-directories +- added %%find_lang macro to find .qm files + +* Sat Jan 30 2016 Martin Gansser - 2016.01.26-1.gitcfe10e5 +- initial release