File kino.spec of Package kino

#
# spec file for package kino
#
# Copyright (c) 2018 SUSE LINUX 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:           kino
Version:        1.3.4
Release:        0
Summary:        A non-linear DV editor for GNU/Linux
License:        GPL-2.0-only
Group:          Productivity/Multimedia/Other
URL:            http://www.kinodv.org/
Source0:        %{name}-%{version}.tar.xz
Patch0:         %{name}-libv4l-fix.patch
Patch1:         %{name}-no-buildtime.patch
Patch2:         %{name}-oss.patch
Patch3:         %{name}-asm.patch
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  gtk2-devel
BuildRequires:  intltool
BuildRequires:  libavc1394-devel
BuildRequires:  libdv-devel
BuildRequires:  libglade2-devel
BuildRequires:  libiec61883-devel
BuildRequires:  libquicktime-devel
BuildRequires:  libraw1394-devel
BuildRequires:  libsamplerate-devel
BuildRequires:  libv4l-devel
BuildRequires:  libxml2-devel
BuildRequires:  pkg-config
BuildRequires:  update-desktop-files
BuildRequires:  xorg-x11-devel

%description
Kino is a non-linear DV editor for GNU/Linux. It features excellent integration with IEEE 1394 for capture, VTR control, and recording back to the camera. It captures video to disk in AVI format in both type-1 DV and type-2 DV (separate audio stream) encodings.

%lang_package

%package devel
Summary:        Development files for %{name}
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}

%description devel
Those development headers are required if you plan on coding against %{name}.

%prep
%setup -q
%patch0
%patch1 -p1
%patch2
%patch3

%build
%{__sed} -i -e "s|MimeType=video/dv;application/smil|MimeType=video/dv;application/smil;|g" Kino.desktop
%configure --enable-quicktime --enable-local-ffmpeg
%make_build

%install
%if 0%{?suse_version} && 0%{?suse_version} >= 1500
%make_install
%else
%{__make} %{?_smp_mflags} install DESTDIR=%{buildroot}
%endif
%{__gzip} %{buildroot}%{_mandir}/man1/*.1
%{__rm} -rf %{buildroot}/%{_datadir}/locale/no
find %{buildroot} -name '*.la' -exec %{__rm} -f {} ';'
%find_lang %{name}
%fdupes %{buildroot}%{_datadir}
%suse_update_desktop_file Kino AudioVideo AudioVideoEditing

%files
%defattr(-,root,root,-)
%attr(755,root,root) %{_bindir}/%{name}
%attr(755,root,root) %{_bindir}/ffmpeg-%{name}
%{_bindir}/%{name}2raw
%{_libdir}/%{name}-gtk2/
%{_datadir}/applications/Kino.desktop
%{_datadir}/%{name}
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/pixmaps/%{name}.png
%dir %{_sysconfdir}/udev
%dir %{_sysconfdir}/udev/rules.d
%config %{_sysconfdir}/udev/rules.d/%{name}.rules
%{_mandir}/man1/%{name}.1%{?ext_man}
%{_mandir}/man1/%{name}2raw.1%{?ext_man}
%{_mandir}/man1/ffmpeg-%{name}.1%{?ext_man}
%doc ABOUT-NLS AUTHORS BUGS ChangeLog NEWS README* TODO
%license COPYING

%files lang -f %{name}.lang

%files devel
%defattr(-,root,root)
%{_includedir}/%{name}/

%changelog
openSUSE Build Service is sponsored by