libdc1394/libdc1394.spec

changeset 0
4f133201e207
child 1
4667f24fe848
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/libdc1394/libdc1394.spec	Fri Mar 11 21:30:26 2011 +0100
     1.3 @@ -0,0 +1,189 @@
     1.4 +# $Id$
     1.5 +
     1.6 +#define svn_snapshot .svn459  
     1.7 +#define real_version 2.0.0-rc8%{svn_snapshot}
     1.8 +#%define real_version 2.1.0
     1.9 +%define svn_build %{?svn_snapshot:1}%{!?svn_snapshot:0}
    1.10 +
    1.11 +Summary: 1394-based digital camera control library
    1.12 +Name: libdc1394
    1.13 +Version: 2.1.2
    1.14 +Release: 3%{?svn_snapshot}%{?dist}
    1.15 +License: LGPLv2+
    1.16 +Group: System Environment/Libraries
    1.17 +URL: http://sourceforge.net/projects/libdc1394/
    1.18 +Source: http://dl.sf.net/libdc1394/libdc1394-%{version}.tar.gz
    1.19 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
    1.20 +ExcludeArch: s390 s390x
    1.21 +
    1.22 +BuildRequires: kernel-headers
    1.23 +BuildRequires: libraw1394-devel libusb1-devel
    1.24 +BuildRequires: doxygen
    1.25 +BuildRequires: libX11-devel libXv-devel
    1.26 +%if %{svn_build}
    1.27 +BuildRequires: libtool
    1.28 +%endif
    1.29 +
    1.30 +%description
    1.31 +Libdc1394 is a library that is intended to provide a high level programming
    1.32 +interface for application developers who wish to control IEEE 1394 based
    1.33 +cameras that conform to the 1394-based Digital Camera Specification.
    1.34 +
    1.35 +%package devel
    1.36 +Summary: Header files and libraries for %{name}
    1.37 +Group: Development/Libraries
    1.38 +Requires: %{name} = %{version}-%{release}, libraw1394-devel
    1.39 +Requires: pkgconfig
    1.40 +
    1.41 +%description devel
    1.42 +This package contains the header files and libraries
    1.43 +for %{name}. If you like to develop programs using %{name},
    1.44 +you will need to install %{name}-devel.
    1.45 +
    1.46 +%package docs
    1.47 +Summary: Development documentation for %{name}
    1.48 +Group: Documentation
    1.49 +
    1.50 +%description docs
    1.51 +This package contains the development documentation for %{name}.
    1.52 +
    1.53 +%package tools
    1.54 +Summary: Tools for use with %{name}
    1.55 +Group: Applications/System
    1.56 +Requires: %{name} = %{version}
    1.57 +
    1.58 +%description tools
    1.59 +This package contains tools that are useful when working and
    1.60 +developing with %{name}.
    1.61 +
    1.62 +%prep
    1.63 +%setup -q -n libdc1394-%{version}
    1.64 +
    1.65 +%build
    1.66 +%if %{svn_build}
    1.67 +cp /usr/share/libtool/ltmain.sh .
    1.68 +aclocal
    1.69 +autoheader
    1.70 +autoconf
    1.71 +automake --add-missing
    1.72 +%endif
    1.73 +%configure --disable-static --enable-doxygen-html --enable-doxygen-dot
    1.74 +sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
    1.75 +sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
    1.76 +make %{?_smp_mflags}
    1.77 +make doc
    1.78 +
    1.79 +%install
    1.80 +%{__rm} -rf %{buildroot}
    1.81 +make install DESTDIR=%{buildroot} INSTALL="%{__install} -p"
    1.82 +mkdir -p %{buildroot}%{_docdir}/%{name}-docs-%{version}
    1.83 +%{__install} -p -m 0644 doc/html/* %{buildroot}%{_docdir}/%{name}-docs-%{version}
    1.84 +for p in grab_color_image grab_gray_image grab_partial_image ladybug grab_partial_pvn; do
    1.85 +	%{__install} -p -m 0644 examples/$p %{buildroot}%{_bindir}/dc1394_$p
    1.86 +done
    1.87 +%{__install} -p -m 0644 examples/dc1394_multiview %{buildroot}%{_bindir}/dc1394_multiview
    1.88 +for f in grab_color_image grab_gray_image grab_partial_image; do
    1.89 +	mv %{buildroot}%{_mandir}/man1/$f.1 %{buildroot}%{_mandir}/man1/dc1394_$f.1
    1.90 +done
    1.91 +
    1.92 +%post -p /sbin/ldconfig
    1.93 +
    1.94 +%postun -p /sbin/ldconfig
    1.95 +
    1.96 +%clean
    1.97 +%{__rm} -rf %{buildroot}
    1.98 +
    1.99 +%files
   1.100 +%defattr(-, root, root, 0755)
   1.101 +%doc AUTHORS ChangeLog COPYING NEWS README
   1.102 +%{_libdir}/libdc1394*.so.*
   1.103 +
   1.104 +%files devel
   1.105 +%defattr(-, root, root, 0755)
   1.106 +%doc examples/*.h examples/*.c
   1.107 +%{_includedir}/dc1394/
   1.108 +%{_libdir}/libdc1394*.so
   1.109 +%{_libdir}/pkgconfig/%{name}-2.pc
   1.110 +%exclude %{_libdir}/*.la
   1.111 +
   1.112 +%files docs
   1.113 +%defattr(-, root, root, 0755)
   1.114 +%{_docdir}/%{name}-docs-%{version}
   1.115 +
   1.116 +%files tools
   1.117 +%defattr(-, root, root, 0755)
   1.118 +%{_bindir}/dc1394_*
   1.119 +%{_mandir}/man1/dc1394_*.1.gz
   1.120 +
   1.121 +%changelog
   1.122 +* Fri Oct 29 2010 Kozinov Ivan <kozinov@gmail.com> - 2.1.2-3
   1.123 +- Build for 1.1
   1.124 +
   1.125 +* Thu Sep 10 2009 Karsten Hopp <karsten@redhat.com> 2.1.2-3
   1.126 +- excludearch s390 s390x where we don't have libraw1394
   1.127 +
   1.128 +* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.2-2
   1.129 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
   1.130 +
   1.131 +* Thu Jun 11 2009 Tim Niemueller <tim@niemueller.de> - 2.1.2-1
   1.132 +- Update to latest stable release 2.1.2
   1.133 +
   1.134 +* Tue Mar 17 2009 Tim Niemueller <tim@niemueller.de> - 2.1.0-1
   1.135 +- Update to latest stable release 2.1.0
   1.136 +
   1.137 +* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.2-2
   1.138 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
   1.139 +
   1.140 +* Mon May 12 2008 Tim Niemueller <tim@niemueller.de> - 2.0.2-1
   1.141 +- Update to latest stable release 2.0.2
   1.142 +
   1.143 +* Sat Jan 19 2008 Tim Niemueller <tim@niemueller.de> - 2.0.1-3
   1.144 +- Made autotools calls optional, only called if svn_snapshot is defined
   1.145 +- devel subpackage now requires pkgconfig
   1.146 +
   1.147 +* Wed Jan 16 2008 Tim Niemueller <tim@niemueller.de> - 2.0.1-2
   1.148 +- Add docs subpackage to contain development documentation
   1.149 +- Incoroprate multilib tricks
   1.150 +- BuildReqire automake, autoconf, libtool and doxygen
   1.151 +- Removed unused BuildRequires
   1.152 +- Use header file from kernel-headers instead of kernel-devel
   1.153 +- BuildRequire kernel-devel
   1.154 +- Added tools subpackage to contain the resetbus and vloopback tools
   1.155 +
   1.156 +* Wed Jan 16 2008 Tim Niemueller <tim@niemueller.de> - 2.0.1-1
   1.157 +- Update to 2.0.1, now patent-free!
   1.158 +
   1.159 +* Mon Jan 07 2008 Tim Niemueller <tim@niemueller.de> - 2.0.0-1
   1.160 +- Update to 2.0.0
   1.161 +
   1.162 +* Thu Dec 16 2007 Tim Niemueller <tim@niemueller.de> - 2.0.0-rc9
   1.163 +- Update to 2.0.0-rc9
   1.164 +
   1.165 +* Wed Nov 28 2007 Tim Niemueller <tim@niemueller.de> - 2.0.0-rc7.3.svn459
   1.166 +- Updated to release 2.0.0-rc7+svn459 (not yet released)
   1.167 +
   1.168 +* Fri Nov 02 2007 Tim Niemueller <tim@niemueller.de> - 2.0.0-rc7.1.svn443
   1.169 +- Updated to release 2.0.0-rc7+svn443 (not yet released) for juju support
   1.170 +- Added --without juju to disable juju support (necessary for FC6)
   1.171 +
   1.172 +* Fri Feb 02 2007 Tim Niemueller <tim@niemueller.de> - 2.0.0-rc5.1
   1.173 +- Updated to release 2.0.0-rc5.
   1.174 +
   1.175 +* Wed Aug 16 2006 Tim Niemueller <tim@niemueller.de> - 2.0.0-rc3.1
   1.176 +- Updated to release 2.0.0-rc3.
   1.177 +
   1.178 +* Mon May 08 2006 Dries Verachtert <dries@ulyssis.org> - 2.0.0-0.1.pre7
   1.179 +- Updated to release 2.0.0-0.1.pre7.
   1.180 +
   1.181 +* Sat Apr 08 2006 Dries Verachtert <dries@ulyssis.org> - 2.0.0-0.1.pre5.2
   1.182 +- Rebuild for Fedora Core 5.
   1.183 +
   1.184 +* Thu Dec  8 2005 Matthias Saou <http://freshrpms.net/> 2.0.0-0.1.pre5
   1.185 +- Update to 2.0.0-pre5.
   1.186 +- Add missing libraw1394-devel dependency to the devel package.
   1.187 +
   1.188 +* Tue Aug 30 2005 Dries Verachtert <dries@ulyssis.org> - 2.0.0-0.pre4
   1.189 +- Update to release 2.0.0-0.pre4.
   1.190 +
   1.191 +* Thu Aug 25 2005 Dries Verachtert <dries@ulyssis.org> - 1.1.0-1
   1.192 +- Initial package.

mercurial