libdc1394-vl.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. Summary: 1394-Based Digital Camera Control Library
  2. Summary(ja): IEEE1394 ベースのデジタルカメラ制御ライブラリ
  3. Name: libdc1394
  4. Version: 2.2.0
  5. Release: 1%{?_dist_release}
  6. Group: System Environment/Libraries
  7. License: LGPLv2+
  8. URL: http://damien.douxchamps.net/ieee1394/libdc1394/
  9. Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
  10. #Patch0: libdc1394-1.2.1-obsolete_time.patch
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: kernel-headers
  13. BuildRequires: libraw1394-devel
  14. BuildRequires: libusb1-devel
  15. BuildRequires: SDL-devel
  16. BuildRequires: mesa-libGLU-devel
  17. BuildRequires: libXv-devel
  18. BuildRequires: libSM-devel
  19. BuildRequires: doxygen
  20. %description
  21. libdc1394 provides functionality to control any camera that conforms to the
  22. 1394-Based Digital Camera Specification.
  23. %description -l ja
  24. libdc1394 は IEEE1394 ベースのデジタルカメラ規格に沿ったカメラをコントロール
  25. する機能を提供しています。
  26. %package devel
  27. Summary: Development libs for libdc1394
  28. Summary(ja): libdc1394 用開発ライブラリ
  29. Group: Development/Libraries
  30. Requires: %{name} = %{version}-%{release}
  31. %description devel
  32. Development libraries required to build applications using libdc1394.
  33. %package docs
  34. Summary: Development documentation for %{name}
  35. Summary(ja): libdc1394 用開発ドキュメント
  36. Group: Documentation
  37. %description docs
  38. This package contains the development documentation for %{name}.
  39. %package tools
  40. Summary: Tools for use with %{name}
  41. Summary(ja): libdc1394で使うツール
  42. Group: Applications/System
  43. Requires: %{name} = %{version}
  44. %description tools
  45. This package contains tools that are useful when working and
  46. developing with %{name}.
  47. %prep
  48. %setup -q
  49. %build
  50. %configure --disable-static --enable-doxygen-html --enable-doxygen-dot %{!?_without_juju:--with-juju-dir=/usr/include}
  51. sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  52. sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  53. make %{?_smp_mflags}
  54. make doc
  55. %install
  56. %{__rm} -rf %{buildroot}
  57. make install DESTDIR=%{buildroot} INSTALL="%{__install} -p"
  58. %{!?_without_juju:rm -f %{buildroot}/%{_mandir}/man1/dc1394_vloopback.1}
  59. ## remove unuse files
  60. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  61. %clean
  62. rm -rf $RPM_BUILD_ROOT
  63. %post -p /sbin/ldconfig
  64. %postun -p /sbin/ldconfig
  65. %files
  66. %defattr(-, root, root, 0755)
  67. %doc AUTHORS ChangeLog COPYING NEWS README
  68. %{_libdir}/libdc1394*.so.*
  69. %files devel
  70. %defattr(-, root, root, 0755)
  71. %doc examples/*.h examples/*.c
  72. %{_includedir}/dc1394/
  73. %{_libdir}/libdc1394*.so
  74. %{_libdir}/pkgconfig/%{name}-2.pc
  75. %files docs
  76. %defattr(-, root, root, 0755)
  77. %doc doc/html/*
  78. %files tools
  79. %defattr(-, root, root, 0755)
  80. %{_bindir}/dc1394_reset_bus
  81. %{?_without_juju:%{_bindir}/dc1394_vloopback}
  82. %{_mandir}/man1/*.gz
  83. %{?_without_juju:%{_mandir}/man1/dc1394_vloopback.1.gz}
  84. %changelog
  85. * Sat Oct 20 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.0-1
  86. - new upstream release
  87. - add BuildRequires: libusb1-devel, SDL-devel, mesa-libGLU-devel, libXv-devel, libSM-devel
  88. * Sat Sep 25 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.1.2-2
  89. - rebuilt with new toolchain and rpm-4.8.1
  90. * Sat Jun 13 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.1.2-1vl5
  91. - new upstream release
  92. -splited -docs, -tools file
  93. - dropt Patch0
  94. * Sun Sep 21 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.1-2vl5
  95. - added BuildRequires: libraw1394-devel
  96. * Sat Sep 20 2008 Shu KONNO <owa@bg.wakwak.com> 1.2.1-1vl5
  97. - applied new versioning policy, spec in utf-8
  98. - removed *.la
  99. * Tue Aug 14 2007 NAKAMURA Kenta <kenta@vinelinux.org> 1.2.1-0vl2
  100. - added obsolete_time.patch: CLK_TCK updated to CLOCKS_PER_SEC
  101. * Fri Jun 10 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.1-0vl1
  102. - new upstream release
  103. - s/Copyright/License/
  104. * Fri Jun 10 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.0-0vl1
  105. - new upstream release
  106. * Sat Mar 20 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.3-0vl1
  107. - initial build