File libqtpod.spec of Package libqtpod
#
# spec file for package libqtpod
#
# Copyright (c) 2012 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: libqtpod
Url: http://sourceforge.net/projects/kpod
Version: 0.4.2
Release: 0
Summary: A Qt based library to access the data on an Apple iPod
License: GPL-2.0+ ; LGPL-2.1+
Group: Productivity/Multimedia/Sound/Utilities
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: libqtpod-%{version}.tar.bz2
BuildRequires: qt3-devel
BuildRequires: xorg-x11-libs
Patch1: libqtpod-0.4.2.patch
Patch2: libqtpod-target.patch
Patch3: libqtpod-gcc47.patch
%description
A Qt based library to access the data on an Apple iPod
Authors:
--------
Michael Schulze <mike.s@genion.de>
%package -n libqtpod0
Provides: libqtpod = %{version}-%{release}
#
Summary: A Qt based library to access the data on an Apple iPod
Group: Productivity/Multimedia/Sound/Utilities
%description -n libqtpod0
A Qt based library to access the data on an Apple iPod
Authors:
--------
Michael Schulze <mike.s@genion.de>
%package devel
Requires: libqtpod0 = %{version}
Summary: A Qt based library to access the data on an Apple iPod
Group: Development/Libraries/C and C++
%description devel
A Qt based library to access the data on an Apple iPod
Authors:
--------
Michael Schulze <mike.s@genion.de>
%package doc
Summary: A Qt based library to access the data on an Apple iPod
Group: Productivity/Multimedia/Sound/Utilities
%description doc
A Qt based library to access the data on an Apple iPod.
This package provides additional documentation for libqtpod
Authors:
--------
Michael Schulze <mike.s@genion.de>
%prep
%setup -n libqtpod-%{version}
%patch1
%patch2
%patch3 -p1
%build
export QTDIR=/usr/lib/qt3
export PATH="$QTDIR/bin:$PATH"
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" /usr/lib/qt3/bin/qmake -d
make
%install
BUILDLIBDIR=%{buildroot}%{_libdir} BUILDINCLDIR=%{buildroot}%{_includedir}/libqtpod %makeinstall
%post -n libqtpod0 -p /sbin/ldconfig
%postun -n libqtpod0 -p /sbin/ldconfig
%files -n libqtpod0
%defattr(-, root, root)
%{_libdir}/*.so.*
%files doc
%defattr(-, root, root)
%doc README Changelog
%doc docs/*
%files devel
%defattr(-, root, root)
%{_includedir}/libqtpod
%{_libdir}/*.so
%changelog