File xosd.spec of Package xosd
#
# spec file for package xosd
#
# Copyright (c) 2015 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: xosd
Version: 2.2.14
Release: 0
Summary: X On-Screen Display library
License: GPL-2.0+
Group: System/X11/Utilities
Url: http://sourceforge.net/projects/libxosd
Source: http://sourceforge.net/projects/libxosd/files/libxosd/xosd-%{version}/%{name}-%{version}.tar.gz
Patch0: xosd.patch
Patch1: xosd-2.2.14-config.patch
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: pkg-config
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xinerama)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A library for displaying a TV-like on-screen display in X.
%package devel
Summary: X On-Screen Display library development files
Group: Development/Libraries/X11
Requires: xosd = %{version}
%description devel
development headers and static libraries for xosd
%prep
%setup -q
%patch0 -p1
%patch1
%build
%configure \
--disable-static \
--with-pic \
--disable-new-plugin \
--disable-old-plugin
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
find %{buildroot} -type f -name "*.la" -delete -print
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-, root, root, 755)
%{_mandir}/man1/osd_cat.1*
%doc AUTHORS ChangeLog COPYING README
%{_datadir}/%{name}
%{_libdir}/libxosd.so.*
%{_bindir}/osd_cat
%files devel
%defattr(-, root, root)
%{_mandir}/man3/xosd*3*
%{_libdir}/libxosd.so
%{_includedir}/xosd.h
%{_bindir}/xosd-config
%{_datadir}/aclocal/libxosd.m4
%{_mandir}/man1/xosd-config.1*
%changelog