|
|
e67c464 |
%global commit0 5a07df503a6f01280f493cbcc2aace462b9dee57
|
|
|
e67c464 |
%global commitdate 20150629
|
|
|
e67c464 |
|
|
|
e67c464 |
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
|
|
|
6d8e0c2 |
|
|
|
177266f |
Summary: QFile extension with advisory locking functions
|
|
|
177266f |
Name: qtlockedfile
|
|
|
177266f |
Version: 2.4
|
|
|
df04fcf |
Release: 24.%{commitdate}git%{shortcommit0}%{?dist}
|
|
|
6d8e0c2 |
|
|
|
177266f |
License: GPLv3 or LGPLv2 with exceptions
|
|
|
6d8e0c2 |
URL: http://doc.qt.digia.com/solutions/4/qtlockedfile/qtlockedfile.html
|
|
|
e67c464 |
Source0: https://github.com/qtproject/qt-solutions/archive/%{commit0}.tar.gz#/%{name}-%{commit0}.tar.gz
|
|
|
177266f |
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
|
|
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
|
|
|
177266f |
Summary: Development files for %{name}
|
|
|
177266f |
Requires: %{name} = %{version}-%{release}
|
|
|
177266f |
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
|
|
|
e67c464 |
%setup -qn qt-solutions-%{commit0}/%{name}
|
|
|
e67c464 |
# use versioned soname
|
|
|
6d8e0c2 |
sed -i s,head,%{version}, common.pri
|
|
|
e67c464 |
# do not build example source
|
|
|
e67c464 |
sed -i /example/d %{name}.pro
|
|
|
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}
|
|
|
177266f |
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}
|
|
|
e67c464 |
cp -ap lib/* %{buildroot}%{_libdir}
|
|
|
177266f |
|
|
|
177266f |
# headers
|
|
|
e67c464 |
mkdir -p %{buildroot}%{_qt4_headerdir}/QtSolutions %{buildroot}%{_qt5_headerdir}
|
|
|
e67c464 |
cp -ap src/qtlockedfile.h src/QtLockedFile %{buildroot}%{_qt4_headerdir}/QtSolutions
|
|
|
e67c464 |
cp -ap %{buildroot}%{_qt4_headerdir}/QtSolutions %{buildroot}%{_qt5_headerdir}
|
|
|
177266f |
|
|
Rex Dieter |
c8fb34e |
install -p -D -m644 %{SOURCE1} %{buildroot}%{_qt4_datadir}/mkspecs/features/qtlockedfile.prf
|
|
Rex Dieter |
c8fb34e |
install -p -D -m644 %{SOURCE1} %{buildroot}%{_qt5_archdatadir}/mkspecs/features/qtlockedfile.prf
|
|
Rex Dieter |
c8fb34e |
|
|
|
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
|
|
Rex Dieter |
c8fb34e |
%{_qt4_datadir}/mkspecs/features/qtlockedfile.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
|
|
Rex Dieter |
c8fb34e |
%{_qt5_archdatadir}/mkspecs/features/qtlockedfile.prf
|
|
|
42c11c0 |
|
|
Fabio Alessandro Locati |
5467f76 |
|
|
|
177266f |
%changelog
|
|
|
df04fcf |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-24.20150629git5a07df5
|
|
|
df04fcf |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
df04fcf |
|
|
|
5941c0d |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-23.20150629git5a07df5
|
|
|
5941c0d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
5941c0d |
|
|
|
6390b95 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-22.20150629git5a07df5
|
|
|
6390b95 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
6390b95 |
|
|
|
698d30e |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.4-21.20150629git5a07df5
|
|
|
698d30e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
698d30e |
|
|
|
617139c |
* Wed Jan 20 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 2.4-20.20160120git5a07df5
|
|
Fabio Alessandro Locati |
6cb0c6c |
- Rebuild
|
|
Fabio Alessandro Locati |
6cb0c6c |
|
|
|
449bda1 |
* Sun Oct 11 2015 Raphael Groner <projects.rg@smart.ms> - 2.4-19.20150629git5a07df5
|
|
|
449bda1 |
- rebuilt
|
|
|
449bda1 |
|
|
|
e67c464 |
* Mon Jul 27 2015 Raphael Groner <projects.rg@smart.ms> - 2.4-18.20150629git5a07df5
|
|
|
e67c464 |
- apply Qt5 fixes of upstream (rhbz#1239869)
|
|
|
e67c464 |
- use sources from github instead of gitlab
|
|
|
e67c464 |
- remove obsoleted patches
|
|
|
e67c464 |
- simplify installation of header files
|
|
|
e67c464 |
|
|
|
e1f8666 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-17
|
|
|
e1f8666 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
e1f8666 |
|
|
Rex Dieter |
d6ed913 |
* Wed May 06 2015 Rex Dieter <rdieter@fedoraproject.org> 2.4-16
|
|
Rex Dieter |
d6ed913 |
- qtlockedfile.prf: use versioned lib for linking
|
|
Rex Dieter |
d6ed913 |
|
|
Rex Dieter |
9ce0fca |
* Fri May 01 2015 Rex Dieter <rdieter@fedoraproject.org> 2.4-15
|
|
Rex Dieter |
9ce0fca |
- qtlockedfile.prf: use QT_INSTALL_HEADERS instead, drop DEPENDPATH
|
|
Rex Dieter |
9ce0fca |
|
|
Rex Dieter |
c8fb34e |
* Fri May 01 2015 Rex Dieter <rdieter@fedoraproject.org> 2.4-14
|
|
Rex Dieter |
c8fb34e |
- fix/simplify qt5 mkspecs/features install path
|
|
Rex Dieter |
c8fb34e |
|
|
|
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 |
|
|
|
0fe9df3 |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-11
|
|
|
9d68e2c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
9d68e2c |
|
|
|
617139c |
* Thu Aug 14 2014 Fabio Alessandro Locati <fale@fedoraproject.org> - 2.4-10
|
|
|
0ae9efe |
- Fix conflicting license files
|
|
|
0ae9efe |
|
|
|
617139c |
* Thu Aug 14 2014 Fabio Alessandro Locati <fale@fedoraproject.org> - 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.
|