Summary: Shared library to access the contents of an iPod
Name: libgpod
-Version: 0.1.6
-Release: 0.1
+Version: 0.1.8
+%define _snap 20051106
+Release: 0.%{_snap}.1
Epoch: 0
License: GPL v2
Group: Libraries
-Source0: http://dl.sourceforge.net/gtkpod/%{name}-%{version}.tar.gz
-# Source0-md5: 5d74f888921330bae4f355924e4b4874
+#Source0: http://dl.sourceforge.net/gtkpod/%{name}-%{version}.tar.gz
+Source0: %{name}-%{_snap}.tar.bz2
+# Source0-md5: 7f8237149051cb3a6d0c9f21007b2691
URL: http://www.gtkpod.org/libgpod.html
BuildRequires: gettext-devel
BuildRequires: glib2-devel
BuildRequires: intltool >= 0.21
BuildRequires: pkgconfig
+%if 0%{?_snap:1}
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: intltool
+BuildRequires: libtool
+%endif
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
provides an easy to use API to retrieve the list of files and playlist
stored on an iPod, to modify them and to save them back to the iPod.
+%package devel
+Summary: Development libraries and header files for libgpod library
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+This is the package containing the development libraries and header
+files for libgpod
+
+%package static
+Summary: Static libgpod library
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static libgpod library.
+
%prep
-%setup -q
+%setup -q %{?_snap:-n %{name}}
%build
+%if 0%{?_snap:1}
+%{__intltoolize}
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%endif
%configure
%{__make}
rm -rf $RPM_BUILD_ROOT
%{__make} install \
+ MKINSTALLDIRS="install -d" \
DESTDIR=$RPM_BUILD_ROOT
%find_lang %{name} --all-name
%clean
rm -rf $RPM_BUILD_ROOT
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog README
+%attr(755,root,root) %{_libdir}/libgpod.so.*.*.*
+%{_includedir}/gpod-1.0
+
+%files devel
+%defattr(644,root,root,755)
+%{_libdir}/libgpod.la
+%attr(755,root,root) %{_libdir}/libgpod.so
+%{_pkgconfigdir}/libgpod-1.0.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libgpod.a