File gnac.spec of Package gnac

#
# spec file for package gnac
#
# 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:           gnac
Version:        0.2.4.1
Release:        0
Summary:        Audio converter for GNOME
License:        GPL-3.0+
Group:          Productivity/Multimedia/Sound/Editors and Convertors
Url:            http://gnac.sourceforge.net/
Source:         http://downloads.sourceforge.net/project/gnac/gnac/gnac-0.2.4.1/%{name}-%{version}.tar.bz2
BuildRequires:  fdupes
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  intltool
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(gstreamer-0.10) >= 0.10.31
BuildRequires:  pkgconfig(gstreamer-pbutils-0.10)
BuildRequires:  pkgconfig(gstreamer-plugins-base-0.10) >= 0.10.31
BuildRequires:  pkgconfig(gstreamer-tag-0.10)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(libnotify)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(unique-3.0)
Requires:       gstreamer-0_10-plugins-base
Requires:       gstreamer-0_10-plugins-good
# Some supported formats are not in good
Recommends:     gstreamer-0_10-plugins-bad
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires

%description
Gnac is an easy to use audio conversion program for the GNOME desktop.
It is designed to be powerful but simple! It provides easy audio files
conversion between all GStreamer supported audio formats.

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

%build
%configure
%__make %{?_smp_mflags}

%install
%makeinstall
%find_lang %{name} %{?no_lang_C}
%suse_update_desktop_file gnac
%fdupes %{buildroot}%{_datadir}

%clean
rm -rf %{buildroot}

%post
%if 0%{?suse_version} > 1130
%desktop_database_post
%icon_theme_cache_post
%glib2_gsettings_schema_post
%else
gtk-update-icon-cache %{_datadir}/icons/hicolor || true
%endif

%postun
%if 0%{?suse_version} > 1130
%desktop_database_postun
%icon_theme_cache_postun
%glib2_gsettings_schema_postun
%else
gtk-update-icon-cache %{_datadir}/icons/hicolor || true
%endif

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README THANKS
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}/
%doc %{_datadir}/gnome/help/%{name}/C/
%{_mandir}/man1/gnac.1.*
%{_bindir}/gnac
%{_datadir}/applications/gnac.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.gnac.gschema.xml
%{_datadir}/gnac/
%{_datadir}/icons/hicolor/*/apps/*.png
%{_datadir}/icons/hicolor/*/apps/*.svg
%{_datadir}/pixmaps/gnac.png

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by