diff --git a/.cvsignore b/.cvsignore index e69de29..8bd4786 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +libdc1394-2.0.1.tar.gz diff --git a/libdc1394.spec b/libdc1394.spec new file mode 100644 index 0000000..1acc630 --- /dev/null +++ b/libdc1394.spec @@ -0,0 +1,159 @@ +# $Id: libdc1394.spec,v 1.1 2008/01/19 23:30:06 timn Exp $ + +#define svn_snapshot .svn459 +#define real_version 2.0.0-rc8%{svn_snapshot} +%define real_version 2.0.1 +%define svn_build %{?svn_snapshot:1}%{!?svn_snapshot:0} + +Summary: 1394-based digital camera control library +Name: libdc1394 +Version: 2.0.1 +Release: 3%{?svn_snapshot}%{?dist} +License: LGPLv2+ +Group: System Environment/Libraries +URL: http://sourceforge.net/projects/libdc1394/ +Source: http://dl.sf.net/libdc1394/libdc1394-%{real_version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root + +BuildRequires: kernel-headers +BuildRequires: libraw1394-devel +BuildRequires: doxygen +%if %{svn_build} +BuildRequires: libtool +%endif + +%description +Libdc1394 is a library that is intended to provide a high level programming +interface for application developers who wish to control IEEE 1394 based +cameras that conform to the 1394-based Digital Camera Specification. + +%package devel +Summary: Header files and libraries for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release}, libraw1394-devel +Requires: pkgconfig + +%description devel +This package contains the header files and libraries +for %{name}. If you like to develop programs using %{name}, +you will need to install %{name}-devel. + +%package docs +Summary: Development documentation for %{name} +Group: Documentation + +%description docs +This package contains the development documentation for %{name}. + +%package tools +Summary: Tools for use with %{name} +Group: Applications/System +Requires: %{name} = %{version} + +%description tools +This package contains tools that are useful when working and +developing with %{name}. + +%prep +%setup -q -n libdc1394-%{real_version} + +%build +%if %{svn_build} +cp /usr/share/libtool/ltmain.sh . +aclocal +autoheader +autoconf +automake --add-missing +%endif +%configure --disable-static --enable-doxygen-html --enable-doxygen-dot %{!?_without_juju:--with-juju-dir=/usr/include} +sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool +sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool +make %{?_smp_mflags} +make doc + +%install +%{__rm} -rf %{buildroot} +make install DESTDIR=%{buildroot} INSTALL="%{__install} -p" +mkdir -p %{buildroot}%{_docdir}/%{name}-docs-%{version} +%{__install} -p -m 0644 doc/html/* %{buildroot}%{_docdir}/%{name}-docs-%{version} + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%clean +%{__rm} -rf %{buildroot} + +%files +%defattr(-, root, root, 0755) +%doc AUTHORS ChangeLog COPYING NEWS README +%{_libdir}/libdc1394*.so.* + +%files devel +%defattr(-, root, root, 0755) +%doc examples/*.h examples/*.c +%{_includedir}/dc1394/ +%{_libdir}/libdc1394*.so +%{_libdir}/pkgconfig/%{name}-2.pc +%exclude %{_libdir}/*.la + +%files docs +%defattr(-, root, root, 0755) +%{_docdir}/%{name}-docs-%{version} + +%files tools +%defattr(-, root, root, 0755) +%{_bindir}/dc1394_reset_bus +%{?_without_juju:%{_bindir}/dc1394_vloopback} + +%changelog +* Sat Jan 19 2008 Tim Niemueller - 2.0.1-3 +- Made autotools calls optional, only called if svn_snapshot is defined +- devel subpackage now requires pkgconfig + +* Wed Jan 16 2008 Tim Niemueller - 2.0.1-2 +- Add docs subpackage to contain development documentation +- Incoroprate multilib tricks +- BuildReqire automake, autoconf, libtool and doxygen +- Removed unused BuildRequires +- Use header file from kernel-headers instead of kernel-devel +- BuildRequire kernel-devel +- Added tools subpackage to contain the resetbus and vloopback tools + +* Wed Jan 16 2008 Tim Niemueller - 2.0.1-1 +- Update to 2.0.1, now patent-free! + +* Mon Jan 07 2008 Tim Niemueller - 2.0.0-1 +- Update to 2.0.0 + +* Thu Dec 16 2007 Tim Niemueller - 2.0.0-rc9 +- Update to 2.0.0-rc9 + +* Wed Nov 28 2007 Tim Niemueller - 2.0.0-rc7.3.svn459 +- Updated to release 2.0.0-rc7+svn459 (not yet released) + +* Fri Nov 02 2007 Tim Niemueller - 2.0.0-rc7.1.svn443 +- Updated to release 2.0.0-rc7+svn443 (not yet released) for juju support +- Added --without juju to disable juju support (necessary for FC6) + +* Fri Feb 02 2007 Tim Niemueller - 2.0.0-rc5.1 +- Updated to release 2.0.0-rc5. + +* Wed Aug 16 2006 Tim Niemueller - 2.0.0-rc3.1 +- Updated to release 2.0.0-rc3. + +* Mon May 08 2006 Dries Verachtert - 2.0.0-0.1.pre7 +- Updated to release 2.0.0-0.1.pre7. + +* Sat Apr 08 2006 Dries Verachtert - 2.0.0-0.1.pre5.2 +- Rebuild for Fedora Core 5. + +* Thu Dec 8 2005 Matthias Saou 2.0.0-0.1.pre5 +- Update to 2.0.0-pre5. +- Add missing libraw1394-devel dependency to the devel package. + +* Tue Aug 30 2005 Dries Verachtert - 2.0.0-0.pre4 +- Update to release 2.0.0-0.pre4. + +* Thu Aug 25 2005 Dries Verachtert - 1.1.0-1 +- Initial package. diff --git a/sources b/sources index e69de29..246fefb 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +6b5abeed347e7f6682f4fa9f06437a5f libdc1394-2.0.1.tar.gz