libdc1394-vl.spec 3.5 KB

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