libdc1394/libdc1394.spec

Fri, 11 Mar 2011 21:30:26 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 11 Mar 2011 21:30:26 +0100
changeset 0
4f133201e207
child 1
4667f24fe848
permissions
-rw-r--r--

Import package vendor original specs for necessary manipulations.

     1 # $Id$
     3 #define svn_snapshot .svn459  
     4 #define real_version 2.0.0-rc8%{svn_snapshot}
     5 #%define real_version 2.1.0
     6 %define svn_build %{?svn_snapshot:1}%{!?svn_snapshot:0}
     8 Summary: 1394-based digital camera control library
     9 Name: libdc1394
    10 Version: 2.1.2
    11 Release: 3%{?svn_snapshot}%{?dist}
    12 License: LGPLv2+
    13 Group: System Environment/Libraries
    14 URL: http://sourceforge.net/projects/libdc1394/
    15 Source: http://dl.sf.net/libdc1394/libdc1394-%{version}.tar.gz
    16 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
    17 ExcludeArch: s390 s390x
    19 BuildRequires: kernel-headers
    20 BuildRequires: libraw1394-devel libusb1-devel
    21 BuildRequires: doxygen
    22 BuildRequires: libX11-devel libXv-devel
    23 %if %{svn_build}
    24 BuildRequires: libtool
    25 %endif
    27 %description
    28 Libdc1394 is a library that is intended to provide a high level programming
    29 interface for application developers who wish to control IEEE 1394 based
    30 cameras that conform to the 1394-based Digital Camera Specification.
    32 %package devel
    33 Summary: Header files and libraries for %{name}
    34 Group: Development/Libraries
    35 Requires: %{name} = %{version}-%{release}, libraw1394-devel
    36 Requires: pkgconfig
    38 %description devel
    39 This package contains the header files and libraries
    40 for %{name}. If you like to develop programs using %{name},
    41 you will need to install %{name}-devel.
    43 %package docs
    44 Summary: Development documentation for %{name}
    45 Group: Documentation
    47 %description docs
    48 This package contains the development documentation for %{name}.
    50 %package tools
    51 Summary: Tools for use with %{name}
    52 Group: Applications/System
    53 Requires: %{name} = %{version}
    55 %description tools
    56 This package contains tools that are useful when working and
    57 developing with %{name}.
    59 %prep
    60 %setup -q -n libdc1394-%{version}
    62 %build
    63 %if %{svn_build}
    64 cp /usr/share/libtool/ltmain.sh .
    65 aclocal
    66 autoheader
    67 autoconf
    68 automake --add-missing
    69 %endif
    70 %configure --disable-static --enable-doxygen-html --enable-doxygen-dot
    71 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
    72 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
    73 make %{?_smp_mflags}
    74 make doc
    76 %install
    77 %{__rm} -rf %{buildroot}
    78 make install DESTDIR=%{buildroot} INSTALL="%{__install} -p"
    79 mkdir -p %{buildroot}%{_docdir}/%{name}-docs-%{version}
    80 %{__install} -p -m 0644 doc/html/* %{buildroot}%{_docdir}/%{name}-docs-%{version}
    81 for p in grab_color_image grab_gray_image grab_partial_image ladybug grab_partial_pvn; do
    82 	%{__install} -p -m 0644 examples/$p %{buildroot}%{_bindir}/dc1394_$p
    83 done
    84 %{__install} -p -m 0644 examples/dc1394_multiview %{buildroot}%{_bindir}/dc1394_multiview
    85 for f in grab_color_image grab_gray_image grab_partial_image; do
    86 	mv %{buildroot}%{_mandir}/man1/$f.1 %{buildroot}%{_mandir}/man1/dc1394_$f.1
    87 done
    89 %post -p /sbin/ldconfig
    91 %postun -p /sbin/ldconfig
    93 %clean
    94 %{__rm} -rf %{buildroot}
    96 %files
    97 %defattr(-, root, root, 0755)
    98 %doc AUTHORS ChangeLog COPYING NEWS README
    99 %{_libdir}/libdc1394*.so.*
   101 %files devel
   102 %defattr(-, root, root, 0755)
   103 %doc examples/*.h examples/*.c
   104 %{_includedir}/dc1394/
   105 %{_libdir}/libdc1394*.so
   106 %{_libdir}/pkgconfig/%{name}-2.pc
   107 %exclude %{_libdir}/*.la
   109 %files docs
   110 %defattr(-, root, root, 0755)
   111 %{_docdir}/%{name}-docs-%{version}
   113 %files tools
   114 %defattr(-, root, root, 0755)
   115 %{_bindir}/dc1394_*
   116 %{_mandir}/man1/dc1394_*.1.gz
   118 %changelog
   119 * Fri Oct 29 2010 Kozinov Ivan <kozinov@gmail.com> - 2.1.2-3
   120 - Build for 1.1
   122 * Thu Sep 10 2009 Karsten Hopp <karsten@redhat.com> 2.1.2-3
   123 - excludearch s390 s390x where we don't have libraw1394
   125 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.2-2
   126 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
   128 * Thu Jun 11 2009 Tim Niemueller <tim@niemueller.de> - 2.1.2-1
   129 - Update to latest stable release 2.1.2
   131 * Tue Mar 17 2009 Tim Niemueller <tim@niemueller.de> - 2.1.0-1
   132 - Update to latest stable release 2.1.0
   134 * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.2-2
   135 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
   137 * Mon May 12 2008 Tim Niemueller <tim@niemueller.de> - 2.0.2-1
   138 - Update to latest stable release 2.0.2
   140 * Sat Jan 19 2008 Tim Niemueller <tim@niemueller.de> - 2.0.1-3
   141 - Made autotools calls optional, only called if svn_snapshot is defined
   142 - devel subpackage now requires pkgconfig
   144 * Wed Jan 16 2008 Tim Niemueller <tim@niemueller.de> - 2.0.1-2
   145 - Add docs subpackage to contain development documentation
   146 - Incoroprate multilib tricks
   147 - BuildReqire automake, autoconf, libtool and doxygen
   148 - Removed unused BuildRequires
   149 - Use header file from kernel-headers instead of kernel-devel
   150 - BuildRequire kernel-devel
   151 - Added tools subpackage to contain the resetbus and vloopback tools
   153 * Wed Jan 16 2008 Tim Niemueller <tim@niemueller.de> - 2.0.1-1
   154 - Update to 2.0.1, now patent-free!
   156 * Mon Jan 07 2008 Tim Niemueller <tim@niemueller.de> - 2.0.0-1
   157 - Update to 2.0.0
   159 * Thu Dec 16 2007 Tim Niemueller <tim@niemueller.de> - 2.0.0-rc9
   160 - Update to 2.0.0-rc9
   162 * Wed Nov 28 2007 Tim Niemueller <tim@niemueller.de> - 2.0.0-rc7.3.svn459
   163 - Updated to release 2.0.0-rc7+svn459 (not yet released)
   165 * Fri Nov 02 2007 Tim Niemueller <tim@niemueller.de> - 2.0.0-rc7.1.svn443
   166 - Updated to release 2.0.0-rc7+svn443 (not yet released) for juju support
   167 - Added --without juju to disable juju support (necessary for FC6)
   169 * Fri Feb 02 2007 Tim Niemueller <tim@niemueller.de> - 2.0.0-rc5.1
   170 - Updated to release 2.0.0-rc5.
   172 * Wed Aug 16 2006 Tim Niemueller <tim@niemueller.de> - 2.0.0-rc3.1
   173 - Updated to release 2.0.0-rc3.
   175 * Mon May 08 2006 Dries Verachtert <dries@ulyssis.org> - 2.0.0-0.1.pre7
   176 - Updated to release 2.0.0-0.1.pre7.
   178 * Sat Apr 08 2006 Dries Verachtert <dries@ulyssis.org> - 2.0.0-0.1.pre5.2
   179 - Rebuild for Fedora Core 5.
   181 * Thu Dec  8 2005 Matthias Saou <http://freshrpms.net/> 2.0.0-0.1.pre5
   182 - Update to 2.0.0-pre5.
   183 - Add missing libraw1394-devel dependency to the devel package.
   185 * Tue Aug 30 2005 Dries Verachtert <dries@ulyssis.org> - 2.0.0-0.pre4
   186 - Update to release 2.0.0-0.pre4.
   188 * Thu Aug 25 2005 Dries Verachtert <dries@ulyssis.org> - 1.1.0-1
   189 - Initial package.

mercurial