summaryrefslogtreecommitdiff
path: root/rpm
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2014-09-04 01:55:14 +0200
committerJavier <dev.git@javispedro.com>2014-09-04 01:55:14 +0200
commit1adf7f1bcde493ccaacedb0d9778911ad69ff335 (patch)
tree2a1c4cffb09a4406a59df25853a726a7aa86fb28 /rpm
downloadsalmeta-1adf7f1bcde493ccaacedb0d9778911ad69ff335.tar.gz
salmeta-1adf7f1bcde493ccaacedb0d9778911ad69ff335.zip
Initial import
Diffstat (limited to 'rpm')
-rw-r--r--rpm/salmeta.changes.in15
-rw-r--r--rpm/salmeta.spec94
-rw-r--r--rpm/salmeta.yaml35
3 files changed, 144 insertions, 0 deletions
diff --git a/rpm/salmeta.changes.in b/rpm/salmeta.changes.in
new file mode 100644
index 0000000..9661218
--- /dev/null
+++ b/rpm/salmeta.changes.in
@@ -0,0 +1,15 @@
+# Rename this file as salmeta.changes to include changelog
+# entries in your RPM file.
+#
+# Add new changelog entries following the format below.
+# Add newest entries to the top of the list.
+# Separate entries from eachother with a blank line.
+
+# * date Author's Name <author's email> version-release
+# - Summary of changes
+
+* Sun Apr 13 2014 Jack Tar <jack.tar@example.com> 0.0.1-1
+- Scrubbed the deck
+- Hoisted the sails
+
+
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
diff --git a/rpm/salmeta.yaml b/rpm/salmeta.yaml
new file mode 100644
index 0000000..14e443f
--- /dev/null
+++ b/rpm/salmeta.yaml
@@ -0,0 +1,35 @@
+Name: salmeta
+Summary: Salmeta
+Version: 0.1
+Release: 1
+Group: Communications/Bluetooth
+URL: http://javispedro.com
+License: GPLv3
+Sources:
+- '%{name}-%{version}.tar.bz2'
+Description: |
+ Salmeta is a Metawatch manager program for Sailfish devices.
+Configure: none
+Builder: qtc5
+
+PkgConfigBR:
+ - sailfishapp >= 1.0.2
+ - Qt5Core
+ - Qt5Qml
+ - Qt5Quick
+ - Qt5DBus
+ - Qt5Bluetooth
+ - mlite5
+ - libiphb
+
+Requires:
+ - sailfishsilica-qt5 >= 0.10.9
+ - systemd
+ - systemd-user-session-targets
+
+Files:
+ - '%{_bindir}'
+ - '%{_datadir}/%{name}'
+ - '%{_datadir}/applications/%{name}.desktop'
+ - '%{_datadir}/icons/hicolor/86x86/apps/%{name}.png'
+ - '%{_libdir}/systemd/user/salmeta.service'