summaryrefslogtreecommitdiff
path: root/packaging/hal-backend-device-common.spec
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/hal-backend-device-common.spec')
-rw-r--r--packaging/hal-backend-device-common.spec58
1 files changed, 58 insertions, 0 deletions
diff --git a/packaging/hal-backend-device-common.spec b/packaging/hal-backend-device-common.spec
new file mode 100644
index 0000000..6bcf9c8
--- /dev/null
+++ b/packaging/hal-backend-device-common.spec
@@ -0,0 +1,58 @@
+Name: hal-backend-device-common
+Summary: HAL backend device common
+Version: 1
+Release: 1
+Group: System/API
+License: Apache-2.0
+Source0: %{name}-%{version}.tar.gz
+Source1: %{name}.manifest
+BuildRequires: cmake
+BuildRequires: pkgconfig(vconf)
+BuildRequires: pkgconfig(dlog)
+BuildRequires: pkgconfig(glib-2.0)
+BuildRequires: pkgconfig(gio-2.0)
+BuildRequires: pkgconfig(gmock)
+BuildRequires: pkgconfig(capi-system-info)
+BuildRequires: pkgconfig(libsystemd)
+BuildRequires: pkgconfig(libusbgx)
+BuildRequires: pkgconfig(libsyscommon)
+
+%description
+Library for HAL backend device modules
+
+%package devel
+Summary: Library for HAL backend device modules (devel)
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Library for HAL backend device modules (devel)
+
+%prep
+%setup -q
+cp %{SOURCE1} .
+%build
+make %{?jobs:-j%jobs}
+
+%install
+%make_install
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%manifest %{name}.manifest
+%license LICENSE.Apache-2.0
+%{_libdir}/*.so.*
+%{_libdir}/libbattery-plugin.so
+%{_unitdir}/mtp-responder-dummy.socket
+%{_unitdir}/mtp-responder-dummy.service
+/etc/mtp-responder-dummy/strs
+/etc/mtp-responder-dummy/descs
+
+%files devel
+%manifest %{name}.manifest
+%license LICENSE.Apache-2.0
+%{_includedir}/device-node/*.h
+%{_includedir}/hw/*.h
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/*.pc