File libmatchbox.spec of Package libmatchbox

#
# spec file for package libmatchbox
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           libmatchbox
BuildRequires:  xorg-x11-devel freetype2-devel pango-devel libpng-devel
BuildRequires:  libjpeg-devel Xsettings-client-devel 

Summary:        A Library for small X apps
Version:        1.9
Release:        0.1pzb
License:        LGPL
Group:          System/Libraries
Source:         %{name}-%{version}.tar.bz2
URL:            http://projects.o-hand.com/matchbox/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
libmatchbox is a thingy


Authors:
--------
    Matthew Allum <mallum@openedhand.com>

%debug_package
%package devel
Summary:        Development package for the libmatchbox library
Group:          Development/Libraries/C and C++
Requires:       libmatchbox = %{version}
Requires:	libpng-devel pango-devel libjpeg-devel Xsettings-client-devel
Requires:	freetype2-devel

%description devel
This package contains the files needed to compile programs that use the
libmatchbox library.



Authors:
--------
    Matthew Allum <mallum@openedhand.com>

%prep
%setup

%build
#autoreconf --force --install
%{?suse_update_config:%{suse_update_config -f}}
%configure --enable-pango --enable-jpeg --enable-xsettings
make

%install
%makeinstall
find "$RPM_BUILD_ROOT"

%post
%run_ldconfig

%postun
%run_ldconfig

%clean
test "$RPM_BUILD_ROOT" != "/" -a -d "$RPM_BUILD_ROOT" && rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc COPYING NEWS README
%{_libdir}/*.so.*

%files devel
%defattr(-, root, root)
%{_libdir}/*.*a
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_includedir}/libmb

%changelog
* Sat Jan 27 2007 - pzb@novell.com
- Import into build service
- check isn't in obs, so skip reconf for now
openSUSE Build Service is sponsored by