|
|
6d8e0c2 |
%global commit 17b56547d6e0d9a06603231fe2384474f9144829
|
|
|
6d8e0c2 |
|
|
|
6d8e0c2 |
Summary: QFile extension with advisory locking functions
|
|
|
6d8e0c2 |
Name: qtlockedfile
|
|
|
6d8e0c2 |
Version: 2.4
|
|
|
0ae9efe |
Release: 13%{?dist}
|
|
|
6d8e0c2 |
|
|
|
6d8e0c2 |
License: GPLv3 or LGPLv2 with exceptions
|
|
|
6d8e0c2 |
URL: http://doc.qt.digia.com/solutions/4/qtlockedfile/qtlockedfile.html
|
|
|
6d8e0c2 |
Source0: https://qt.gitorious.org/qt-solutions/qt-solutions/archive/%{commit}.tar.gz#/%{name}-%{commit}.tar.gz
|
|
|
6d8e0c2 |
Source1: qtlockedfile.prf
|
|
Fabio Alessandro Locati |
97050c7 |
# Proposed upstream in https://codereview.qt-project.org/#/c/92411/
|
|
|
6d8e0c2 |
Source2: LICENSE.LGPL
|
|
Fabio Alessandro Locati |
97050c7 |
# Proposed upstream in https://codereview.qt-project.org/#/c/92411/
|
|
|
6d8e0c2 |
Source3: LGPL_EXCEPTION
|
|
Fabio Alessandro Locati |
97050c7 |
# Proposed upstream in https://codereview.qt-project.org/#/c/92411/
|
|
|
6d8e0c2 |
Source4: LICENSE.GPL3
|
|
|
0ae9efe |
Patch0: qtlockedfile-use-current-version.patch
|
|
|
0ae9efe |
Patch1: qtlockedfile-dont-build-example.patch
|
|
Fabio Alessandro Locati |
ff71277 |
|
|
|
6d8e0c2 |
BuildRequires: qt4-devel qt5-qtbase-devel
|
|
|
177266f |
|
|
|
177266f |
%description
|
|
|
177266f |
This class extends the QFile class with inter-process file locking capabilities.
|
|
|
177266f |
If an application requires that several processes should access the same file,
|
|
|
177266f |
QtLockedFile can be used to easily ensure that only one process at a time is
|
|
|
177266f |
writing to the file, and that no process is writing to it while others are
|
|
|
177266f |
reading it.
|
|
|
177266f |
|
|
|
6d8e0c2 |
%package devel
|
|
|
6d8e0c2 |
Summary: Development files for %{name}
|
|
|
6d8e0c2 |
Requires: %{name} = %{version}-%{release}
|
|
|
6d8e0c2 |
Requires: qt4-devel
|
|
|
177266f |
|
|
|
6d8e0c2 |
%description devel
|
|
|
177266f |
This package contains libraries and header files for developing applications
|
|
|
177266f |
that use QtLockedFile.
|
|
|
177266f |
|
|
|
6d8e0c2 |
%package qt5
|
|
|
6d8e0c2 |
Summary: QFile extension with advisory locking functions (Qt5)
|
|
|
0ae9efe |
Requires: qt5-qtbase
|
|
|
6d8e0c2 |
|
|
|
6d8e0c2 |
%description qt5
|
|
|
6d8e0c2 |
This class extends the QFile class with inter-process file locking capabilities.
|
|
|
6d8e0c2 |
If an application requires that several processes should access the same file,
|
|
|
6d8e0c2 |
QtLockedFile can be used to easily ensure that only one process at a time is
|
|
|
6d8e0c2 |
writing to the file, and that no process is writing to it while others are
|
|
|
6d8e0c2 |
reading it.
|
|
|
6d8e0c2 |
This is a special build against Qt5.
|
|
|
6d8e0c2 |
|
|
|
6d8e0c2 |
%package qt5-devel
|
|
|
0ae9efe |
Summary: Development files for %{name}-qt5
|
|
|
0ae9efe |
Requires: %{name}-qt5 = %{version}-%{release}
|
|
|
0ae9efe |
Requires: qt5-qtbase-devel
|
|
|
6d8e0c2 |
|
|
|
6d8e0c2 |
%description qt5-devel
|
|
|
6d8e0c2 |
This package contains libraries and header files for developing applications
|
|
|
6d8e0c2 |
that use QtLockedFile with Qt5.
|
|
|
6d8e0c2 |
|
|
|
6d8e0c2 |
|
|
|
177266f |
%prep
|
|
|
6d8e0c2 |
%setup -qnqt-solutions-qt-solutions/%{name}
|
|
|
0ae9efe |
%patch0
|
|
|
0ae9efe |
%patch1
|
|
|
6d8e0c2 |
sed -i s,head,%{version}, common.pri
|
|
|
6d8e0c2 |
mkdir licenses
|
|
|
6d8e0c2 |
cp %{SOURCE2} %{SOURCE3} %{SOURCE4} licenses
|
|
|
177266f |
|
|
|
177266f |
|
|
|
177266f |
%build
|
|
|
177266f |
# Does not use GNU configure
|
|
|
177266f |
./configure -library
|
|
|
6d8e0c2 |
%{qmake_qt4}
|
|
|
6d8e0c2 |
make %{?_smp_mflags}
|
|
|
6d8e0c2 |
mkdir qt5
|
|
|
6d8e0c2 |
pushd qt5
|
|
|
6d8e0c2 |
%{qmake_qt5} ..
|
|
|
177266f |
make %{?_smp_mflags}
|
|
|
6d8e0c2 |
popd
|
|
|
177266f |
|
|
|
177266f |
%install
|
|
|
177266f |
# libraries
|
|
|
6d8e0c2 |
mkdir -p %{buildroot}%{_libdir}
|
|
|
6d8e0c2 |
cp -a lib/* %{buildroot}%{_libdir}
|
|
|
177266f |
|
|
|
177266f |
# headers
|
|
|
6d8e0c2 |
for qtdir in %{_qt4_headerdir} %{_qt5_headerdir} ; do
|
|
|
6d8e0c2 |
d=%{buildroot}$qtdir/QtSolutions ;
|
|
|
6d8e0c2 |
mkdir -p $d ;
|
|
|
6d8e0c2 |
cp -a \
|
|
|
177266f |
src/qtlockedfile.h \
|
|
|
177266f |
src/QtLockedFile \
|
|
|
6d8e0c2 |
$d ;
|
|
|
6d8e0c2 |
done
|
|
|
177266f |
|
|
|
6d8e0c2 |
for qtdir in %{_qt4_datadir} %{_qt5_datadir} ; do
|
|
|
6d8e0c2 |
d=%{buildroot}$qtdir/mkspecs/features ;
|
|
|
6d8e0c2 |
mkdir -p $d ;
|
|
|
6d8e0c2 |
cp -a %{SOURCE1} $d ;
|
|
|
6d8e0c2 |
done
|
|
Fabio Alessandro Locati |
ff71277 |
|
|
|
177266f |
%clean
|
|
|
6d8e0c2 |
rm -rf %{buildroot}
|
|
|
177266f |
|
|
|
177266f |
%post -p /sbin/ldconfig
|
|
|
177266f |
|
|
|
177266f |
%postun -p /sbin/ldconfig
|
|
|
177266f |
|
|
|
177266f |
|
|
|
177266f |
%files
|
|
|
6d8e0c2 |
%license licenses/*
|
|
Fabio Alessandro Locati |
ff71277 |
%doc README.TXT
|
|
|
6d8e0c2 |
# Caution! do not include any unversioned .so symlink (belongs to -devel)
|
|
|
6d8e0c2 |
%{_qt4_libdir}/libQtSolutions_LockedFile*.so.*
|
|
|
177266f |
|
|
|
177266f |
%files devel
|
|
|
6d8e0c2 |
%doc doc/html/ example/
|
|
|
177266f |
%{_qt4_headerdir}/QtSolutions/
|
|
|
6d8e0c2 |
%{_qt4_libdir}/libQtSolutions_LockedFile*.so
|
|
|
177266f |
%{_qt4_datadir}/mkspecs/features/%{name}.prf
|
|
|
177266f |
|
|
|
6d8e0c2 |
%files qt5
|
|
|
6d8e0c2 |
%license licenses/*
|
|
|
6d8e0c2 |
%doc README.TXT
|
|
|
6d8e0c2 |
# Caution! do not include any unversioned .so symlink (belongs to -devel)
|
|
|
6d8e0c2 |
%{_qt5_libdir}/libQt5Solutions_LockedFile*.so.*
|
|
|
6d8e0c2 |
|
|
|
6d8e0c2 |
%files qt5-devel
|
|
|
6d8e0c2 |
%doc doc/html/ example/
|
|
|
6d8e0c2 |
%{_qt5_headerdir}/QtSolutions/
|
|
|
6d8e0c2 |
%{_qt5_libdir}/libQt5Solutions_LockedFile*.so
|
|
|
6d8e0c2 |
%{_qt5_datadir}/mkspecs/features/%{name}.prf
|
|
|
42c11c0 |
|
|
Fabio Alessandro Locati |
5467f76 |
|
|
|
6d8e0c2 |
%changelog
|
|
|
0ae9efe |
* Sun Apr 26 2015 Raphael Groner <projects.rg@smart.ms> - 2.4-13
|
|
|
0ae9efe |
- readd lost patch
|
|
|
0ae9efe |
|
|
|
0ae9efe |
* Sat Apr 25 2015 Raphael Groner <projects.rg@smart.ms> - 2.4-12
|
|
|
6d8e0c2 |
- add Qt5 build
|
|
|
6d8e0c2 |
- use latest commit of dedicated source folder
|
|
|
6d8e0c2 |
- remove upstreamed patch
|
|
|
6d8e0c2 |
- replace buildroot macro
|
|
|
6d8e0c2 |
- remove deprecated spec entries
|
|
|
6d8e0c2 |
|
|
|
0ae9efe |
-* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-11
|
|
|
0ae9efe |
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
0ae9efe |
* Thu Aug 14 2014 Fabio Alessandro Locati <fabiolocati@gmail.com> - 2.4-10
|
|
|
0ae9efe |
- Fix conflicting license files
|
|
|
0ae9efe |
|
|
|
0ae9efe |
* Thu Aug 14 2014 Fabio Alessandro Locati <fabiolocati@gmail.com> - 2.4-9
|
|
|
0ae9efe |
- Update to Digia's repository
|
|
Fabio Alessandro Locati |
ff71277 |
|
|
|
5c55383 |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-8
|
|
|
5c55383 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
5c55383 |
|
|
|
1ec03c3 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-7
|
|
|
1ec03c3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
1ec03c3 |
|
|
|
e8a4919 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-6
|
|
|
e8a4919 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
e8a4919 |
|
|
|
b3444c6 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-5
|
|
|
b3444c6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
b3444c6 |
|
|
|
23c54b5 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-4
|
|
|
23c54b5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
23c54b5 |
|
|
|
e0dfc30 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-3
|
|
|
e0dfc30 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
e0dfc30 |
|
|
|
177266f |
* Fri Apr 16 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> 2.4-2
|
|
|
177266f |
- Remove unnecessary linkage to libQtGui
|
|
|
177266f |
|
|
|
177266f |
* Thu Apr 15 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> 2.4-1
|
|
|
177266f |
- Initial Fedora package.
|