File istanbul.spec of Package istanbul
#
# spec file for package istanbul
#
# Copyright (c) 2011 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/
#
# norootforbuild
Name: istanbul
BuildRequires: fdupes gconf2-devel gstreamer-0_10-plugins-base-devel gstreamer-0_10-plugins-good gtk2-devel intltool perl-XML-Parser python-devel python-gnome-devel python-gnome-extras-devel python-gstreamer-0_10 python-xlib translation-update-upstream update-desktop-files
Version: 0.2.2
Release: 160
License: GPLv2+
Group: Productivity/Other
AutoReqProv: on
Requires: python-gnome python-gnome-extras 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
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
# Change sr@Latn to sr@latin
mv %{buildroot}%{_datadir}/locale/sr@Latn %{buildroot}%{_datadir}/locale/sr@latin
%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