File gnome-subtitles.spec of Package gnome-subtitles
##
# spec file for package gnome-subtitles
#
# Copyright (c) Damien Carbery <daymobrew users.sourceforge.net>
# Henrique Malheiro <henrique.malheiro gmail.com>
# Pedro Castro <noup users.sourceforge.net>
#
#
#needforbuild gnome2-devel-packages gtk2-devel-packages
Name: gnome-subtitles
Summary: Video subtitling for the GNOME desktop
Version: 0.7.2
Release: 0
Group: Applications/Multimedia
License: GPL
URL: http://gnome-subtitles.sf.net/
Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Autoreqprov: yes
Prereq: /sbin/ldconfig
Prereq: /gconf2
%description
Gnome Subtitles is a subtitle editor for the GNOME desktop. It supports the most
common subtitle formats and allows for subtitle editing, conversion and
synchronization.
#*************** REQUIRES ******************
Requires: mono-core >= 1.0
Requires: mono-locale-extras
Requires: gtk2 >= 2.8
Requires: gtk-sharp2 >= 2.8
Requires: glade-sharp2 >= 2.8
Requires: gnome-sharp2 >= 2.8
Requires: gstreamer010 >= 0.10
Requires: gstreamer010-plugins-base >= 0.10
Requires: gconf2
#*************** BUILD REQUIRES ******************
BuildRequires: gcc-c++
BuildRequires: intltool libgnome-devel libgnomeui-devel perl-XML-Parser pkg-config scrollkeeper libtool
BuildRequires: gnome-doc-utils gnome-doc-utils-devel
BuildRequires: gconf2-devel gnome-common glib2-devel gconf2-rpm-macros glib2 glib gconf2
BuildRequires: update-desktop-files
BuildRequires: mono-devel >= 1.0
BuildRequires: gtk2-devel >= 2.8
BuildRequires: gtk-sharp2 >= 2.8
#BuildRequires: scrollkeeper >= 0.3.14
#Lynx needed to solve the problem:
#have choice for text-www-browser needed by docbook-utils: lynx elinks w3m
BuildRequires: lynx >= 2.0
BuildRequires: libglade2 libglade2-devel autoconf gettext-devel gettext
BuildRequires: automake >= 1.9
BuildRequires: gconf-sharp2 >= 2.8
BuildRequires: glade-sharp2 >= 2.8
BuildRequires: gnome-sharp2 >= 2.8
BuildRequires: gstreamer010-devel >= 0.10
BuildRequires: gstreamer010-plugins-base-devel >= 0.10
%prep
%setup -q
%build
whereis pkg-config
%configure --disable-scrollkeeper
make
%install
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
make DESTDIR=$RPM_BUILD_ROOT install
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
%clean
rm -rf $RPM_BUILD_ROOT
%post
export GC2=/opt/gnome/bin/gconftool-2
/sbin/ldconfig
export GCONF_CONFIG_SOURCE=`$GC2 --get-default-source`
$GC2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/gnome-subtitles.schemas > /dev/null
%postun
/sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/%{name}
%{_libdir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/man/man1/%{name}.1.gz
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/gnome/help/gnome-subtitles/
%{_datadir}/locale
%{_datadir}/omf/gnome-subtitles
%{_sysconfdir}/gconf/schemas/%{name}.schemas
%doc README NEWS AUTHORS COPYING CREDITS
%changelog
* Tue Jan 08 2008 - Pedro Castro <dev pedrocastro.org>
- Bump to 0.7.2. Fixed to build on SuSe and Fedora
* Mon Nov 05 2007 - Damien Carbery <daymobrew users.sourceforge.net>
- Bump to 0.7. Add gstreamer010/-devel and gstreamer010-plugins-base/-devel
dependencies.
* Sun Apr 22 2007 - Damien Carbery <daymobrew users.sourceforge.net>
- Bump to 0.4 and add man page to %files.
* Tue Mar 27 2007 - Damien Carbery <daymobrew users.sourceforge.net>
- Bump to 0.3 and add GConf code to %install and %post.
* Thu Dec 14 2006 - Henrique Malheiro <henrique.malheiro@gmail.com>
- Updated the application icon extension from svg to png.
- Updated the build requirements for fedora core 6 to include gtk-sharp2-devel
and gnome-sharp-devel.
- Added the dist tag for using the same spec file for both distributions, fedora
core 5 and fedora core 6 and removed the distribution tag for fedora. This
will be useful for Fedora Core Extras.
* Wed Dec 13 2006 - Pedro Castro <noup users.sourceforge.net>
- Updated the website URL.
- Updated for release 0.1.
* Tue Oct 31 2006 - Damien Carbery <daymobrew users.sourceforge.net>
- Merged with the SUSE Linux spec file.
* Tue Oct 31 2006 - Henrique Malheiro <henrique.malheiro gmail.com>
- Adapted spec file for the new 0.0.3 version of gnome-subtitles.
- Modified build architecture to noarch. Configure macro had to be replaced by
a custom configure.
- Corrected the path to the executable in the files section.
- Added new doc files to the files section.
* Sun Oct 22 2006 - Henrique Malheiro <henrique.malheiro gmail.com>
- Initial version of the spec file, written for the 0.0.2 version of gnome-subtitles.