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