3712e08
Name:           gnome-subtitles
4e6520e
Version:        1.3
0199264
Release:        9%{?dist}
3712e08
Summary:        Subtitle editor for Gnome
3712e08
cd22c52
#Files under src/External/NCharDet are MPLv1.1 or GPLv2+ or LGPLv2+
cd22c52
License:        GPLv2+ and (MPLv1.1 or GPLv2+ or LGPLv2+)
Richard Hughes 4da5e3e
URL:            http://gnome-subtitles.sourceforge.net/
3712e08
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
0199264
Patch0:         %{name}-%{version}-mcs.patch
3712e08
3712e08
BuildRequires:  desktop-file-utils
3712e08
BuildRequires:  gnome-doc-utils
3712e08
BuildRequires:  gnome-sharp-devel
4e6520e
BuildRequires:  gstreamer1-devel
4e6520e
BuildRequires:  gstreamer1-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
a3f9bc0
# Mono only available on these:
9f31815
ExclusiveArch: %mono_arches
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
0199264
%patch0 -p1 -b .mcs
3712e08
3712e08
3712e08
%build
3712e08
%configure --disable-schemas-install \
3712e08
           --disable-scrollkeeper
9f31815
make
3712e08
3712e08
3712e08
%install
9f31815
make install DESTDIR=$RPM_BUILD_ROOT
4e6520e
%if %{with desktop_vendor_tag}
3712e08
desktop-file-install --vendor=fedora \
3712e08
       --delete-original --dir $RPM_BUILD_ROOT%{_datadir}/applications \
3712e08
       $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
4e6520e
%else
4e6520e
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
4e6520e
%endif
Richard Hughes 2c4445d
Richard Hughes 2c4445d
# Register as an application to be visible in the software center
Richard Hughes 2c4445d
#
Richard Hughes 2c4445d
# NOTE: It would be *awesome* if this file was maintained by the upstream
Richard Hughes 2c4445d
# project, translated and installed into the right place during `make install`.
Richard Hughes 2c4445d
#
Richard Hughes 2c4445d
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
Richard Hughes 2c4445d
#
Richard Hughes 2c4445d
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
Richard Hughes 2c4445d
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <
Richard Hughes 2c4445d
Richard Hughes 2c4445d
Richard Hughes 2c4445d
Richard Hughes 2c4445d
BugReportURL: https://bugzilla.gnome.org/show_bug.cgi?id=730805
Richard Hughes 2c4445d
SentUpstream: 2014-09-17
Richard Hughes 2c4445d
-->
Richard Hughes 2c4445d
<application>
Richard Hughes 2c4445d
  <id type="desktop">gnome-subtitles.desktop</id>
Richard Hughes 2c4445d
  <metadata_license>CC0-1.0</metadata_license>
Richard Hughes 2c4445d
  <summary>Create subtitles for videos</summary>
Richard Hughes 2c4445d
  <description>
Richard Hughes 2c4445d
    

Richard Hughes 2c4445d
      GNOME Subtitles is an application for creating and editing subtitles
Richard Hughes 2c4445d
      for videos.
Richard Hughes 2c4445d
      It allows you to load up a video file, and create a subtitle
Richard Hughes 2c4445d
      file to go with that video, and tweak the timings of the subtitles. 
Richard Hughes 2c4445d
      It supports a wide range of subtitle and video formats.  
Richard Hughes 2c4445d
    

Richard Hughes 2c4445d
  </description>
Richard Hughes 2c4445d
  <url type="homepage">http://gnome-subtitles.sourceforge.net/</url>
Richard Hughes 2c4445d
  <screenshots>
Richard Hughes 2c4445d
    <screenshot type="default">http://gnome-subtitles.sourceforge.net/files/screenshots/Screenshot-GnomeSubtitles-VideoTimesTranslation.png</screenshot>
Richard Hughes 2c4445d
  </screenshots>
Richard Hughes 2c4445d
</application>
Richard Hughes 2c4445d
EOF
Richard Hughes 2c4445d
3712e08
%find_lang %{name}
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
cd22c52
%doc AUTHORS ChangeLog COPYING NEWS README
4e6520e
%{_sysconfdir}/gconf/schemas/%{name}.schemas
4e6520e
%{_bindir}/%{name}
4e6520e
%{_libdir}/%{name}
4e6520e
%if %{with desktop_vendor_tag}
4e6520e
%{_datadir}/applications/fedora-%{name}.desktop
4e6520e
%else
Richard Hughes 2c4445d
%{_datadir}/appdata/%{name}.appdata.xml
4e6520e
%{_datadir}/applications/%{name}.desktop
4e6520e
%endif
4e6520e
%{_datadir}/gnome/help/%{name}
4e6520e
%{_mandir}/man1/%{name}.1*
4e6520e
%{_datadir}/omf/%{name}
4e6520e
%{_datadir}/pixmaps/%{name}.svg
3712e08
3712e08
3712e08
3712e08
%changelog
0199264
* Mon Feb 15 2016 Julian Sikorski <belegdol@fedoraproject.org> - 1.3-9
0199264
- Patched to use mcs as dmcs is no longer available
0199264
748be55
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-8
748be55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
748be55
dfde57a
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-7
dfde57a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
dfde57a
9f31815
* Mon May 18 2015 Peter Robinson <pbrobinson@fedoraproject.org> 1.3-6
9f31815
- Rebuild (mono4)
9f31815
Richard Hughes 2c4445d
* Thu Mar 26 2015 Richard Hughes <rhughes@redhat.com> - 1.3-5
Richard Hughes 2c4445d
- Add an AppData file for the software center
Richard Hughes 2c4445d
8da3fa3
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-4
8da3fa3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
8da3fa3
2eba988
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-3
2eba988
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2eba988
ac02152
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-2
ac02152
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
ac02152
4e6520e
* Tue Apr 02 2013 Julian Sikorski <belegdol@fedoraproject.org> - 1.3-1
4e6520e
- Updated to 1.3
4e6520e
- Updated BRs to gstreamer-1.0
4e6520e
- De-vendorised the .desktop file
4e6520e
42a7c4c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-4
42a7c4c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
42a7c4c
74cd2de
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-3
74cd2de
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
74cd2de
86987dd
* Thu Jan 05 2012 Julian Sikorski <belegdol@fedoraproject.org> - 1.2-2
86987dd
- Rebuilt for gcc-4.7
86987dd
- Dropped obsolete Group, Buildroot, %%clean and %%defattr
86987dd
36618cc
* Tue Aug 23 2011 Julian Sikorski <belegdol@fedoraproject.org> - 1.2-1
36618cc
- Updated to 1.2
36618cc
- Updated the URL
36618cc
a3f9bc0
* Fri Feb 25 2011 Dan HorĂ¡k <dan[at]danny.cz> - 1.1-3
a3f9bc0
- updated the supported arch list
a3f9bc0
5043a0a
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-2
5043a0a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
5043a0a
efa95c2
* Sun Oct 31 2010 Julian Sikorski <belegdol@fedoraproject.org> - 1.1-1
efa95c2
- Updated to 1.1
efa95c2
- Dropped security fix, it is now included in the source
efa95c2
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