qtlockedfile-vl.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. Summary: QFile extension with advisory locking functions
  2. Name: qtlockedfile
  3. Version: 2.4
  4. Release: 7%{?_dist_release}
  5. Group: System Environment/Libraries
  6. License: GPLv3 or LGPLv2 with exceptions
  7. URL: http://qt.nokia.com/products/appdev/add-on-products/catalog/4/Utilities/qtlockedfile
  8. Source0: http://get.qt.nokia.com/qt/solutions/lgpl/%{name}-%{version}_1-opensource.tar.gz
  9. Source1: qtlockedfile.prf
  10. Patch0: qtlockedfile-dont-build-example.patch
  11. # Remove unnecessary linkage to libQtGui
  12. Patch1: qtlockedfile-dont-link-qtgui.patch
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  14. BuildRequires: qt4-devel
  15. %{?_qt4_version:Requires: qt4%{?_isa} >= %{_qt4_version}}
  16. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. Packager: shaolin
  19. %description
  20. This class extends the QFile class with inter-process file locking capabilities.
  21. If an application requires that several processes should access the same file,
  22. QtLockedFile can be used to easily ensure that only one process at a time is
  23. writing to the file, and that no process is writing to it while others are
  24. reading it.
  25. %package devel
  26. Summary: Development files for %{name}
  27. Group: Development/Libraries
  28. Requires: %{name} = %{version}-%{release}
  29. Requires: qt4-devel
  30. %description devel
  31. This package contains libraries and header files for developing applications
  32. that use QtLockedFile.
  33. %prep
  34. %setup -q -n %{name}-%{version}_1-opensource
  35. %patch0 -p1 -b .no-example
  36. %patch1 -p1 -b .dont-link-qtgui
  37. %build
  38. touch .licenseAccepted
  39. # Does not use GNU configure
  40. ./configure -library
  41. %{_qt4_qmake}
  42. make %{?_smp_mflags}
  43. %install
  44. rm -rf $RPM_BUILD_ROOT
  45. # libraries
  46. mkdir -p $RPM_BUILD_ROOT%{_qt4_libdir}
  47. cp -a lib/* $RPM_BUILD_ROOT%{_qt4_libdir}
  48. # headers
  49. mkdir -p $RPM_BUILD_ROOT%{_qt4_headerdir}/QtSolutions
  50. cp -a \
  51. src/qtlockedfile.h \
  52. src/QtLockedFile \
  53. $RPM_BUILD_ROOT%{_qt4_headerdir}/QtSolutions
  54. mkdir -p $RPM_BUILD_ROOT%{_qt4_datadir}/mkspecs/features
  55. cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_qt4_datadir}/mkspecs/features/
  56. %clean
  57. rm -rf $RPM_BUILD_ROOT
  58. %post -p /sbin/ldconfig
  59. %postun -p /sbin/ldconfig
  60. %files
  61. %defattr(-,root,root,-)
  62. %doc LGPL_EXCEPTION.txt LICENSE.* README.TXT
  63. %{_qt4_libdir}/lib*.so.*
  64. %files devel
  65. %defattr(-,root,root,-)
  66. %doc doc example
  67. %{_qt4_libdir}/lib*.so
  68. %{_qt4_headerdir}/QtSolutions/
  69. %{_qt4_datadir}/mkspecs/features/%{name}.prf
  70. %changelog
  71. * Thu Jan 9 2014 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.4-7
  72. - initial build for Vine Linux
  73. * Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-7
  74. - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
  75. * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-6
  76. - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
  77. * Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-5
  78. - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
  79. * Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-4
  80. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  81. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-3
  82. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  83. * Fri Apr 16 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> 2.4-2
  84. - Remove unnecessary linkage to libQtGui
  85. * Thu Apr 15 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> 2.4-1
  86. - Initial Fedora package.