From 1adf7f1bcde493ccaacedb0d9778911ad69ff335 Mon Sep 17 00:00:00 2001 From: Javier Date: Thu, 4 Sep 2014 01:55:14 +0200 Subject: Initial import --- rpm/salmeta.spec | 94 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 rpm/salmeta.spec (limited to 'rpm/salmeta.spec') diff --git a/rpm/salmeta.spec b/rpm/salmeta.spec new file mode 100644 index 0000000..dfafb60 --- /dev/null +++ b/rpm/salmeta.spec @@ -0,0 +1,94 @@ +# +# Do NOT Edit the Auto-generated Part! +# Generated by: spectacle version 0.27 +# + +Name: salmeta + +# >> macros +# << macros + +%{!?qtc_qmake:%define qtc_qmake %qmake} +%{!?qtc_qmake5:%define qtc_qmake5 %qmake5} +%{!?qtc_make:%define qtc_make make} +%{?qtc_builddir:%define _builddir %qtc_builddir} +Summary: Salmeta +Version: 0.1 +Release: 1 +Group: Communications/Bluetooth +License: GPLv3 +URL: http://javispedro.com +Source0: %{name}-%{version}.tar.bz2 +Source100: salmeta.yaml +Requires: sailfishsilica-qt5 >= 0.10.9 +Requires: systemd +Requires: systemd-user-session-targets +BuildRequires: pkgconfig(sailfishapp) >= 1.0.2 +BuildRequires: pkgconfig(Qt5Core) +BuildRequires: pkgconfig(Qt5Qml) +BuildRequires: pkgconfig(Qt5Quick) +BuildRequires: pkgconfig(Qt5DBus) +BuildRequires: pkgconfig(Qt5Bluetooth) +BuildRequires: pkgconfig(mlite5) +BuildRequires: pkgconfig(libiphb) +BuildRequires: desktop-file-utils + +%description +Salmeta is a Metawatch manager program for Sailfish devices. + + +%prep +%setup -q -n %{name}-%{version} + +# >> setup +# << setup + +%build +# >> build pre +# << build pre + +%qtc_qmake5 + +%qtc_make %{?_smp_mflags} + +# >> build post +# << build post + +%install +rm -rf %{buildroot} +# >> install pre +# << install pre +%qmake5_install + +# >> install post +# << install post + +desktop-file-install --delete-original \ + --dir %{buildroot}%{_datadir}/applications \ + %{buildroot}%{_datadir}/applications/*.desktop + +%post +# >> post +if [ "$1" -ge 1 ]; then +systemctl-user daemon-reload || : +systemctl-user restart salmeta.service || : +fi +# << post + +%postun +# >> postun +if [ "$1" -eq 0 ]; then +systemctl-user stop salmeta.service || : +systemctl-user daemon-reload || : +fi +# << postun + +%files +%defattr(-,root,root,-) +%{_bindir} +%{_datadir}/%{name} +%{_datadir}/applications/%{name}.desktop +%{_datadir}/icons/hicolor/86x86/apps/%{name}.png +%{_libdir}/systemd/user/salmeta.service +# >> files +# << files -- cgit v1.2.3