summaryrefslogtreecommitdiff
path: root/packaging/capi-system-media-key.spec
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/capi-system-media-key.spec')
-rw-r--r--packaging/capi-system-media-key.spec59
1 files changed, 59 insertions, 0 deletions
diff --git a/packaging/capi-system-media-key.spec b/packaging/capi-system-media-key.spec
new file mode 100644
index 0000000..b80cec8
--- /dev/null
+++ b/packaging/capi-system-media-key.spec
@@ -0,0 +1,59 @@
+Name: capi-system-media-key
+Summary: A System Information library in SLP C API
+Version: 0.1.0
+Release: 1
+Group: TO_BE/FILLED_IN
+License: TO BE FILLED IN
+Source0: %{name}-%{version}.tar.gz
+BuildRequires: cmake
+BuildRequires: pkgconfig(dlog)
+BuildRequires: pkgconfig(vconf)
+BuildRequires: pkgconfig(capi-base-common)
+BuildRequires: pkgconfig(aul)
+BuildRequires: pkgconfig(x11)
+BuildRequires: pkgconfig(utilX)
+
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+
+%description
+
+
+%package devel
+Summary: A Media Key library in SLP C API (Development)
+Group: TO_BE/FILLED_IN
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+
+
+
+%prep
+%setup -q
+
+
+%build
+MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
+cmake . -DCMAKE_INSTALL_PREFIX=/usr -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
+
+
+make %{?jobs:-j%jobs}
+
+%install
+rm -rf %{buildroot}
+%make_install
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%{_libdir}/libcapi-system-media-key.so.*
+
+%files devel
+%{_includedir}/system/media_key.h
+%{_libdir}/pkgconfig/*.pc
+%{_libdir}/libcapi-system-media-key.so
+
+