ucview-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. Summary: Image and video capture application using unicap toolkit
  2. Summary(ja): unicap ツールキットを使用したイメージ/ビデオキャプチャアプリケーション
  3. Name: ucview
  4. Version: 0.21
  5. Release: 1%{?_dist_release}
  6. License: GPLv2+
  7. Group: Applications/Multimedia
  8. URL: http://www.unicap-imaging.org/
  9. Source0: http://www.unicap-imaging.org/downloads/%{name}-%{version}.tar.gz
  10. Source1: %{name}.desktop
  11. BuildRequires: intltool, /usr/bin/perl, perl(XML::Parser), gettext
  12. BuildRequires: unicap-devel >= 0.2.2, gtk2-devel >= 2.8.0, libglade2-devel
  13. BuildRequires: glib2-devel, GConf2-devel, libXv-devel, desktop-file-utils
  14. BuildRequires: libtheora-devel, libvorbis-devel, dbus-glib-devel >= 0.73
  15. Requires: hicolor-icon-theme
  16. Requires(pre): GConf2
  17. Requires(post): GConf2, scrollkeeper
  18. Requires(preun): GConf2
  19. Requires(postun): scrollkeeper
  20. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  21. %description
  22. UCView is a video image capture application using the unicap toolkit.
  23. It provides a simple way to parametrise the video device, can capture
  24. still images from the video stream or record the stream as mpeg file.
  25. By using unicap, it can access many different video capture devices
  26. like webcams, video grabber boards, IEEE-1394 (FireWire) cameras and
  27. others.
  28. %prep
  29. %setup -q
  30. %build
  31. %configure --disable-schemas-install
  32. make %{?_smp_mflags}
  33. %install
  34. rm -rf $RPM_BUILD_ROOT
  35. export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  36. make DESTDIR=$RPM_BUILD_ROOT install
  37. unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
  38. # Install a working ucview.desktop file
  39. desktop-file-install --vendor "" --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE1}
  40. # Don't install header files for ucview
  41. rm -rf $RPM_BUILD_ROOT%{_includedir}
  42. rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/*.{a,la}
  43. %find_lang %{name}
  44. %pre
  45. if [ $1 -gt 1 ]; then
  46. export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source)
  47. gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null 2>&1 || :
  48. fi
  49. %post
  50. scrollkeeper-update -q -o %{_datadir}/omf/%{name} || :
  51. export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source)
  52. gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null 2>&1 || :
  53. touch --no-create %{_datadir}/icons/hicolor
  54. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  55. gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  56. fi
  57. %preun
  58. if [ $1 -eq 0 ]; then
  59. export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source)
  60. gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null 2>&1 || :
  61. fi
  62. %postun
  63. scrollkeeper-update -q || :
  64. touch --no-create %{_datadir}/icons/hicolor
  65. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  66. gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  67. fi
  68. %clean
  69. rm -rf $RPM_BUILD_ROOT
  70. %files -f %{name}.lang
  71. %defattr(-,root,root)
  72. %doc AUTHORS COPYING ChangeLog
  73. %{_sysconfdir}/gconf/schemas/%{name}.schemas
  74. %{_bindir}/%{name}
  75. %{_libdir}/%{name}/plugins/libhistogram.so
  76. %{_datadir}/%{name}
  77. %{_datadir}/applications/%{name}.desktop
  78. %{_datadir}/dbus-1/services/*.service
  79. %{_datadir}/icons/hicolor/*/apps/%{name}.png
  80. %changelog
  81. * Sun Jul 13 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.21-1
  82. - initial build for Vine Linux
  83. * Mon May 19 2008 Robert Scheck <robert@fedoraproject.org> 0.20.1-1
  84. - Upgrade to 0.20.1
  85. * Sun May 18 2008 Robert Scheck <robert@fedoraproject.org> 0.17-1
  86. - Upgrade to 0.17
  87. - Initial spec file for Fedora and Red Hat Enterprise Linux