Author: glen Date: Thu Apr 22 20:50:01 2010 GMT Module: packages Tag: HEAD ---- Log message: - new, based on https://bugzilla.redhat.com/show_bug.cgi?id=582864
---- Files affected: packages/QtLockedFile: QtLockedFile.spec (NONE -> 1.1) (NEW), qtlockedfile-dont-build-example.patch (NONE -> 1.1) (NEW), qtlockedfile-dont-link-qtgui.patch (NONE -> 1.1) (NEW), qtlockedfile.prf (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: packages/QtLockedFile/QtLockedFile.spec diff -u /dev/null packages/QtLockedFile/QtLockedFile.spec:1.1 --- /dev/null Thu Apr 22 22:50:01 2010 +++ packages/QtLockedFile/QtLockedFile.spec Thu Apr 22 22:49:55 2010 @@ -0,0 +1,99 @@ +# $Revision$, $Date$ +Summary: QFile extension with advisory locking functions +Name: QtLockedFile +Version: 2.4 +Release: 1 +License: GPL v3 or LGPL v2 with exceptions +Group: Libraries +URL: http://qt.nokia.com/products/appdev/add-on-products/catalog/4/Utilities/qtlockedfile +Source0: http://get.qt.nokia.com/qt/solutions/lgpl/qtlockedfile-%{version}_1-opensource.tar.gz +# Source0-md5: ac8f848f59038a414f3ab4f4cc08e99c +Source1: qtlockedfile.prf +Patch0: qtlockedfile-dont-build-example.patch +# Remove unnecessary linkage to libQtGui +Patch1: qtlockedfile-dont-link-qtgui.patch +BuildRequires: qt4-build +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%define _qt4_datadir %{_datadir}/qt4 + +%description +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 +Summary: Development files for QtLockedFile library +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: qt4-build +Requires: qt4-qmake + +%description devel +This package contains libraries and header files for developing +applications that use QtLockedFile. + +%prep +%setup -q -n qtlockedfile-%{version}_1-opensource +%patch0 -p1 +%patch1 -p1 + + +%build +touch .licenseAccepted +# Does not use GNU configure +./configure -library +qmake-qt4 +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT + +# libraries +install -d $RPM_BUILD_ROOT%{_libdir} +cp -a lib/* $RPM_BUILD_ROOT%{_libdir} + +rm $RPM_BUILD_ROOT%{_libdir}/lib*-%{version}.so.1.0 + +# headers +install -d $RPM_BUILD_ROOT%{_includedir}/QtSolutions +cp -a \ + src/qtlockedfile.h \ + src/QtLockedFile \ + $RPM_BUILD_ROOT%{_includedir}/QtSolutions + +install -d $RPM_BUILD_ROOT%{_qt4_datadir}/mkspecs/features +cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_qt4_datadir}/mkspecs/features + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(644,root,root,755) +%doc LGPL_EXCEPTION.txt LICENSE.* README.TXT +%attr(755,root,root) %{_libdir}/libQtSolutions_LockedFile-%{version}.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libQtSolutions_LockedFile-%{version}.so.1 + +%files devel +%defattr(644,root,root,755) +%doc doc example +%{_libdir}/libQtSolutions_LockedFile-%{version}.so +# XXX shared dir with QtSingleApplication +%dir %{_includedir}/QtSolutions +%{_includedir}/QtSolutions/QtLockedFile +%{_includedir}/QtSolutions/qtlockedfile.h +%{_qt4_datadir}/mkspecs/features/qtlockedfile.prf + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[email protected]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2010/04/22 20:49:55 glen +- new, based on https://bugzilla.redhat.com/show_bug.cgi?id=582864 ================================================================ Index: packages/QtLockedFile/qtlockedfile-dont-build-example.patch diff -u /dev/null packages/QtLockedFile/qtlockedfile-dont-build-example.patch:1.1 --- /dev/null Thu Apr 22 22:50:01 2010 +++ packages/QtLockedFile/qtlockedfile-dont-build-example.patch Thu Apr 22 22:49:55 2010 @@ -0,0 +1,8 @@ +diff -rupN qtlockedfile-2.4_1-opensource.old/qtlockedfile.pro qtlockedfile-2.4_1-opensource/qtlockedfile.pro +--- qtlockedfile-2.4_1-opensource.old/qtlockedfile.pro 2009-12-16 05:41:13.000000000 -0500 ++++ qtlockedfile-2.4_1-opensource/qtlockedfile.pro 2010-04-15 19:53:40.000000000 -0400 +@@ -2,4 +2,3 @@ TEMPLATE=subdirs + CONFIG += ordered + include(common.pri) + qtlockedfile-uselib:SUBDIRS=buildlib +-SUBDIRS+=example ================================================================ Index: packages/QtLockedFile/qtlockedfile-dont-link-qtgui.patch diff -u /dev/null packages/QtLockedFile/qtlockedfile-dont-link-qtgui.patch:1.1 --- /dev/null Thu Apr 22 22:50:01 2010 +++ packages/QtLockedFile/qtlockedfile-dont-link-qtgui.patch Thu Apr 22 22:49:55 2010 @@ -0,0 +1,12 @@ +diff -rupN qtlockedfile-2.4_1-opensource.old/src/qtlockedfile.pri qtlockedfile-2.4_1-opensource/src/qtlockedfile.pri +--- qtlockedfile-2.4_1-opensource.old/src/qtlockedfile.pri 2009-12-16 05:41:13.000000000 -0500 ++++ qtlockedfile-2.4_1-opensource/src/qtlockedfile.pri 2010-04-16 22:00:52.000000000 -0400 +@@ -1,7 +1,7 @@ + include(../common.pri) + INCLUDEPATH += $$PWD + DEPENDPATH += $$PWD +- ++QT -= gui + qtlockedfile-uselib:!qtlockedfile-buildlib { + LIBS += -L$$QTLOCKEDFILE_LIBDIR -l$$QTLOCKEDFILE_LIBNAME + } else { ================================================================ Index: packages/QtLockedFile/qtlockedfile.prf diff -u /dev/null packages/QtLockedFile/qtlockedfile.prf:1.1 --- /dev/null Thu Apr 22 22:50:01 2010 +++ packages/QtLockedFile/qtlockedfile.prf Thu Apr 22 22:49:55 2010 @@ -0,0 +1,3 @@ +INCLUDEPATH *= $$QMAKE_INCDIR_QT/QtSolutions +DEPENDPATH *= $$QMAKE_INCDIR_QT/QtSolutions +LIBS *= -lQtSolutions_LockedFile-2.4 ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
