ipecamera.spec.in 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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}
  12. Requires: pcilib >= 0.2.7 libufodecode >= 0.3.0 ipecamera-scripts
  13. BuildRequires: uthash
  14. BuildRequires: libpcilib-devel libufodecode-devel
  15. BuildRequires: pkg-config libtool cmake
  16. Vendor: Institute for Data Processing and Electronics, KIT
  17. Packager: Suren A. Chilingaryan <csa@suren.me>
  18. %description
  19. This package provides an UFO Camera event engine for the pcilib platform.
  20. %package devel
  21. Summary: UFO Camera plugin for pcitool
  22. Group: Development/Libraries
  23. Requires: ${PACKAGE_NAME} = %{version}
  24. Requires: libpcilib-devel
  25. %description devel
  26. Development files provide access to some non-standard features of the event engine.
  27. %prep
  28. %setup -q
  29. %build
  30. 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} .
  31. make
  32. %install
  33. rm -rf $RPM_BUILD_ROOT
  34. make install DESTDIR=$RPM_BUILD_ROOT
  35. %clean
  36. rm -rf $RPM_BUILD_ROOT
  37. %files
  38. %defattr(-, root, root)
  39. ${PCILIB_PLUGIN_DIR}/lib${PACKAGE_NAME}.so
  40. %files -n ${PACKAGE_NAME}-devel
  41. %defattr(-, root, root)
  42. %{_includedir}/*
  43. %{_libdir}/pkgconfig/*.pc
  44. %changelog
  45. * Fri Mar 4 2016 Suren A. Chilingaryan <csa@suren.me> - ${CPACK_PACKAGE_VERSION}
  46. - Added spec file to the sources