diff --git a/.cvsignore b/.cvsignore index e69de29..84bb5af 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +gnome-subtitles-0.8.tar.gz diff --git a/gnome-subtitles.spec b/gnome-subtitles.spec new file mode 100644 index 0000000..4c694bc --- /dev/null +++ b/gnome-subtitles.spec @@ -0,0 +1,123 @@ +Name: gnome-subtitles +Version: 0.8 +Release: 2%{?dist} +Summary: Subtitle editor for Gnome + +Group: Applications/Multimedia +License: GPLv2+ +URL: http://gnome-subtitles.sourceforge.net +Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: desktop-file-utils +BuildRequires: gettext +BuildRequires: gnome-doc-utils +BuildRequires: gnome-sharp-devel +BuildRequires: gstreamer-devel +BuildRequires: gstreamer-plugins-base-devel +BuildRequires: gtk2-devel +BuildRequires: gtk-sharp2-devel +BuildRequires: mono-devel +BuildRequires: perl(XML::Parser) +BuildRequires: scrollkeeper +BuildRequires: sublib-devel + +Requires(pre): GConf2 +Requires(post): GConf2 +Requires(preun): GConf2 + +Requires(post): scrollkeeper +Requires(postun): scrollkeeper + +ExcludeArch: ppc64 + +%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 +%setup -q + + +%build +%configure --disable-schemas-install \ + --disable-scrollkeeper +%{__make} + + +%install +%{__rm} -rf $RPM_BUILD_ROOT +%{__make} install DESTDIR=$RPM_BUILD_ROOT +desktop-file-install --vendor=fedora \ + --delete-original --dir $RPM_BUILD_ROOT%{_datadir}/applications \ + $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop +%find_lang %{name} + + +%clean +%{__rm} -rf $RPM_BUILD_ROOT + + +%pre +if [ "$1" -gt 1 ]; then + export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` + gconftool-2 --makefile-uninstall-rule \ + %{_sysconfdir}/gconf/schemas/gnome-subtitles.schemas >/dev/null || : + # If the schema file has ever been renamed:: + #gconftool-2 --makefile-uninstall-rule \ + # %{_sysconfdir}/gconf/schemas/[OLDNAME].schemas > /dev/null || : +fi + + +%post +export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` +gconftool-2 --makefile-install-rule \ + %{_sysconfdir}/gconf/schemas/gnome-subtitles.schemas > /dev/null || : +scrollkeeper-update -q -o %{_datadir}/omf/%{name} || : + + +%preun +if [ "$1" -eq 0 ]; then + export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` + gconftool-2 --makefile-uninstall-rule \ + %{_sysconfdir}/gconf/schemas/gnome-subtitles.schemas > /dev/null || : +fi + + +%postun +scrollkeeper-update -q || : + + +%files -f %{name}.lang +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog COPYING CREDITS NEWS README +%{_sysconfdir}/gconf/schemas/gnome-subtitles.schemas +%{_bindir}/gnome-subtitles +%{_libdir}/gnome-subtitles +%{_datadir}/applications/fedora-gnome-subtitles.desktop +%{_datadir}/gnome/help/gnome-subtitles +%{_mandir}/man1/gnome-subtitles.1* +%{_datadir}/omf/gnome-subtitles +%{_datadir}/pixmaps/gnome-subtitles.png + + + +%changelog +* Sun May 18 2008 Julian Sikorski - 0.8-2 +- Added sublib-devel to BuildRequires + +* Sat May 17 2008 Julian Sikorski - 0.8-1 +- Updated to 0.8 +- Dropped upstreamed patches +- Dropped SMP build, seems to cause problems +- Added missing %%doc +- Added wildcard to manpage install location + +* Fri Mar 28 2008 Julian Sikorski - 0.7.2-2 +- Added patch fixing empty debuginfo issue +- Added ExcludeArch: ppc64 +- Replaced make and rm invocations with macros + +* Tue Jan 15 2008 Julian Sikorski - 0.7.2-1 +- Initial RPM release diff --git a/sources b/sources index e69de29..c11c056 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +9590389ba91f9cfd94b6b36454dc2420 gnome-subtitles-0.8.tar.gz