Name: gnome-subtitles
Version: 1.7
Release: %autorelease
Summary: Subtitle editor for Gnome
#Files under src/External/NCharDet are MPLv1.1 or GPLv2+ or LGPLv2+
License: GPLv2+ and (MPLv1.1 or GPLv2+ or LGPLv2+)
URL: http://gnome-subtitles.sourceforge.net/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Patch0: f7ebf2d19d1ffb2b5ec71dcb092bace7c33a4ca1.patch
BuildRequires: desktop-file-utils
BuildRequires: gnome-doc-utils
BuildRequires: gcc
BuildRequires: libappstream-glib
BuildRequires: pkgconfig(mono)
BuildRequires: pkgconfig(gstreamer-video-1.0)
BuildRequires: pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(gtk-sharp-3.0)
BuildRequires: intltool
BuildRequires: itstool
BuildRequires: make
BuildRequires: mono-devel
BuildRequires: mono-web
BuildRequires: perl(XML::Parser)
Requires: enchant
Requires: gstreamer1-plugins-good-gtk
Requires: hicolor-icon-theme
Requires: mono-locale-extras
# Mono only available on these:
ExclusiveArch: %mono_arches
%description
Gnome Subtitles is a subtitle editor for the GNOME desktop. It supports the
most common text-based subtitle formats and allows for subtitle editing,
translation and synchronization.
%prep
%autosetup -p1
%build
%configure
%make_build
%install
%make_install
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.gnome.GnomeSubtitles.desktop
appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_metainfodir}/*.appdata.xml
%find_lang org.gnome.GnomeSubtitles
%files -f org.gnome.GnomeSubtitles.lang
%doc AUTHORS ChangeLog COPYING NEWS README
%{_bindir}/%{name}
%{_libdir}/%{name}
%{_datadir}/applications/org.gnome.GnomeSubtitles.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.GnomeSubtitles.gschema.xml
%{_datadir}/help/*/%{name}
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_mandir}/man1/%{name}.1*
%{_metainfodir}/org.gnome.GnomeSubtitles.appdata.xml
%changelog
%autochangelog