File libgpod4.spec of Package libgpod4

#
# spec file for package libgpod4 (Version 0.7.2)
#
# Copyright (c) 2009 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:           libgpod4
Version:        0.7.2
Release:        1
Url:            http://www.gtkpod.org/libgpod.html
Group:          System/Libraries
License:        LGPL v2.1 or later
Summary:        Library to Manipulate Songs and Playlists Stored on an iPod
Source:         libgpod-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  fdupes gcc-c++ gtk-doc gtk2-devel hal-devel intltool libxml2-devel perl-XML-Parser
BuildRequires:  python-devel python-eyeD3 python-gobject2-devel python-mutagen swig taglib-devel update-desktop-files
Requires:       %name-lang = %{version}
%if %suse_version > 1030
BuildRequires:  sg3_utils-devel
%else
BuildRequires:  scsi
%endif

%description
libgpod is a library meant to abstract access to iPod content. It
provides an easy-to-use API to retrieve the list of files and
playliststored on an iPod, modify them, and save them back to the iPod.



Authors:
--------
    Jorg Schuler <jcsjcs@users.sourceforge.net>
    Christophe Fergeau <teuf@gnome.org>

%package -n libgpod-devel
License:        LGPL v2.1 or later
Group:          Development/Libraries/C and C++
Summary:        Development files for libgpod
Requires:       %{name} = %{version} glib2-devel gtk2-devel

%description -n libgpod-devel
libgpod is a library meant to abstract access to iPod content. This
package includes the libraries and header files for libgpod



Authors:
--------
    Jorg Schuler <jcsjcs@users.sourceforge.net>
    Christophe Fergeau <teuf@gnome.org>

%package -n libgpod-doc
License:        LGPL v2.1 or later
Group:          System/Libraries
Summary:        Documentation for libgpod
Requires:       %{name} = %{version}

%description -n libgpod-doc
libgpod is a library meant to abstract access to iPod content. This
package includes the Documentation for libgpod



Authors:
--------
    Jorg Schuler <jcsjcs@users.sourceforge.net>
    Christophe Fergeau <teuf@gnome.org>

%package -n libgpod-python
License:        LGPL v2.1 or later
Summary:        A python module to access iPod content with libgpod
Group:          Development/Languages/Python
Requires:       python-mutagen

%description  -n libgpod-python
A python module to access iPod content. This module provides bindings
to the libgpod library.



Authors:
--------
    Jorg Schuler <jcsjcs@users.sourceforge.net>
    Christophe Fergeau <teuf@gnome.org>

%package -n libgpod-tools
License:        LGPL v2.1 or later
Summary:        Tools for libgpod
Group:          Development/Libraries/C and C++
Supplements:    %{name}

%description -n libgpod-tools
libgpod is a library meant to abstract access to iPod content. This
package includes support tools for libgpod



Authors:
--------
    Jorg Schuler <jcsjcs@users.sourceforge.net>
    Christophe Fergeau <teuf@gnome.org>

%lang_package
%prep
%setup -q -n libgpod-%version

%build
%configure --with-pic --with-python=yes\
	--disable-static --with-hal-callouts-dir=%{_libexecdir}/hal
make %{?jobs:-j%jobs}

%install
make install DESTDIR=$RPM_BUILD_ROOT
%find_lang libgpod 
%fdupes -s $RPM_BUILD_ROOT
rm bindings/python/examples/Makefile* 
rm $RPM_BUILD_ROOT%{_libdir}/*.*a

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files 
%defattr (-, root, root)
%{_libdir}/libgpod.so.4*

%files -n libgpod-tools
%defattr (-, root, root)
/usr/bin/ipod-read-sysinfo-extended
%{_libexecdir}/hal/libgpod-callout
/usr/share/hal/fdi/policy/20thirdparty/20-libgpod-sysinfo-extended.fdi

%files lang -f libgpod.lang
%defattr (-, root, root)

%files -n libgpod-devel
%defattr (-, root, root)
%{_includedir}/gpod-1.0
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

%files -n libgpod-doc
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README README.SysInfo
%{_datadir}/gtk-doc/html/libgpod

%files -n libgpod-python
%defattr(-, root, root, 0755)
%doc COPYING bindings/python/examples
%{py_sitedir}/gpod

%changelog
openSUSE Build Service is sponsored by