File totem-pl-parser.spec of Package totem-pl-parser
#
# spec file for package totem-pl-parser
#
# Copyright (c) 2012 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: totem-pl-parser
Version: 3.4.3
Release: 0
Summary: A simple GObject-based library to parse playlist formats
License: LGPL-2.0+
Group: Productivity/Multimedia/Video/Players
Url: http://www.gnome.org/projects/totem/
Source0: http://download.gnome.org/sources/totem-pl-parser/3.4/%{name}-%{version}.tar.xz
BuildRequires: intltool
BuildRequires: libgcrypt-devel
BuildRequires: translation-update-upstream
BuildRequires: pkgconfig(glib-2.0) >= 2.31.0
BuildRequires: pkgconfig(gmime-2.6)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(libarchive)
BuildRequires: pkgconfig(libquvi)
BuildRequires: pkgconfig(libsoup-2.4)
BuildRequires: pkgconfig(libxml-2.0)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
totem-pl-parser is a simple GObject-based library to parse a host of
playlist formats, to save them too.
%package -n libtotem-plparser17
Summary: A simple GObject-based library to parse playlist formats
Group: System/Libraries
# Provides is needed to make lang package installable
Provides: %{name} = %{version}
Obsoletes: %{name} < %{version}
Recommends: %{name}-lang
%description -n libtotem-plparser17
totem-pl-parser is a simple GObject-based library to parse a host of
playlist formats, to save them too.
%package -n typelib-1_0-TotemPlParser-1_0
Summary: A simple GObject-based library to parse playlist formats -- Introspection bindings
Group: System/Libraries
%description -n typelib-1_0-TotemPlParser-1_0
totem-pl-parser is a simple GObject-based library to parse a host of
playlist formats, to save them too.
This package provides the GObject Introspection bindings for the
totem-pl-parser library.
%package -n libtotem-plparser-mini17
Summary: A simple GObject-based library to parse playlist formats -- Mini version
Group: System/Libraries
%description -n libtotem-plparser-mini17
totem-pl-parser is a simple GObject-based library to parse a host of
playlist formats, to save them too.
%package devel
Summary: A simple GObject-based library to parse playlist formats
Group: Development/Libraries/GNOME
Requires: libtotem-plparser-mini17 = %{version}
Requires: libtotem-plparser17 = %{version}
Requires: typelib-1_0-TotemPlParser-1_0 = %{version}
%description devel
totem-pl-parser is a simple GObject-based library to parse a host of
playlist formats, to save them too.
%lang_package
%prep
%setup -q
translation-update-upstream
%build
%configure \
--disable-static \
--enable-quvi
make %{?jobs:-j%jobs}
%post -n libtotem-plparser17 -p /sbin/ldconfig
%postun -n libtotem-plparser17 -p /sbin/ldconfig
%post -n libtotem-plparser-mini17 -p /sbin/ldconfig
%postun -n libtotem-plparser-mini17 -p /sbin/ldconfig
%install
%makeinstall
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
find %{buildroot}%{_libdir} -name "*.la" -type f -print -delete
%find_lang %{name}
%clean
%files -n libtotem-plparser17
%defattr(-, root, root)
%{_libdir}/libtotem-plparser.so.*
%files -n typelib-1_0-TotemPlParser-1_0
%defattr(-,root,root)
%{_libdir}/girepository-1.0/TotemPlParser-1.0.typelib
%files -n libtotem-plparser-mini17
%defattr(-, root, root)
%{_libdir}/libtotem-plparser-mini.so.*
%files devel
%defattr(-, root, root)
%{_includedir}/totem-pl-parser/
%{_libdir}/libtotem-plparser.so
%{_libdir}/libtotem-plparser-mini.so
%{_libdir}/pkgconfig/totem-plparser.pc
%{_libdir}/pkgconfig/totem-plparser-mini.pc
%{_datadir}/gir-1.0/*.gir
%doc %{_datadir}/gtk-doc/html/totem-pl-parser/
%files lang -f %{name}.lang
%changelog