packages libqtlockedfile.spec
      Pages: < 1 >  DOWNLOAD      
%define        pkg_version 2.4_1
Name:          libqtlockedfile
Version:       2.4.1
Release:       1mamba
Summary:       The QtLockedFile class extends QFile with advisory locking functions
Group:         System/Libraries
Vendor:        openmamba
Distribution:  openmamba
Packager:      gil <puntogil@...>

Patch0:        libqtlockedfile-2.4.1-dont-build-example.patch
Patch1:        libqtlockedfile-2.4.1-dont-link-qtgui.patch
License:       GPL, LGPL
BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libqt4-devel
BuildRequires: libstdc++6-devel
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

This class extends the QFile class with inter-process file locking capabilities. If an application requires that several processes should access the same file, QtLockedFile can be used to easily ensure that only one process at a time is writing to the file, and that no process is writing to it while others are reading it.

%package devel
Group:         Development/Libraries
Summary:       Static libraries and headers for %{name}
Requires:      %{name} = %{?epoch:%epoch:}%{version}-%{release}

%description devel
The QtLockedFile class extends QFile with advisory locking functions.

This package contains static libraries and header files need for development.


%setup -q -n qtlockedfile-%{pkg_version}-opensource
%patch0 -p1
%patch1 -p1

./configure -library << EOF

[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

mkdir -p %{buildroot}%{_qt4_libdir}
cp -a lib/libQtSolutions_LockedFile-*.so* \
chmod 755 %{buildroot}%{_qt4_libdir}/libQtSolutions_LockedFile-*.so*

mkdir -p %{buildroot}%{_qt4_headerdir}/QtSolutions
install -pm 644 src/qtlockedfile.h \
install -pm 644 src/QtLockedFile \

mkdir -p %{buildroot}%{_qt4_datadir}/mkspecs/features
install -pm 644 %{SOURCE1} %{buildroot}%{_qt4_datadir}/mkspecs/features/qtlockedfile.prf

[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig


%files devel

* Wed Sep 22 2010 gil <puntogil@...> 2.4.1-1mamba
- package created by autospec