summaryrefslogtreecommitdiff
path: root/rpm
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2014-06-29 17:32:54 +0200
committerJavier <dev.git@javispedro.com>2014-06-29 17:32:54 +0200
commit3b5fc081c8d22fac73db0fbe63eb2058595d43f6 (patch)
treedec9d497ee7db895fbb9b68ecdce70a095cf2003 /rpm
downloadbtgpsd-3b5fc081c8d22fac73db0fbe63eb2058595d43f6.tar.gz
btgpsd-3b5fc081c8d22fac73db0fbe63eb2058595d43f6.zip
initial import
Diffstat (limited to 'rpm')
-rw-r--r--rpm/btgpsd.spec82
-rw-r--r--rpm/btgpsd.yaml30
2 files changed, 112 insertions, 0 deletions
diff --git a/rpm/btgpsd.spec b/rpm/btgpsd.spec
new file mode 100644
index 0000000..b9ec983
--- /dev/null
+++ b/rpm/btgpsd.spec
@@ -0,0 +1,82 @@
+#
+# Do NOT Edit the Auto-generated Part!
+# Generated by: spectacle version 0.27
+#
+
+Name: btgpsd
+
+# >> 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: A Bluetooth GPS server daemon
+Version: 0.1
+Release: 1
+Group: Communications/Bluetooth
+License: GPL
+URL: http://example.org/
+Source0: %{name}-%{version}.tar.bz2
+Source100: btgpsd.yaml
+Requires: systemd
+Requires: systemd-user-session-targets
+BuildRequires: pkgconfig(sailfishapp) >= 1.0.2
+BuildRequires: pkgconfig(Qt5Core)
+BuildRequires: pkgconfig(Qt5Positioning)
+BuildRequires: pkgconfig(Qt5Bluetooth)
+
+%description
+btgpsd emulates a NMEA-compatible Bluetooth GPS from data obtained using
+the Qt Positioning framework
+
+
+%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
+
+%post
+# >> post
+if [ "$1" -ge 1 ]; then
+systemctl-user daemon-reload || :
+systemctl-user restart btgpsd.service || :
+fi
+# << post
+
+%postun
+# >> postun
+if [ "$1" -eq 0 ]; then
+systemctl-user stop btgpsd.service || :
+systemctl-user daemon-reload || :
+fi
+# << postun
+
+%files
+%defattr(-,root,root,-)
+%{_sbindir}/btgpsd
+%{_libdir}/systemd/user/btgpsd.service
+# >> files
+# << files
diff --git a/rpm/btgpsd.yaml b/rpm/btgpsd.yaml
new file mode 100644
index 0000000..d0a4772
--- /dev/null
+++ b/rpm/btgpsd.yaml
@@ -0,0 +1,30 @@
+Name: btgpsd
+Summary: A Bluetooth GPS server daemon
+Version: 0.1
+Release: 1
+Group: Communications/Bluetooth
+URL: http://example.org/
+License: GPL
+Sources:
+- '%{name}-%{version}.tar.bz2'
+Description: |
+ btgpsd emulates a NMEA-compatible Bluetooth GPS from data obtained using
+ the Qt Positioning framework
+Configure: none
+# The qtc5 builder inserts macros to allow QtCreator to have fine
+# control over qmake/make execution
+Builder: qtc5
+
+PkgConfigBR:
+ - sailfishapp >= 1.0.2
+ - Qt5Core
+ - Qt5Positioning
+ - Qt5Bluetooth
+
+Requires:
+ - systemd
+ - systemd-user-session-targets
+
+Files:
+ - '%{_sbindir}/btgpsd'
+ - '%{_libdir}/systemd/user/btgpsd.service'