commit 2a16328fc47513caba77d308c77a01fdaac52108d785750b963db2c94ccc555c Author: Dominique Leuenberger Date: Sun May 6 15:40:07 2012 +0000 Accepting request 116300 from home:badshah400 An audio recorder for GNOME 2/3 which can record sound from a lot of input sources. OBS-URL: https://build.opensuse.org/request/show/116300 OBS-URL: https://build.opensuse.org/package/show/GNOME:Apps/audio-recorder?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/audio-recorder-0.9.1.tar.gz b/audio-recorder-0.9.1.tar.gz new file mode 100644 index 0000000..7fa292b --- /dev/null +++ b/audio-recorder-0.9.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5dc7672d42ff6e5d16e3c96f099739a68f1ff9e7afefd95589a3b4502f80ad17 +size 5189223 diff --git a/audio-recorder-correct-desktop-menu.patch b/audio-recorder-correct-desktop-menu.patch new file mode 100644 index 0000000..92d2b64 --- /dev/null +++ b/audio-recorder-correct-desktop-menu.patch @@ -0,0 +1,50 @@ +Index: audio-recorder/data/audio-recorder.desktop +=================================================================== +--- audio-recorder.orig/data/audio-recorder.desktop ++++ audio-recorder/data/audio-recorder.desktop +@@ -1,6 +1,6 @@ + [Desktop Entry] + GenericName=Audio Recorder +-Categories=GNOME;AudioVideo;Recorder ++Categories=GNOME;AudioVideo;Recorder; + Exec=audio-recorder + Icon=audio-recorder + StartupNotify=true +@@ -49,37 +49,3 @@ Comment[sr]=Audio Recorder + Comment[tr]=Ses Kaydedici + Comment[uk]=Легкий в застосуванні інструмент для аудіо запису + Comment[vi]=Trình ghi âm +- +-# Right-click menu items for Unity's launcher icon. +-# Ref: https://wiki.ubuntu.com/Unity/LauncherAPI +-X-Ayatana-Desktop-Shortcuts=StartRecording;StopRecording;PauseRecording;ShowWindow +- +-[StartRecording Shortcut Group] +-Name=Start +-Name[fi_FI]=Aloita +-Name[nb_NO]=Start +-Exec=audio-recorder --command=start +-TargetEnvironment=Unity +- +-[StopRecording Shortcut Group] +-Name=Stop +-Name[fi_FI]=Lopeta +-Name[nb_NO]=Stopp +-Exec=audio-recorder --command=stop +-TargetEnvironment=Unity +- +-[PauseRecording Shortcut Group] +-Name=Pause +-Name[fi_FI]=Keskeytä väliaikaisesti +-Name[nb_NO]=Pause +-Exec=audio-recorder --command=pause +-TargetEnvironment=Unity +- +-[ShowWindow Shortcut Group] +-Name=Show window +-Name[fi_FI]=Näytä ikkuna +-Name[nb_NO]=Vis applikasjon +-Exec=audio-recorder --command=show +-TargetEnvironment=Unity +- +- diff --git a/audio-recorder-gio-gdesktopappinfo-header.patch b/audio-recorder-gio-gdesktopappinfo-header.patch new file mode 100644 index 0000000..46bed83 --- /dev/null +++ b/audio-recorder-gio-gdesktopappinfo-header.patch @@ -0,0 +1,13 @@ +Index: audio-recorder/configure.in +=================================================================== +--- audio-recorder.orig/configure.in ++++ audio-recorder/configure.in +@@ -56,7 +56,7 @@ PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLI + AC_SUBST(GLIB_CFLAGS) + AC_SUBST(GLIB_LIBS) + +-PKG_CHECK_MODULES(GIO, gio-2.0 >= $GLIB_REQUIRED) ++PKG_CHECK_MODULES(GIO, gio-unix-2.0 >= $GLIB_REQUIRED) + AC_SUBST(GIO_CFLAGS) + AC_SUBST(GIO_LIBS) + diff --git a/audio-recorder.changes b/audio-recorder.changes new file mode 100644 index 0000000..edf9209 --- /dev/null +++ b/audio-recorder.changes @@ -0,0 +1,17 @@ +------------------------------------------------------------------- +Sun Apr 29 07:45:37 UTC 2012 - badshah400@gmail.com + +- Update to version 0.9.1: + + Improved MPRIS2 interface. VLC media player should now work + with ar + + See ChangeLog file in /usr/share/doc/packages/audio-recorder + for complete list of changes since version 0.5.1. +- Rebase audio-recorder-correct-desktop-menu.patch +- Added audio-recorder-gio-gdesktopappinfo-header.patch to make + sure pkgconfig finds the right header; fixes build failures on + openSUSE 12.1. + +- Initial build (version 0.5): + + Add audio-recorder-correct-desktop-menu.patch to remove + unsupported tags from the desktop menus. + diff --git a/audio-recorder.spec b/audio-recorder.spec new file mode 100644 index 0000000..9b8d5c1 --- /dev/null +++ b/audio-recorder.spec @@ -0,0 +1,117 @@ +# +# spec file for package audio-recorder +# +# Copyright (c) 2010 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: audio-recorder +Version: 0.9.1 +Release: 1 +License: GPL-3.0 +Summary: An audio recorder application for the GNOME 2/3 +Url: https://launchpad.net/audio-recorder +Group: Productivity/Multimedia/Sound/Utilities +Source: https://launchpad.net/audio-recorder/trunk/version%{version}/+download/%{name}-%{version}.tar.gz +# PATCH-FIX-OPENSUSE audio-recorder-correct-desktop-menu.patch badshah400@gmail.com -- Fixes the .desktop file by removing unity related tags from it. +Patch0: audio-recorder-correct-desktop-menu.patch +# PATCH-FIX-UPSTREAM audio-recorder-gio-gdesktopappinfo-header.patch badshah400@gmail.com -- Use gio-unix-2.0 pkgconfig module so that the gdesktopappinfo.h header is correctly located. +Patch1: audio-recorder-gio-gdesktopappinfo-header.patch +BuildRequires: autoconf +BuildRequires: gettext +BuildRequires: intltool +BuildRequires: libtool +BuildRequires: hicolor-icon-theme +BuildRequires: pkgconfig(dbus-1) +BuildRequires: pkgconfig(dbus-glib-1) +BuildRequires: pkgconfig(gconf-2.0) +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(gstreamer-0.10) +BuildRequires: pkgconfig(gstreamer-base-0.10) +BuildRequires: pkgconfig(gstreamer-interfaces-0.10) +BuildRequires: pkgconfig(gtk+-2.0) +BuildRequires: pkgconfig(libgnome-media-profiles-3.0) +BuildRequires: pkgconfig(libpulse) +BuildRequires: fdupes +Requires: gstreamer-0_10-plugins-bad +Requires: gstreamer-0_10-plugins-base +Requires: gstreamer-0_10-plugins-good +Requires: gstreamer-0_10-plugins-ugly +Recommends: %{name}-lang +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +Audio-recorder allows you to record your favourite music or audio to +a file. It can record audio from your system's soundcard, +microphones, browsers, webcams & more. Put simply: if it plays out of +your loudspeakers you can record it. + +It has an advanced timer that can: +* Start, stop or pause recording at a given clock time. +* Start, stop or pause after a time period. +* Stop when the recorded file size exceeds a limit. +* Start recording on voice or sound. +* Stop or pause recording on "silence". + +The recording can be automatically controlled by: +* RhythmBox audio player. +* Banshee audio player. +* Amarok and other MPRIS compatible players. +* Skype. It can automatically record all your Skype calls without + any user interaction. + +This program supports several audio (output) formats such as OGG +audio, Flac, MP3 and WAV. + +User can also control the recorder from command line with +--command option. + +%lang_package +%prep +%setup -q -n %{name} +%patch0 -p1 +%if 0%{?suse_version} <= 1210 +%patch1 -p1 +%endif + +%build +aclocal && autoconf && automake -a +%configure +make %{?_smp_mflags} + +%install +%make_install +%fdupes %{buildroot}%{_datadir} +%find_lang %{name} %{?no_lang_C} + +%post +%icon_theme_cache_post +%glib2_gsettings_schema_post + +%postun +%icon_theme_cache_postun +%glib2_gsettings_schema_postun + +%files +%defattr(-,root,root) +%doc ChangeLog README COPYING +%{_bindir}/%{name} +%{_datadir}/applications/%{name}.desktop +%{_datadir}/%{name}/ +%{_datadir}/icons/hicolor/*/apps/*.png +%{_datadir}/pixmaps/%{name}/ +%{_datadir}/glib-2.0/schemas/org.gnome.audio-recorder.gschema.xml + +%files lang -f %{name}.lang + +%changelog