File gtkpod.spec of Package gtkpod
#
# spec file for package gtkpod
#
# 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: gtkpod
Summary: A platform independent GUI for the AppleĀ® iPodĀ®
Version: 1.0.0
Release: 2
License: GPLv2+
Group: Productivity/Multimedia/Sound/Utilities
Url: http://gtkpod.sourceforge.net/
Source0: %name-%version.tar.bz2
# PATCH-FEATURE-OPENSUSE gtkpod-pref.patch -- Preferences to mountpoint and some tag preferences
Patch0: %name-pref.patch
BuildRequires: curl-devel
BuildRequires: flac-devel
BuildRequires: flex
BuildRequires: intltool
BuildRequires: libglade2-devel
BuildRequires: libgpod-devel
BuildRequires: libvorbis-devel
BuildRequires: libid3tag-devel
BuildRequires: update-desktop-files
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
gtkpod is a Platform-Independent GUI for the Apple iPod using GTK2. It
allows you to upload songs and play lists to your iPod. It supports ID3
tag editing with multiple charsets for ID3 tags, detects duplicate
songs, allows offline modification of the database with later
synchronization, and more.
%lang_package
%prep
%setup -q
%patch0
%build
export LDFLAGS="-Wl,--as-needed"
%configure
%{__make} %{?jobs:-j%jobs}
%install
make DESTDIR=$RPM_BUILD_ROOT install
%suse_update_desktop_file %name Utility SyncUtility
%find_lang %{name} %{?no_lang_C}
%clean
rm -rf %{buildroot}
%if 0%{?suse_version} > 1130
%post
%desktop_database_post
%icon_theme_cache_post
%endif
%if 0%{?suse_version} > 1130
%postun
%desktop_database_postun
%icon_theme_cache_postun
%endif
%files
%defattr(-, root, root)
%doc TODOandBUGS.txt README NEWS INSTALL COPYING ChangeLog AUTHORS
%_bindir/gtkpod
%_datadir/gtkpod
%_datadir/icons/hicolor/*/*/*.png
%_datadir/icons/hicolor/*/*/%{name}.svg
%_datadir/applications/gtkpod.desktop
%{_mandir}/*/%{name}.*
%files lang -f %{name}.lang
%changelog