File totem-pl-parser.spec of Package totem-pl-parser
#
# spec file for package totem-pl-parser
#
# 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: totem-pl-parser
Version: 2.32.6
Release: 1
License: LGPLv2.0+
Group: Productivity/Multimedia/Video/Players
Source0: http://download.gnome.org/sources/totem-pl-parser/2.32/%{name}-%{version}.tar.bz2
Summary: A simple GObject-based library to parse playlist formats
Url: http://www.gnome.org/projects/totem/
BuildRequires: intltool
BuildRequires: translation-update-upstream
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gmime-2.4)
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
License: LGPLv2.0+
Group: System/Libraries
Summary: A simple GObject-based library to parse playlist formats
# 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 libtotem-plparser-mini17
License: LGPLv2.0+
Group: System/Libraries
Summary: A simple GObject-based library to parse playlist formats -- Mini version
%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
License: LGPLv2.0+
Group: Development/Libraries/GNOME
Summary: A simple GObject-based library to parse playlist formats
Requires: libtotem-plparser17 = %{version}
Requires: libtotem-plparser-mini17 = %{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.*
%{_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