File istanbul.spec of Package istanbul

#
# spec file for package istanbul
#
# 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:           istanbul
BuildRequires:  fdupes
BuildRequires:  gconf2-devel
BuildRequires:  gstreamer-0_10-plugins-base-devel
BuildRequires:  gstreamer-0_10-plugins-good
BuildRequires:  gtk2-devel
BuildRequires:  intltool
BuildRequires:  python-devel
BuildRequires:  python-gnome-devel
BuildRequires:  python-gnome-extras-devel
BuildRequires:  python-gstreamer-0_10
BuildRequires:  python-xlib
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xdamage)
BuildRequires:  pkgconfig(xext)
BuildRequires:  pkgconfig(xfixes)
Version:        0.2.2
Release:        0
Requires:       python-gnome
Requires:       python-gnome-extras
Requires:       python-gstreamer-0_10
# For theora and videoscale:
Requires:       gstreamer-0_10-plugins-base
# For gconfaudiosrc:
Requires:       gstreamer-0_10-plugins-good
Summary:        Istanbul desktop session recorder
License:        GPL-2.0+
Group:          Productivity/Other
Url:            http://live.gnome.org/Istanbul
Source:         %{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       python-xlib
Recommends:     %{name}-lang
%gconf_schemas_prereq
%py_requires
%if %suse_version <= 1110
%define python_sitelib %{py_sitedir}
%endif

%description
Istanbul is a desktop session recorder for the Free Desktop. It records
your session into an Ogg Theora video file. To start the recording, you
click on its icon in the notification area. To stop you click its icon
again. It works on Gnome, KDE, XFCE and others.

%lang_package
%prep
%setup -q
translation-update-upstream

%build
%configure
make GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^[_]*gst_plugin_desc\$\$' -no-undefined" %{?jobs:-j%jobs}

%install
%suse_update_desktop_file -N "Istanbul" istanbul Utility Applet
%makeinstall
for file in $RPM_BUILD_ROOT%{python_sitelib}/istanbul/{,*,}/*.py ; do
    python -c "import py_compile; py_compile.compile('$file', None, '${file#$RPM_BUILD_ROOT}', True);"
done
%find_lang %{name} %{?no_lang_C}
%find_gconf_schemas
cat %{name}.schemas_list >%{name}.lst
rm $RPM_BUILD_ROOT%{_libdir}/*/*.*a
%fdupes $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%pre -f %{name}.schemas_pre

%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%if 0%{?suse_version} > 1130

%post
%desktop_database_post
%endif

%if 0%{?suse_version} > 1130

%postun
%desktop_database_postun
%endif

%files -f %{name}.lst
%defattr(-, root, root)
%doc AUTHORS COPYING LICENCE.GPL NEWS README
%{_bindir}/istanbul
%{_datadir}/applications/istanbul.desktop
%{_datadir}/pixmaps/istanbul.png
%{_libdir}/gstreamer-0.10/libistximagesrc.so
%doc %{_mandir}/man1/istanbul.1.gz
%{python_sitelib}/istanbul

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by