[521] | 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 | |
---|
| 22 | %description |
---|
| 23 | UCView is a video image capture application using the unicap toolkit. |
---|
| 24 | It provides a simple way to parametrise the video device, can capture |
---|
| 25 | still images from the video stream or record the stream as mpeg file. |
---|
| 26 | By using unicap, it can access many different video capture devices |
---|
| 27 | like webcams, video grabber boards, IEEE-1394 (FireWire) cameras and |
---|
| 28 | others. |
---|
| 29 | |
---|
| 30 | %prep |
---|
| 31 | %setup -q |
---|
| 32 | |
---|
| 33 | %build |
---|
| 34 | %configure --disable-schemas-install |
---|
| 35 | make %{?_smp_mflags} |
---|
| 36 | |
---|
| 37 | %install |
---|
| 38 | rm -rf $RPM_BUILD_ROOT |
---|
| 39 | export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
---|
| 40 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
| 41 | unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
---|
| 42 | |
---|
| 43 | # Install a working ucview.desktop file |
---|
| 44 | desktop-file-install --vendor "" --dir $RPM_BUILD_ROOT%{_datadir}/applications %{SOURCE1} |
---|
| 45 | |
---|
| 46 | # Don't install header files for ucview |
---|
| 47 | rm -rf $RPM_BUILD_ROOT%{_includedir} |
---|
| 48 | |
---|
| 49 | rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/*.{a,la} |
---|
| 50 | |
---|
| 51 | |
---|
| 52 | %find_lang %{name} |
---|
| 53 | |
---|
| 54 | %pre |
---|
| 55 | if [ $1 -gt 1 ]; then |
---|
| 56 | export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source) |
---|
| 57 | gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null 2>&1 || : |
---|
| 58 | fi |
---|
| 59 | |
---|
| 60 | %post |
---|
| 61 | scrollkeeper-update -q -o %{_datadir}/omf/%{name} || : |
---|
| 62 | export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source) |
---|
| 63 | gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null 2>&1 || : |
---|
| 64 | |
---|
| 65 | touch --no-create %{_datadir}/icons/hicolor |
---|
| 66 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
| 67 | gtk-update-icon-cache -q %{_datadir}/icons/hicolor |
---|
| 68 | fi |
---|
| 69 | |
---|
| 70 | %preun |
---|
| 71 | if [ $1 -eq 0 ]; then |
---|
| 72 | export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source) |
---|
| 73 | gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null 2>&1 || : |
---|
| 74 | fi |
---|
| 75 | |
---|
| 76 | %postun |
---|
| 77 | scrollkeeper-update -q || : |
---|
| 78 | |
---|
| 79 | touch --no-create %{_datadir}/icons/hicolor |
---|
| 80 | if [ -x /usr/bin/gtk-update-icon-cache ]; then |
---|
| 81 | gtk-update-icon-cache -q %{_datadir}/icons/hicolor |
---|
| 82 | fi |
---|
| 83 | |
---|
| 84 | %clean |
---|
| 85 | rm -rf $RPM_BUILD_ROOT |
---|
| 86 | |
---|
| 87 | %files -f %{name}.lang |
---|
| 88 | %defattr(-,root,root) |
---|
| 89 | %doc AUTHORS COPYING ChangeLog |
---|
| 90 | %{_sysconfdir}/gconf/schemas/%{name}.schemas |
---|
| 91 | %{_bindir}/%{name} |
---|
| 92 | %{_libdir}/%{name}/plugins/libhistogram.so |
---|
| 93 | %{_datadir}/%{name} |
---|
| 94 | %{_datadir}/applications/%{name}.desktop |
---|
| 95 | %{_datadir}/dbus-1/services/*.service |
---|
| 96 | %{_datadir}/icons/hicolor/*/apps/%{name}.png |
---|
| 97 | |
---|
| 98 | %changelog |
---|
| 99 | * Sun Jul 13 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.21-1 |
---|
| 100 | - initial build for Vine Linux |
---|
| 101 | |
---|
| 102 | * Mon May 19 2008 Robert Scheck <robert@fedoraproject.org> 0.20.1-1 |
---|
| 103 | - Upgrade to 0.20.1 |
---|
| 104 | |
---|
| 105 | * Sun May 18 2008 Robert Scheck <robert@fedoraproject.org> 0.17-1 |
---|
| 106 | - Upgrade to 0.17 |
---|
| 107 | - Initial spec file for Fedora and Red Hat Enterprise Linux |
---|