#
# TODO: BRs
+# separate package for libgstreamer_playbin.so
#
%include /usr/lib/rpm/macros.mono
Summary: A subtitle editor for the GNOME desktop
Summary(pl.UTF-8): Edytor napisów dla środowiska GNOME
Name: gnome-subtitles
-Version: 0.4
+Version: 0.8
Release: 0.1
License: GPL v2
Group: X11/Applications
Source0: http://dl.sourceforge.net/gnome-subtitles/%{name}-%{version}.tar.gz
-# Source0-md5: 5ae670478a278e83daf900a73dd906c9
+# Source0-md5: 9590389ba91f9cfd94b6b36454dc2420
Patch0: %{name}-sh_wrapper.patch
URL: http://gnome-subtitles.sourceforge.net/
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: dotnet-gnome-sharp-devel >= 2.16
BuildRequires: dotnet-gtk-sharp2-devel >= 2.10
+BuildRequires: gstreamer-devel >= 0.10
+BuildRequires: gstreamer-plugins-base-devel >= 0.10
+BuildRequires: mono-csharp
BuildRequires: rpmbuild(monoautodeps)
+BuildRequires: sublib-devel >= 0.9
+Requires: enchant
Requires: dotnet-gnome-sharp >= 2.16
Requires: dotnet-gtk-sharp2 >= 2.10
+Requires: gtkspell
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%prep
%setup -q
-%patch0 -p1
+#%patch0 -p1
%build
-%{__aclocal}
-%{__autoconf}
-%{__automake}
+#{__aclocal}
+#{__autoconf}
+#{__automake}
%configure
%{__make}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+%{find_lang} %{name} --with-gnome --with-omf
+
%clean
rm -rf $RPM_BUILD_ROOT
-%files
+%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc AUTHORS CREDITS ChangeLog NEWS README TODO
+%doc AUTHORS CREDITS ChangeLog NEWS README
%config(noreplace) %verify(not md5 mtime size) /etc/gconf/schemas/%{name}.schemas
%attr(755,root,root) %{_bindir}/*
%dir %{_libdir}/%{name}
%attr(755,root,root) %{_libdir}/%{name}/*.dll*
%attr(755,root,root) %{_libdir}/%{name}/*.exe
+%attr(755,root,root) %{_libdir}/%{name}/libgstreamer_playbin.so
+%{_libdir}/%{name}/*.exe.config
%{_mandir}/man1/*.1*
%{_desktopdir}/*.desktop
%{_pixmapsdir}/*.png