File xvidcap.spec of Package xvidcap

#
# spec file for package 
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:           xvidcap
Version:        1.1.7
Release:        1
License:        GPL-2.0
Summary:        A screen capture enabling you to capture videos of X-Window desktop
Url:            http://xvidcap.sourceforge.net
Group:          Applications/Multimedia
Source:         http://downloads.sourceforge.net/project/xvidcap/xvidcap/%{version}/xvidcap-%{version}.tar.gz

Patch0:         xvidcap-1.1.7-mga-external_ffmpeg.patch
Patch1:         xvidcap-1.1.7-nawk.patch
Patch2:         xvidcap-1.1.7-shmstr.patch

BuildRequires:  libXmu-devel
BuildRequires:  gtk2-devel
BuildRequires:  libglade2-devel
BuildRequires:  libogg-devel
BuildRequires:  dbus-1-glib-devel
BuildRequires:  intltool
BuildRequires:  scrollkeeper
BuildRequires:  update-desktop-files
BuildRequires:  fdupes

Requires:   scrollkeeper
Requires:   libavcodec

BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Xvidcap is a screen capture enabling you to capture videos of your X-Window desktop for illustration or documentation purposes.
It is intended to be a standards-based alternative to tools like Lotus ScreenCam.

%package doc
Summary:  Documentation of xvidcap 
License:  GPL-2.0
Group:    Documentation/Other
BuildArch:  noarch

%description doc
This package contains xvidcap documentation which is not part of man pages.

%package lang
Summary:  Lanuages package of xvidcap 
License:  GPL-2.0
Group:    Documentation/Other
BuildArch:  noarch

%description lang
This package contains xvidcap Languages

%prep
%setup -q
%patch0 -p0
%patch1 -p0
%patch2 -p0

%build
%configure --without-forced-embedded-ffmpeg --enable-libmp3lame --enable-libtheora LIBS="-lX11 -lz -lXext"
make

%install
%make_install

#%find_lang %{name}

%suse_update_desktop_file %{name} Recorder DesktopUtility

%suse_update_desktop_file %{name} Recorder DesktopUtility

%fdupes -s %{buildroot}/%{_datadir}

%post
%desktop_database_post
%icon_theme_cache_post

%postun
%desktop_database_postun
%icon_theme_cache_postun

%files
%defattr(-,root,root)

%{_bindir}/%{name}
%{_bindir}/xvidcap-dbus-client
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/dbus-1/services/net.jarre_de_the.Xvidcap.service

%files doc
%defattr(-,root,root)
%doc %{_datadir}/doc/xvidcap 
%{_mandir}/man1/%{name}.1.gz
%{_mandir}/man1/%{name}-dbus-client.1.gz
# These directories have to be added to pass obs building
%dir %{_datadir}/gnome
%dir %{_datadir}/gnome/help
%dir %{_datadir}/omf
%dir %{_datadir}/omf/xvidcap
%dir %{_datadir}/gnome/help/xvidcap
%{_datadir}/omf/xvidcap/*
%{_datadir}/gnome/help/xvidcap/*

#%files lang -f %{name}.lang
%files lang
%defattr(-,root,root)
%{_datadir}/locale
%lang(de) %{_mandir}/de/man1
%lang(es) %{_mandir}/es/man1
%lang(it) %{_mandir}/it/man1


%changelog
openSUSE Build Service is sponsored by