michael@0: # $Id$ michael@0: michael@0: #define svn_snapshot .svn459 michael@0: #define real_version 2.0.0-rc8%{svn_snapshot} michael@0: #%define real_version 2.1.0 michael@0: %define svn_build %{?svn_snapshot:1}%{!?svn_snapshot:0} michael@0: michael@0: Summary: 1394-based digital camera control library michael@0: Name: libdc1394 michael@0: Version: 2.1.2 michael@0: Release: 3%{?svn_snapshot}%{?dist} michael@0: License: LGPLv2+ michael@0: Group: System Environment/Libraries michael@0: URL: http://sourceforge.net/projects/libdc1394/ michael@0: Source: http://dl.sf.net/libdc1394/libdc1394-%{version}.tar.gz michael@0: BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root michael@0: ExcludeArch: s390 s390x michael@0: michael@0: BuildRequires: kernel-headers michael@0: BuildRequires: libraw1394-devel libusb1-devel michael@0: BuildRequires: doxygen michael@0: BuildRequires: libX11-devel libXv-devel michael@0: %if %{svn_build} michael@0: BuildRequires: libtool michael@0: %endif michael@0: michael@0: %description michael@0: Libdc1394 is a library that is intended to provide a high level programming michael@0: interface for application developers who wish to control IEEE 1394 based michael@0: cameras that conform to the 1394-based Digital Camera Specification. michael@0: michael@0: %package devel michael@0: Summary: Header files and libraries for %{name} michael@0: Group: Development/Libraries michael@0: Requires: %{name} = %{version}-%{release}, libraw1394-devel michael@0: Requires: pkgconfig michael@0: michael@0: %description devel michael@0: This package contains the header files and libraries michael@0: for %{name}. If you like to develop programs using %{name}, michael@0: you will need to install %{name}-devel. michael@0: michael@0: %package docs michael@0: Summary: Development documentation for %{name} michael@0: Group: Documentation michael@0: michael@0: %description docs michael@0: This package contains the development documentation for %{name}. michael@0: michael@0: %package tools michael@0: Summary: Tools for use with %{name} michael@0: Group: Applications/System michael@0: Requires: %{name} = %{version} michael@0: michael@0: %description tools michael@0: This package contains tools that are useful when working and michael@0: developing with %{name}. michael@0: michael@0: %prep michael@0: %setup -q -n libdc1394-%{version} michael@0: michael@0: %build michael@0: %if %{svn_build} michael@0: cp /usr/share/libtool/ltmain.sh . michael@0: aclocal michael@0: autoheader michael@0: autoconf michael@0: automake --add-missing michael@0: %endif michael@0: %configure --disable-static --enable-doxygen-html --enable-doxygen-dot michael@0: sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool michael@0: sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool michael@0: make %{?_smp_mflags} michael@0: make doc michael@0: michael@0: %install michael@0: %{__rm} -rf %{buildroot} michael@0: make install DESTDIR=%{buildroot} INSTALL="%{__install} -p" michael@0: mkdir -p %{buildroot}%{_docdir}/%{name}-docs-%{version} michael@0: %{__install} -p -m 0644 doc/html/* %{buildroot}%{_docdir}/%{name}-docs-%{version} michael@0: for p in grab_color_image grab_gray_image grab_partial_image ladybug grab_partial_pvn; do michael@0: %{__install} -p -m 0644 examples/$p %{buildroot}%{_bindir}/dc1394_$p michael@0: done michael@0: %{__install} -p -m 0644 examples/dc1394_multiview %{buildroot}%{_bindir}/dc1394_multiview michael@0: for f in grab_color_image grab_gray_image grab_partial_image; do michael@0: mv %{buildroot}%{_mandir}/man1/$f.1 %{buildroot}%{_mandir}/man1/dc1394_$f.1 michael@0: done michael@0: michael@0: %post -p /sbin/ldconfig michael@0: michael@0: %postun -p /sbin/ldconfig michael@0: michael@0: %clean michael@0: %{__rm} -rf %{buildroot} michael@0: michael@0: %files michael@0: %defattr(-, root, root, 0755) michael@0: %doc AUTHORS ChangeLog COPYING NEWS README michael@0: %{_libdir}/libdc1394*.so.* michael@0: michael@0: %files devel michael@0: %defattr(-, root, root, 0755) michael@0: %doc examples/*.h examples/*.c michael@0: %{_includedir}/dc1394/ michael@0: %{_libdir}/libdc1394*.so michael@0: %{_libdir}/pkgconfig/%{name}-2.pc michael@0: %exclude %{_libdir}/*.la michael@0: michael@0: %files docs michael@0: %defattr(-, root, root, 0755) michael@0: %{_docdir}/%{name}-docs-%{version} michael@0: michael@0: %files tools michael@0: %defattr(-, root, root, 0755) michael@0: %{_bindir}/dc1394_* michael@0: %{_mandir}/man1/dc1394_*.1.gz michael@0: michael@0: %changelog michael@0: * Fri Oct 29 2010 Kozinov Ivan - 2.1.2-3 michael@0: - Build for 1.1 michael@0: michael@0: * Thu Sep 10 2009 Karsten Hopp 2.1.2-3 michael@0: - excludearch s390 s390x where we don't have libraw1394 michael@0: michael@0: * Fri Jul 24 2009 Fedora Release Engineering - 2.1.2-2 michael@0: - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild michael@0: michael@0: * Thu Jun 11 2009 Tim Niemueller - 2.1.2-1 michael@0: - Update to latest stable release 2.1.2 michael@0: michael@0: * Tue Mar 17 2009 Tim Niemueller - 2.1.0-1 michael@0: - Update to latest stable release 2.1.0 michael@0: michael@0: * Wed Feb 25 2009 Fedora Release Engineering - 2.0.2-2 michael@0: - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild michael@0: michael@0: * Mon May 12 2008 Tim Niemueller - 2.0.2-1 michael@0: - Update to latest stable release 2.0.2 michael@0: michael@0: * Sat Jan 19 2008 Tim Niemueller - 2.0.1-3 michael@0: - Made autotools calls optional, only called if svn_snapshot is defined michael@0: - devel subpackage now requires pkgconfig michael@0: michael@0: * Wed Jan 16 2008 Tim Niemueller - 2.0.1-2 michael@0: - Add docs subpackage to contain development documentation michael@0: - Incoroprate multilib tricks michael@0: - BuildReqire automake, autoconf, libtool and doxygen michael@0: - Removed unused BuildRequires michael@0: - Use header file from kernel-headers instead of kernel-devel michael@0: - BuildRequire kernel-devel michael@0: - Added tools subpackage to contain the resetbus and vloopback tools michael@0: michael@0: * Wed Jan 16 2008 Tim Niemueller - 2.0.1-1 michael@0: - Update to 2.0.1, now patent-free! michael@0: michael@0: * Mon Jan 07 2008 Tim Niemueller - 2.0.0-1 michael@0: - Update to 2.0.0 michael@0: michael@0: * Thu Dec 16 2007 Tim Niemueller - 2.0.0-rc9 michael@0: - Update to 2.0.0-rc9 michael@0: michael@0: * Wed Nov 28 2007 Tim Niemueller - 2.0.0-rc7.3.svn459 michael@0: - Updated to release 2.0.0-rc7+svn459 (not yet released) michael@0: michael@0: * Fri Nov 02 2007 Tim Niemueller - 2.0.0-rc7.1.svn443 michael@0: - Updated to release 2.0.0-rc7+svn443 (not yet released) for juju support michael@0: - Added --without juju to disable juju support (necessary for FC6) michael@0: michael@0: * Fri Feb 02 2007 Tim Niemueller - 2.0.0-rc5.1 michael@0: - Updated to release 2.0.0-rc5. michael@0: michael@0: * Wed Aug 16 2006 Tim Niemueller - 2.0.0-rc3.1 michael@0: - Updated to release 2.0.0-rc3. michael@0: michael@0: * Mon May 08 2006 Dries Verachtert - 2.0.0-0.1.pre7 michael@0: - Updated to release 2.0.0-0.1.pre7. michael@0: michael@0: * Sat Apr 08 2006 Dries Verachtert - 2.0.0-0.1.pre5.2 michael@0: - Rebuild for Fedora Core 5. michael@0: michael@0: * Thu Dec 8 2005 Matthias Saou 2.0.0-0.1.pre5 michael@0: - Update to 2.0.0-pre5. michael@0: - Add missing libraw1394-devel dependency to the devel package. michael@0: michael@0: * Tue Aug 30 2005 Dries Verachtert - 2.0.0-0.pre4 michael@0: - Update to release 2.0.0-0.pre4. michael@0: michael@0: * Thu Aug 25 2005 Dries Verachtert - 1.1.0-1 michael@0: - Initial package.