File gnac.spec of Package gnac

#
# spec file for package gnac
#
# 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/
#



Name:           gnac
Version:        0.2.2
Release:        3
# FIXME: license is being checked with upstream: COPYING is GPLv3 but headers are GPLv2+
License:        GPLv3
Summary:        Audio converter for GNOME
Url:            http://gnac.sourceforge.net/
Group:          Productivity/Multimedia/Sound/Editors and Convertors
Source:         %{name}-%{version}.tar.bz2
BuildRequires:  fdupes
BuildRequires:  gconf2-devel
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  gstreamer-0_10-plugins-base-devel
BuildRequires:  gtk2-devel
BuildRequires:  intltool
BuildRequires:  libunique-devel
BuildRequires:  libxml2-devel
BuildRequires:  update-desktop-files
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
%if 0%{?suse_version} <= 1120
%gconf_schemas_prereq
%else
%gconf_schemas_requires
%endif

%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

%build
%configure
%__make %{?_smp_mflags}

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

%clean
rm -rf %{buildroot}

%pre -f %{name}.schemas_pre

%preun -f %{name}.schemas_preun

%posttrans -f %{name}.schemas_posttrans

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

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

%files -f %{name}.schemas_list
%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}/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