File totem-pl-parser.spec of Package totem-pl-parser

#
# spec file for package totem-pl-parser
#
# Copyright (c) 2016 SUSE LINUX 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.10.6
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.10/%{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) >= 3.0
BuildRequires:  pkgconfig(libquvi-0.9) >= 0.9.1
BuildRequires:  pkgconfig(libsoup-2.4) >= 2.43.0
BuildRequires:  pkgconfig(libxml-2.0)
Requires:       libquvi-scripts
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Recommends:     %{name}-lang

%description
totem-pl-parser is a simple GObject-based library to parse a host of
playlist formats, to save them too.

%package -n libtotem-plparser18
Summary:        A simple GObject-based library to parse playlist formats
Group:          System/Libraries
# Main package contains libexec files needed for full functionality
Requires:       %{name} >= %{version}

%description -n libtotem-plparser18
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
# Main package contains libexec files needed for full functionality
Requires:       %{name} >= %{version}

%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-mini18
Summary:        A simple GObject-based library to parse playlist formats -- Mini version
Group:          System/Libraries
# Main package contains libexec files needed for full functionality
Requires:       %{name} >= %{version}

%description -n libtotem-plparser-mini18
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-mini18 = %{version}
Requires:       libtotem-plparser18 = %{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-plparser18 -p /sbin/ldconfig

%postun -n libtotem-plparser18 -p /sbin/ldconfig

%post -n libtotem-plparser-mini18 -p /sbin/ldconfig

%postun -n libtotem-plparser-mini18 -p /sbin/ldconfig

%install
%makeinstall
find %{buildroot}%{_libdir} -name "*.la" -type f -print -delete
%find_lang %{name}

%clean

%files
%defattr(-,root,root)
%dir %{_libexecdir}/totem-pl-parser/
%{_libexecdir}/totem-pl-parser/99-totem-pl-parser-videosite

%files -n libtotem-plparser18
%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-mini18
%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
openSUSE Build Service is sponsored by