summaryrefslogtreecommitdiffstats
path: root/ipecamera.spec.in
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2016-03-04 16:47:51 +0100
committerSuren A. Chilingaryan <csa@suren.me>2016-03-04 16:47:51 +0100
commitf5a79305da56ca0af45d9c0e07c30d8db7446bb7 (patch)
tree3d8ce02b43554027ae3cd57f004886ac5db768c1 /ipecamera.spec.in
parent616853e5f2ca5f7306c667bb2bb443f9ad09d853 (diff)
downloadipecamera-f5a79305da56ca0af45d9c0e07c30d8db7446bb7.tar.gz
ipecamera-f5a79305da56ca0af45d9c0e07c30d8db7446bb7.tar.bz2
ipecamera-f5a79305da56ca0af45d9c0e07c30d8db7446bb7.tar.xz
ipecamera-f5a79305da56ca0af45d9c0e07c30d8db7446bb7.zip
Build RPM
Diffstat (limited to 'ipecamera.spec.in')
-rw-r--r--ipecamera.spec.in55
1 files changed, 55 insertions, 0 deletions
diff --git a/ipecamera.spec.in b/ipecamera.spec.in
new file mode 100644
index 0000000..b0cf2a1
--- /dev/null
+++ b/ipecamera.spec.in
@@ -0,0 +1,55 @@
+Summary: UFO Camera plugin for pcitool
+Name: ${PACKAGE_NAME}
+Version: ${CPACK_PACKAGE_VERSION}
+Release: csa
+License: GPL-3.0
+Group: Development/Libraries
+Source: ${CPACK_SOURCE_PACKAGE_FILE_NAME}.tar.bz2
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
+URL: http://darksoft.org
+Prefix: %{_prefix}
+Docdir: %{_docdir}
+Requires: libpcilib ipecamera-scripts
+BuildRequires: libpcilib-devel
+BuildRequires: pkg-config libtool cmake
+Vendor: Institute for Data Processing and Electronics, KIT
+Packager: Suren A. Chilingaryan <csa@suren.me>
+
+%description
+This package provides an UFO Camera event engine for the pcilib platform.
+
+%package devel
+Summary: UFO Camera plugin for pcitool
+Group: Development/Libraries
+Requires: ${PACKAGE_NAME} = %{version}
+Requires: libpcilib-devel
+
+%description devel
+Development files provide access to some non-standard features of the event engine.
+
+%prep
+%setup -q
+
+%build
+cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DLIB_INSTALL_DIR=%{_libdir} -DBIN_INSTALL_DIR=%{_bindir} -DDATA_INSTALL_DIR=%{_datadir} -DINCLUDE_INSTALL_DIR=%{_includedir} .
+make
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-, root, root)
+${PCILIB_PLUGIN_DIR}/lib${PACKAGE_NAME}.so
+
+%files -n ${PACKAGE_NAME}-devel
+%defattr(-, root, root)
+%{_includedir}/*
+%{_libdir}/pkgconfig/*.pc
+
+%changelog
+* Fri Mar 4 2016 Suren A. Chilingaryan <csa@suren.me> - ${CPACK_PACKAGE_VERSION}
+- Added spec file to the sources