3712e08
Name:           gnome-subtitles
ee2fca5
Version:        1.0
dda64b4
Release:        3%{?dist}
3712e08
Summary:        Subtitle editor for Gnome
3712e08
3712e08
Group:          Applications/Multimedia
cd22c52
#Files under src/External/NCharDet are MPLv1.1 or GPLv2+ or LGPLv2+
cd22c52
License:        GPLv2+ and (MPLv1.1 or GPLv2+ or LGPLv2+)
3712e08
URL:            http://gnome-subtitles.sourceforge.net
3712e08
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
dda64b4
Patch0:         0001-Fixed-RedHat-bug-638384-CVE-2010-3357-CVE-2010-3357-.patch
3712e08
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
3712e08
3712e08
BuildRequires:  desktop-file-utils
3712e08
BuildRequires:  gnome-doc-utils
3712e08
BuildRequires:  gnome-sharp-devel
3712e08
BuildRequires:  gstreamer-devel
3712e08
BuildRequires:  gstreamer-plugins-base-devel
3712e08
BuildRequires:  gtk2-devel
3712e08
BuildRequires:  gtk-sharp2-devel
cd22c52
BuildRequires:  intltool
3712e08
BuildRequires:  mono-devel
3712e08
BuildRequires:  perl(XML::Parser)
3712e08
75e9032
Requires:       mono-locale-extras
75e9032
cd22c52
Requires(pre):  GConf2
3712e08
Requires(post): GConf2
3712e08
Requires(preun): GConf2
3712e08
6ca4a74
# No mono available here.
cd22c52
ExcludeArch:    sparc64
cd22c52
cd22c52
#sublib is now merged with gnome-subtitles
cd22c52
Obsoletes:      sublib < 0.9-7
cd22c52
Obsoletes:      sublib-devel < 0.9-7
3712e08
3712e08
%description
3712e08
Gnome Subtitles is a subtitle editor for the GNOME desktop. It supports the
3712e08
most common text-based subtitle formats and allows for subtitle editing,
3712e08
translation and synchronization.
3712e08
3712e08
%prep
3712e08
%setup -q
dda64b4
%patch0 -p1 -b .cve20103357
3712e08
3712e08
3712e08
%build
3712e08
%configure --disable-schemas-install \
3712e08
           --disable-scrollkeeper
cd22c52
%{__make} %{?_smp_mflags}
3712e08
3712e08
3712e08
%install
3712e08
%{__rm} -rf $RPM_BUILD_ROOT
3712e08
%{__make} install DESTDIR=$RPM_BUILD_ROOT
3712e08
desktop-file-install --vendor=fedora \
3712e08
       --delete-original --dir $RPM_BUILD_ROOT%{_datadir}/applications \
3712e08
       $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
3712e08
%find_lang %{name}
3712e08
3712e08
3712e08
%clean
3712e08
%{__rm} -rf $RPM_BUILD_ROOT
3712e08
3712e08
3712e08
%pre
dda64b4
%gconf_schema_prepare %{name}
3712e08
3712e08
3712e08
%post
dda64b4
%gconf_schema_upgrade %{name}
cd22c52
update-desktop-database &> /dev/null || :
3712e08
3712e08
3712e08
%preun
dda64b4
%gconf_schema_remove %{name}
3712e08
3712e08
3712e08
%postun
cd22c52
update-desktop-database &> /dev/null || :
3712e08
3712e08
3712e08
%files -f %{name}.lang
3712e08
%defattr(-,root,root,-)
cd22c52
%doc AUTHORS ChangeLog COPYING NEWS README
3712e08
%{_sysconfdir}/gconf/schemas/gnome-subtitles.schemas
3712e08
%{_bindir}/gnome-subtitles
3712e08
%{_libdir}/gnome-subtitles
3712e08
%{_datadir}/applications/fedora-gnome-subtitles.desktop
3712e08
%{_datadir}/gnome/help/gnome-subtitles
3712e08
%{_mandir}/man1/gnome-subtitles.1*
3712e08
%{_datadir}/omf/gnome-subtitles
3712e08
%{_datadir}/pixmaps/gnome-subtitles.png
3712e08
3712e08
3712e08
3712e08
%changelog
dda64b4
* Sun Oct 03 2010 Julian Sikorski <belegdol@fedoraproject.org> - 1.0-3
dda64b4
- Switched to upstreams approach for the security fix
dda64b4
- Use the new macros properly
dda64b4
4c2dc89
* Thu Sep 30 2010 Julian Sikorski <belegdol@fedoraproject.org> - 1.0-2
4c2dc89
- Fixed security vulnrerability CVE-2010-3357
4c2dc89
- Updated scriptlets to the latest spec
4c2dc89
- Dropped scrollkeeper BR
4c2dc89
ee2fca5
* Sat Feb 20 2010 Julian Sikorski <belegdol[at]gmail[dot]com> - 1.0-1
ee2fca5
- Updated to 1.0
ee2fca5
75e9032
* Thu Jan 14 2010 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.1-3
75e9032
- Actually do what the changelog says
75e9032
0911979
* Thu Jan 14 2010 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.1-2
0911979
- Added mono-locale-extras to Requires (fixes gnome bug #606905)
0911979
cd22c52
* Sun Nov 01 2009 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.9.1-1
cd22c52
- Updated to 0.9.1
cd22c52
- Dropped the SMP build patch
cd22c52
- Added desktop-database scriptlets
cd22c52
- Re-enabled parallel make
cd22c52
- Updated the License tag
cd22c52
- Added intltool to BuildRequires, removed explicit gettext
cd22c52
6ca4a74
* Mon Oct 26 2009 Dennis Gilmore <dennis@ausil.us> - 0.8-10
6ca4a74
- ExcludeArch sparc64
6ca4a74
d5b3f96
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8-9
d5b3f96
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
d5b3f96
9a19cc8
* Fri May 29 2009 Xavier lamien <laxathom@fedoraproject.org> - 0.8-8
9a19cc8
- Build arch ppc64.
9a19cc8
529ce51
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8-7
529ce51
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
529ce51
5100fc2
* Mon Oct 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.8-6
5100fc2
- don't use smp_mflags
5100fc2
a76f568
* Mon Oct 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.8-5
a76f568
- rebuild against new gnome-sharp
a76f568
0548ee5
* Sat Jul  5 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.8-4
0548ee5
- Another rebuild
0548ee5
- Patched SMP build failure
0548ee5
e8208fc
* Mon May 26 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.8-3
e8208fc
- Rebuilt to fix broken deps
e8208fc
3712e08
* Sun May 18 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.8-2
3712e08
- Added sublib-devel to BuildRequires
3712e08
3712e08
* Sat May 17 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.8-1
3712e08
- Updated to 0.8
3712e08
- Dropped upstreamed patches
3712e08
- Dropped SMP build, seems to cause problems
3712e08
- Added missing %%doc
3712e08
- Added wildcard to manpage install location
3712e08
3712e08
* Fri Mar 28 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.7.2-2
3712e08
- Added patch fixing empty debuginfo issue
3712e08
- Added ExcludeArch: ppc64
3712e08
- Replaced make and rm invocations with macros
3712e08
3712e08
* Tue Jan 15 2008 Julian Sikorski <belegdol[at]gmail[dot]com> - 0.7.2-1
3712e08
- Initial RPM release