# $Id: libdc1394.spec,v 1.4 2009/02/25 14:20:21 jkeating Exp $ #define svn_snapshot .svn459 #define real_version 2.0.0-rc8%{svn_snapshot} %define real_version 2.0.2 %define svn_build %{?svn_snapshot:1}%{!?svn_snapshot:0} Summary: 1394-based digital camera control library Name: libdc1394 Version: 2.0.2 Release: 2%{?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} %{!?_without_juju:rm -f %{buildroot}/%{_mandir}/man1/dc1394_vloopback.1} %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} %{_mandir}/man1/dc1394_reset_bus.1.gz %{?_without_juju:%{_mandir}/man1/dc1394_vloopback.1.gz} %changelog * Wed Feb 25 2009 Fedora Release Engineering - 2.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Mon May 12 2008 Tim Niemueller - 2.0.2-1 - Update to latest stable release 2.0.2 * 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.