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.

125 lines
3.9 KiB

  1. Name: log4cplus
  2. Version: 1.1.3
  3. Release: 1%{?dist}
  4. Summary: log4cplus, C++ logging library
  5. License: Apache
  6. Group: Development/Libraries
  7. URL: http://log4cplus.sourceforge.net/
  8. Source0: http://downloads.sourceforge.net/project/log4cplus/log4cplus-stable/1.1.3/log4cplus-1.1.3.tar.gz
  9. BuildArch: noarch
  10. BuildRequires: mingw32-filesystem >= 95
  11. BuildRequires: mingw32-gcc
  12. BuildRequires: mingw32-binutils
  13. BuildRequires: mingw32-gettext
  14. BuildRequires: mingw32-win-iconv
  15. BuildRequires: mingw32-zlib
  16. BuildRequires: mingw64-filesystem >= 95
  17. BuildRequires: mingw64-gcc
  18. BuildRequires: mingw64-binutils
  19. BuildRequires: mingw64-gettext
  20. BuildRequires: mingw64-win-iconv
  21. BuildRequires: mingw64-zlib
  22. %description
  23. log4cplus is a simple to use C++ logging API providing thread-safe,
  24. flexible, and arbitrarily granular control over log management and
  25. configuration. It is modeled after the Java log4j API.
  26. # Strip removes essential information from the .dll.a file, so disable it
  27. %define __strip /bin/true
  28. # Win32
  29. %package -n mingw32-log4cplus
  30. Summary: MinGW compiled log4cplus library for the Win32 target
  31. %description -n mingw32-log4cplus
  32. MinGW compiled log4cplus library for the Win32 target
  33. %package -n mingw32-log4cplus-devel
  34. Summary: Headers for the MinGW compiled log4cplus library for the Win32 target
  35. %description -n mingw32-log4cplus-devel
  36. Headers for the MinGW compiled log4cplus library for the Win32 target
  37. # Win64
  38. %package -n mingw64-log4cplus
  39. Summary: MinGW compiled log4cplus library for the Win64 target
  40. %description -n mingw64-log4cplus
  41. MinGW compiled log4cplus library for the Win64 target
  42. %package -n mingw64-log4cplus-devel
  43. Summary: Headers for the MinGW compiled log4cplus library for the Win64 target
  44. %description -n mingw64-log4cplus-devel
  45. Headers for the MinGW compiled log4cplus library for the Win64 target
  46. %prep
  47. %setup -q -n log4cplus-%{version}
  48. %build
  49. %mingw_configure
  50. %mingw_make %{?_smp_mflags}
  51. %install
  52. rm -rf $RPM_BUILD_ROOT
  53. %mingw_make_install DESTDIR=$RPM_BUILD_ROOT
  54. find $RPM_BUILD_ROOT -name "*.la" -delete
  55. find $RPM_BUILD_ROOT -name "stamp-*" -delete
  56. find $RPM_BUILD_ROOT -name "*.in" -delete
  57. find $RPM_BUILD_ROOT -name macosx.h -delete
  58. find $RPM_BUILD_ROOT -name windowsh-inc.h -delete
  59. find $RPM_BUILD_ROOT -name cygwin-win32.h -delete
  60. find $RPM_BUILD_ROOT -name syncprims-win32.h -delete
  61. # find $RPM_BUILD_ROOT -name liblog4cplus.a -delete
  62. find $RPM_BUILD_ROOT -name .svn -type d -exec find '{}' -delete \;
  63. # Win32
  64. %files -n mingw32-log4cplus
  65. %{mingw32_bindir}/lib*.dll
  66. %files -n mingw32-log4cplus-devel
  67. %defattr(-,root,root,755)
  68. %{mingw32_includedir}/log4cplus/*.h
  69. %{mingw32_includedir}/log4cplus/helpers/*.h
  70. %{mingw32_includedir}/log4cplus/spi/*.h
  71. %{mingw32_includedir}/log4cplus/boost/*.hxx
  72. %{mingw32_includedir}/log4cplus/config.hxx
  73. %{mingw32_includedir}/log4cplus/config/defines.hxx
  74. %{mingw32_includedir}/log4cplus/config/win32.h
  75. %{mingw32_includedir}/log4cplus/internal/*.h
  76. %{mingw32_includedir}/log4cplus/thread/impl/*.h
  77. %{mingw32_includedir}/log4cplus/thread/*.h
  78. %attr(644,root,root)
  79. %{mingw32_libdir}/*.dll.a
  80. %{mingw32_libdir}/liblog4cplus.a
  81. %{mingw32_libdir}/pkgconfig/log4cplus.pc
  82. # Win64
  83. %files -n mingw64-log4cplus
  84. %{mingw64_bindir}/lib*.dll
  85. %files -n mingw64-log4cplus-devel
  86. %defattr(-,root,root,755)
  87. %{mingw64_includedir}/log4cplus/*.h
  88. %{mingw64_includedir}/log4cplus/helpers/*.h
  89. %{mingw64_includedir}/log4cplus/spi/*.h
  90. %{mingw64_includedir}/log4cplus/boost/*.hxx
  91. %{mingw64_includedir}/log4cplus/config.hxx
  92. %{mingw64_includedir}/log4cplus/config/defines.hxx
  93. %{mingw64_includedir}/log4cplus/config/win32.h
  94. %{mingw64_includedir}/log4cplus/internal/*.h
  95. %{mingw64_includedir}/log4cplus/thread/impl/*.h
  96. %{mingw64_includedir}/log4cplus/thread/*.h
  97. %attr(644,root,root)
  98. %{mingw64_libdir}/*.dll.a
  99. %{mingw64_libdir}/liblog4cplus.a
  100. %{mingw64_libdir}/pkgconfig/log4cplus.pc
  101. %changelog
  102. * Wed Aug 14 2013 John Smits <japsmits@gmail.com> - 1.1.1-1
  103. - Initial release