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:        2.1.0
Release:        1
License:        GPLv2+
Group:          Productivity/Multimedia/Sound/Utilities
Url:            http://gtkpod.sourceforge.net/
Source0:        http://downloads.sourceforge.net/project/gtkpod/gtkpod/%{name}-%{version}/%{name}-%{version}.tar.gz
# PATCH-FEATURE-OPENSUSE gtkpod-pref.patch -- Preferences to mountpoint and some tag preferences
Patch0:         gtkpod-pref.patch
# PATCH-FIX-UPSTREAM gtkpod-gtk_box.patch sf#3383833 dimstar@opensuse.org -- No longer use deprecated gtk_[hv]box_new.
Patch3:         gtkpod-gtk_box.patch
BuildRequires:  curl-devel
BuildRequires:  fdupes
BuildRequires:  flac-devel
BuildRequires:  flex
BuildRequires:  intltool
BuildRequires:  libgpod-devel
BuildRequires:  libvorbis-devel
BuildRequires:  libid3tag-devel
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(libanjuta-3.0)
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires

%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.

%package devel

Summary:        A platform independent GUI for the Apple® iPod® - Development Files
Group:          Development/Libraries/C and C++
Requires:       libgtkpod1 = %{version}

%description devel
This package contains development headers for libgtkpod

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.

%package -n libgtkpod1

Summary:        A platform independent GUI for the Apple® iPod® - System Library
Group:          System/Libraries

%description -n libgtkpod1
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.

Shared Library, to be installed by package dependencies.

%lang_package
%prep
%setup -q
%patch0 -p1
%patch3 -p1

%build
# Call to autogen.sh needed for patch1.
./autogen.sh
%configure --disable-static
make V=1

%install
%make_install
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%suse_update_desktop_file %name Utility SyncUtility
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}%{_datadir}

%clean
rm -rf  %{buildroot}

%if 0%{?suse_version} > 1130

%post
%desktop_database_post
%icon_theme_cache_post
%glib2_gsettings_schema_post
%endif

%if 0%{?suse_version} > 1130

%postun
%desktop_database_postun
%icon_theme_cache_postun
%glib2_gsettings_schema_postun
%endif

%post -n libgtkpod1 -p /sbin/ldconfig

%postun -n libgtkpod1 -p /sbin/ldconfig

%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
%{_datadir}/glib-2.0/schemas/org.gtkpod.gschema.xml
%{_libdir}/gtkpod/
%{_mandir}/*/%{name}.*

%files -n libgtkpod1
%defattr(-, root, root)
%{_libdir}/libgtkpod.so.*

%files lang -f %{name}.lang

%files devel
%defattr(-, root, root)
%{_includedir}/gtkpod/
%{_libdir}/libgtkpod.so
%{_libdir}/pkgconfig/libgtkpod-1.1.0.pc

%changelog
openSUSE Build Service is sponsored by