/alps/ipecamera

To get this branch, use:
bzr branch http://suren.me/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
279 by Suren A. Chilingaryan
Use GNUInstallDirs
35
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=%{_libdir} -DCMAKE_INSTALL_BINDIR=%{_bindir} -DCMAKE_INSTALL_DATADIR=%{_datadir} -DCMAKE_INSTALL_DATAROOTDIR=%{_datadir} -DCMAKE_INSTALL_INCLUDEDIR=%{_includedir} .
36
277 by Suren A. Chilingaryan
Build RPM
37
make
38
39
%install
40
rm -rf $RPM_BUILD_ROOT
41
make install DESTDIR=$RPM_BUILD_ROOT
42
43
%clean
44
rm -rf $RPM_BUILD_ROOT
45
46
%files 
47
%defattr(-, root, root)
48
${PCILIB_PLUGIN_DIR}/lib${PACKAGE_NAME}.so
49
50
%files -n ${PACKAGE_NAME}-devel
51
%defattr(-, root, root)  
52
%{_includedir}/*
53
%{_libdir}/pkgconfig/*.pc
54
55
%changelog
56
* Fri Mar  4 2016 Suren A. Chilingaryan <csa@suren.me> - ${CPACK_PACKAGE_VERSION}
57
- Added spec file to the sources