LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File gaupol.spec of Package gaupol (Project openSUSE:Factory)

# spec file for package gaupol
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/

Name:           gaupol
Version:        0.19.2
Release:        0
Summary:        GTK Subtitle editor
License:        GPL-3.0+
Group:          Productivity/Multimedia/Video/Editors and Convertors
Url:            http://home.gna.org/gaupol/
Source0:        %{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE gaupol-0.17.1-desktop.patch prusnak@suse.cz -- add desktop category
Patch0:         %{name}-0.17.1-desktop.patch
BuildRequires:  fdupes
BuildRequires:  intltool
BuildRequires:  python-devel
%if 0%{?suse_version} <= 1210
BuildRequires:  python-enchant >= 1.4.0
BuildRequires:  python-pyenchant
BuildRequires:  python-gtk >= 2.16
BuildRequires:  python-xml
BuildRequires:  update-desktop-files
Requires:       python-aeidon
%if 0%{?suse_version} <= 1210
Requires:  python-enchant >= 1.4.0
Requires:  python-pyenchant
Requires:       python-gtk >= 2.16
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

Gaupol is an editor for text-based subtitle files. It supports multiple subtitle
file formats and provides means of correcting texts and timing subtitles to match
video. The user interface is designed with attention to batch processing of
multiple documents and convenience of translating.

Gaupol should run on all Unix-like (GNU/Linux, *BSD, etc.) operating systems and
on Windows. Technically it should be able to run on Mac as well, but that has
not been tested nor made convenient. Gaupol's user interface is based on the GTK+
toolkit and has been designed to best fit the GNOME desktop environment.

%package -n python-aeidon
Summary:        Package for reading, writing and manipulating text-based subtitle files
Group:          Development/Libraries/Python

%description -n python-aeidon
This is a Python package for reading, writing and manipulating
text-based subtitle files. It is separate from the gaupol package,
which provides a subtitle editor application with a GTK+ user

%setup -q

export CFLAGS="%{optflags}"
python setup.py build

python setup.py install \
      --prefix=%{_prefix} \
      --root=%{buildroot} \

rm -f %{buildroot}%{_datadir}/gaupol/extensions/side-pane/side-pane.pyc
rm -f %{buildroot}%{_datadir}/gaupol/extensions/custom-framerates/custom-framerates.pyc
rm -f %{buildroot}%{_datadir}/gaupol/extensions/bookmarks/bookmarks.pyc

%suse_update_desktop_file -i %{name}

%find_lang %{name}

%fdupes %{buildroot}

rm -rf %{buildroot}

%files -f %{name}.lang

%files -n python-aeidon
%defattr(-, root, root, -)