File qtc.spec of Package qtc

#
# spec file for package qtc (Version 0.7a)
#
# Copyright (c) 2007 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:           qtc
BuildRequires:  libdrm-devel libjpeg-devel qt3-devel update-desktop-files
License:        LGPL v2.1 or later
Group:          System/GUI/KDE
Summary:        C Bindings for Qt
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://www.usermode.org/code.html
Version:        0.7a
Release:        134
%define rversion 20030416
Provides:       kdebindings3-c
Obsoletes:      kdebindings3-c
Source:         %name-qtsharp-%version.tar.bz2
Patch:          %name-%version-gcc4.patch

%description
This package contains needed libraries to write applications in plain C
(not C++) for Qt.



Authors:
--------
    The KDE Team <kde@kde.org>

%prep
%setup -q -n %name-qtsharp-%rversion
%patch -p1 

%build
export PATH=/usr/lib/qt3/bin:$PATH
qmake INSTALLDIR=%_libdir
make -k

%install
# broken ....
#make INSTALL_ROOT=$RPM_BUILD_ROOT/ install
mkdir -p $RPM_BUILD_ROOT/%_libdir
cp -av clib/qtc/libqtc.* $RPM_BUILD_ROOT/%_libdir/

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc COPYING AUTHORS NEWS README
%_libdir/libqt*

%changelog
* Wed Dec 26 2007 - crrodriguez@suse.de
- fix library-without-ldconfig-* errors
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Fri May 06 2005 - yxu@suse.de
- fixed for GCC4
* Mon Jan 10 2005 - adrian@suse.de
- fix build, qmake isn't in default PATH anymore
* Thu Nov 11 2004 - coolo@suse.de
- fixing file list for debug packages
* Mon Sep 06 2004 - adrian@suse.de
- initial package of c bindings for Qt
  (C bindings in kdebindings are not maintained anymore)
openSUSE Build Service is sponsored by