/alps/ipecamera

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/ipecamera
277 by Suren A. Chilingaryan
Build RPM
1
Summary: UFO Camera plugin for pcitool
2
Name: ${PACKAGE_NAME}
3
Version: ${CPACK_PACKAGE_VERSION}
4
Release: csa
5
License: GPL-3.0
6
Group: Development/Libraries
7
Source: ${CPACK_SOURCE_PACKAGE_FILE_NAME}.tar.bz2
8
BuildRoot: %{_tmppath}/%{name}-%{version}-root
9
URL: http://darksoft.org
10
Prefix: %{_prefix}
11
Docdir: %{_docdir}
278 by Suren A. Chilingaryan
Fix requirements in spec file
12
Requires: pcilib >= 0.2.7 libufodecode >= 0.3.0 ipecamera-scripts
13
BuildRequires: uthash
14
BuildRequires: libpcilib-devel libufodecode-devel
277 by Suren A. Chilingaryan
Build RPM
15
BuildRequires: pkg-config libtool cmake
16
Vendor: Institute for Data Processing and Electronics, KIT
17
Packager: Suren A. Chilingaryan <csa@suren.me>
18
19
%description
20
This package provides an UFO Camera event engine for the pcilib platform.
21
22
%package devel
23
Summary: UFO Camera plugin for pcitool
24
Group: Development/Libraries 
25
Requires: ${PACKAGE_NAME} = %{version}
26
Requires: libpcilib-devel
27
28
%description devel
29
Development files provide access to some non-standard features of the event engine.
30
31
%prep
32
%setup -q
33
34
%build
35
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} .
36
make
37
38
%install
39
rm -rf $RPM_BUILD_ROOT
40
make install DESTDIR=$RPM_BUILD_ROOT
41
42
%clean
43
rm -rf $RPM_BUILD_ROOT
44
45
%files 
46
%defattr(-, root, root)
47
${PCILIB_PLUGIN_DIR}/lib${PACKAGE_NAME}.so
48
49
%files -n ${PACKAGE_NAME}-devel
50
%defattr(-, root, root)  
51
%{_includedir}/*
52
%{_libdir}/pkgconfig/*.pc
53
54
%changelog
55
* Fri Mar  4 2016 Suren A. Chilingaryan <csa@suren.me> - ${CPACK_PACKAGE_VERSION}
56
- Added spec file to the sources