File xosd.spec of Package xosd

#
# spec file for package xosd
#
# 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/
#

Name:           xosd
BuildRequires:  automake
BuildRequires:  gcc-c++
BuildRequires:  update-desktop-files
BuildRequires:  xorg-x11-devel
#%define plugindir	%(xmms-config --general-plugin-dir)
%define	aclocaldir	%(aclocal --print-ac-dir)
Version:        2.2.14
Release:        0
License:        GPL-2.0+
Summary:        X On-Screen Display library
Source:         %{name}-%{version}.tar.bz2
Patch:          xosd.patch
Patch1:         xosd-2.2.14-config.patch
Url:            http://sourceforge.net/project/showfiles.php?group_id=124390
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Group:          System/X11/Utilities

%description
A library for displaying a TV-like on-screen display in X.



Authors:
--------
    Andre Renaud <andre@ignavus.net>

%description -l de

%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



Authors:
--------
    Andre Renaud <andre@ignavus.net>

%prep
%setup -q
%patch -p1 
%patch1

%build
%if "%(pkg-config --variable=prefix xft)" == "/usr"
%configure --disable-static --with-pic \
	--x-includes=/usr/include \
	--disable-new-plugin \
	--disable-old-plugin
%else
export CFLAGS="$RPM_OPT_FLAGS" 
%configure --disable-static --with-pic \
        --disable-new-plugin \
        --disable-old-plugin
%endif
make %{?jobs:-j%jobs}

%install
make DESTDIR=$RPM_BUILD_ROOT install
%{__rm} -f %{buildroot}%{_libdir}/*.la

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-, root, root, 755)
%doc %{_mandir}/man1/osd_cat.1*
%doc AUTHORS ChangeLog COPYING README
%{_datadir}/%{name}
%{_libdir}/libxosd.so.*
%{_bindir}/osd_cat

%files devel
%defattr(-, root, root)
%doc %{_mandir}/man3/xosd*3*
%{_libdir}/libxosd.so
%{_includedir}/xosd.h
%{_bindir}/xosd-config
%{aclocaldir}/libxosd.m4
%doc %{_mandir}/man1/xosd-config.1*

%clean
rm -rf $RPM_BUILD_ROOT

%changelog
openSUSE Build Service is sponsored by