Search
SailfishOS Open Build Service
>
Projects
>
sailfishos
:
chum
:
testing
>
uptimed
> _service:tar_git:harbour-uptimed.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File _service:tar_git:harbour-uptimed.spec of Package uptimed
# # Do NOT Edit the Auto-generated Part! # Generated by: spectacle version 0.32 # Name: harbour-uptimed # >> macros # << macros %define upstream_name uptimed %define appname harbour-uprecords Summary: Daemon keeping track of the highest uptimes a computer system ever had Version: 0.4.6+git6 Release: 1 Group: Applications/File License: GPLv2 URL: https://github.com/rpodgorny/uptimed Source0: %{name}-%{version}.tar.gz Source1: %{name}-uprecords.png Source2: %{name}-uprecords_128.png Source3: %{name}-uprecords_86.png Source4: %{appname}.profile Source5: %{appname}.desktop Source6: %{appname}.qml Source100: harbour-uptimed.yaml Requires: qml(io.thp.pyotherside) Requires(pre): systemd Requires(post): systemd Requires(post): /sbin/ldconfig Requires(postun): systemd Requires(postun): /sbin/ldconfig BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool BuildRequires: systemd BuildRequires: desktop-file-utils %description Uptimed is an uptime record daemon keeping track of the highest uptimes a computer system ever had. It uses the system boot time to keep sessions apart from each other. Uptimed comes with a console front-end to parse the records, which can also easily be used to show your records on a web page. # This description section includes metadata for SailfishOS:Chum, see # https://github.com/sailfishos-chum/main/blob/main/Metadata.md %if "%{?vendor}" == "chum" PackageName: Uprecords/Uptimed Type: console-application DeveloperLogin: nephros Categories: - Utility Custom: PackagingRepo: https://codeberg.org/nephros/harbour-uptimed Repo: https://github.com/rpodgorny/uptimed Icon: https://codeberg.org/nephros/harbour-uptimed/raw/branch/master/rpm/harbour-uptimed-uprecords_128.png Screenshots: - https://codeberg.org/nephros/harbour-uptimed/raw/branch/master/harbour-uptimed_screenshot.jpg %endif %prep %setup -q -n %{name}-%{version}/upstream # >> setup # << setup %build # >> build pre ./autogen.sh # << build pre %configure --disable-static \ --with-systemdsystemunitdir=%{_unitdir} make %{?_smp_mflags} # >> build post # << build post %install rm -rf %{buildroot} # >> install pre # << install pre %make_install # >> install post # rename binary mv %{buildroot}/%{_sbindir}/%{upstream_name} %{buildroot}/%{_sbindir}/%{name} mv %{buildroot}/%{_unitdir}/%{upstream_name}.service %{buildroot}/%{_unitdir}/%{name}.service %{__install} -p -D -m 644 %{buildroot}/etc/uptimed.conf-dist %{buildroot}/%{_docdir}/%{name}/uptimed.conf-dist rm %{buildroot}/etc/uptimed.conf-dist # set config values on the command line sed -i -e "s_ExecStart=%{_sbindir}/%{upstream_name} -f_ExecStart=%{_sbindir}/%{name} -f -i 250 -m 0 -t 30m_" %{buildroot}/%{_unitdir}/%{name}.service %{__install} -p -D -m 644 %{SOURCE1} %{buildroot}/%{_datadir}/icons/hicolor/256x256/apps/%{name}-uprecords.png %{__install} -p -D -m 644 %{SOURCE2} %{buildroot}/%{_datadir}/icons/hicolor/128x128/apps/%{name}-uprecords.png %{__install} -p -D -m 644 %{SOURCE3} %{buildroot}/%{_datadir}/icons/hicolor/86x86/apps/%{name}-uprecords.png %{__install} -p -d %{buildroot}/%{_localstatedir}/spool/%{upstream_name} # app %{__install} -p -D -m 644 %{SOURCE4} %{buildroot}/%{_sysconfdir}/sailjail/permissions/%{appname}.profile %{__install} -p -D -m 644 %{SOURCE5} %{buildroot}/%{_datadir}/applications/%{appname}.desktop %{__install} -p -D -m 644 %{SOURCE6} %{buildroot}/%{_datadir}/%{appname}/qml/%{appname}.qml # remove docs rm -rf %{buildroot}/%{_mandir}/* rm -rf %{buildroot}/%{_docdir}/* # << install post desktop-file-install --delete-original \ --dir %{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/*.desktop %preun # >> preun %systemd_preun %{name}.service # << preun %post /sbin/ldconfig # >> post %systemd_post %{name}.service # << post %postun /sbin/ldconfig # >> postun %systemd_postun %{name}.service # << postun %files %defattr(-,root,root,-) %{_sbindir}/%{name} %{_bindir}/uprecords %{_libdir}/libuptimed.so* %{_unitdir}/%{name}.service %{_datadir}/icons/hicolor/*/apps/%{name}-uprecords.png %{_localstatedir}/spool/%{upstream_name} %ghost %{_localstatedir}/spool/%{upstream_name}/records %ghost %{_localstatedir}/spool/%{upstream_name}/records.old %{_sysconfdir}/sailjail/permissions/%{appname}.profile %{_datadir}/applications/%{appname}.desktop %{_datadir}/%{appname}/qml # >> files # << files