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