You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

127 lines
4.3KB

  1. Name: libpff
  2. Version: @VERSION@
  3. Release: 1
  4. Summary: Library to access the Personal Folder File (OST, PAB and PST) format
  5. Group: System Environment/Libraries
  6. License: LGPL
  7. Source: %{name}-%{version}.tar.gz
  8. URL: https://github.com/libyal/libpff
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  10. @libpff_spec_requires@ @ax_libbfio_spec_requires@ @ax_libcdata_spec_requires@ @ax_libcerror_spec_requires@ @ax_libcfile_spec_requires@ @ax_libclocale_spec_requires@ @ax_libcnotify_spec_requires@ @ax_libcpath_spec_requires@ @ax_libcsplit_spec_requires@ @ax_libcthreads_spec_requires@ @ax_libfcache_spec_requires@ @ax_libfdata_spec_requires@ @ax_libfdatetime_spec_requires@ @ax_libfguid_spec_requires@ @ax_libfmapi_spec_requires@ @ax_libfvalue_spec_requires@ @ax_libfwnt_spec_requires@ @ax_libuna_spec_requires@ @ax_zlib_spec_requires@
  11. BuildRequires: gcc @ax_libbfio_spec_build_requires@ @ax_libcdata_spec_build_requires@ @ax_libcerror_spec_build_requires@ @ax_libcfile_spec_build_requires@ @ax_libclocale_spec_build_requires@ @ax_libcnotify_spec_build_requires@ @ax_libcpath_spec_build_requires@ @ax_libcsplit_spec_build_requires@ @ax_libcthreads_spec_build_requires@ @ax_libfcache_spec_build_requires@ @ax_libfdata_spec_build_requires@ @ax_libfdatetime_spec_build_requires@ @ax_libfguid_spec_build_requires@ @ax_libfmapi_spec_build_requires@ @ax_libfvalue_spec_build_requires@ @ax_libfwnt_spec_build_requires@ @ax_libuna_spec_build_requires@ @ax_zlib_spec_build_requires@
  12. %description -n libpff
  13. Library to access the Personal Folder File (OST, PAB and PST) format
  14. %package -n libpff-static
  15. Summary: Library to access the Personal Folder File (OST, PAB and PST) format
  16. Group: Development/Libraries
  17. Requires: libpff = %{version}-%{release}
  18. %description -n libpff-static
  19. Static library version of libpff.
  20. %package -n libpff-devel
  21. Summary: Header files and libraries for developing applications for libpff
  22. Group: Development/Libraries
  23. Requires: libpff = %{version}-%{release}
  24. %description -n libpff-devel
  25. Header files and libraries for developing applications for libpff.
  26. %package -n libpff-python2
  27. Obsoletes: libpff-python < %{version}
  28. Provides: libpff-python = %{version}
  29. Summary: Python 2 bindings for libpff
  30. Group: System Environment/Libraries
  31. Requires: libpff = %{version}-%{release} python2
  32. BuildRequires: python2-devel
  33. %description -n libpff-python2
  34. Python 2 bindings for libpff
  35. %package -n libpff-python3
  36. Summary: Python 3 bindings for libpff
  37. Group: System Environment/Libraries
  38. Requires: libpff = %{version}-%{release} python3
  39. BuildRequires: python3-devel
  40. %description -n libpff-python3
  41. Python 3 bindings for libpff
  42. %package -n libpff-tools
  43. Summary: Several tools for reading Personal Folder Files (OST, PAB and PST)
  44. Group: Applications/System
  45. Requires: libpff = %{version}-%{release}
  46. %description -n libpff-tools
  47. Several tools for reading Personal Folder Files (OST, PAB and PST)
  48. %prep
  49. %setup -q
  50. %build
  51. %configure --prefix=/usr --libdir=%{_libdir} --mandir=%{_mandir} --enable-python2 --enable-python3
  52. make %{?_smp_mflags}
  53. %install
  54. rm -rf %{buildroot}
  55. %make_install
  56. %clean
  57. rm -rf %{buildroot}
  58. %post -p /sbin/ldconfig
  59. %postun -p /sbin/ldconfig
  60. %files -n libpff
  61. %defattr(644,root,root,755)
  62. %license COPYING COPYING.LESSER
  63. %doc AUTHORS README
  64. %attr(755,root,root) %{_libdir}/*.so.*
  65. %files -n libpff-static
  66. %defattr(644,root,root,755)
  67. %license COPYING COPYING.LESSER
  68. %doc AUTHORS README
  69. %attr(755,root,root) %{_libdir}/*.a
  70. %files -n libpff-devel
  71. %defattr(644,root,root,755)
  72. %license COPYING COPYING.LESSER
  73. %doc AUTHORS README
  74. %{_libdir}/*.la
  75. %{_libdir}/*.so
  76. %{_libdir}/pkgconfig/libpff.pc
  77. %{_includedir}/*
  78. %{_mandir}/man3/*
  79. %files -n libpff-python2
  80. %defattr(644,root,root,755)
  81. %license COPYING COPYING.LESSER
  82. %doc AUTHORS README
  83. %{_libdir}/python2*/site-packages/*.a
  84. %{_libdir}/python2*/site-packages/*.la
  85. %{_libdir}/python2*/site-packages/*.so
  86. %files -n libpff-python3
  87. %defattr(644,root,root,755)
  88. %license COPYING COPYING.LESSER
  89. %doc AUTHORS README
  90. %{_libdir}/python3*/site-packages/*.a
  91. %{_libdir}/python3*/site-packages/*.la
  92. %{_libdir}/python3*/site-packages/*.so
  93. %files -n libpff-tools
  94. %defattr(644,root,root,755)
  95. %license COPYING COPYING.LESSER
  96. %doc AUTHORS README
  97. %attr(755,root,root) %{_bindir}/*
  98. %{_mandir}/man1/*
  99. %changelog
  100. * @SPEC_DATE@ Joachim Metz <joachim.metz@gmail.com> @VERSION@-1
  101. - Auto-generated