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.

80 lines
2.4 KiB

  1. Name: log4cplus
  2. Version: 1.1.3
  3. Release: 1
  4. Summary: log4cplus, C++ logging library
  5. License: Apache
  6. Group: Development/Libraries
  7. Vendor: log4cplus project
  8. Packager: Yusuke SATO <y-sato@y-sa.to>
  9. Url: http://log4cplus.sourceforge.net/
  10. Source: %name-%version.tar.gz
  11. Prefix: %_prefix
  12. BuildRoot: %_tmppath/%name-%version-root
  13. %description
  14. log4cplus is a simple to use C++ logging API providing thread-safe,
  15. flexible, and arbitrarily granular control over log management and
  16. configuration. It is modeled after the Java log4j API.
  17. %package devel
  18. Summary: log4cplus headers, static libraries
  19. Group: Development/Libraries
  20. Requires: %name = %version
  21. %description devel
  22. log4cplus is a simple to use C++ logging API providing thread-safe,
  23. flexible, and arbitrarily granular control over log management and
  24. configuration. It is modeled after the Java log4j API.
  25. %prep
  26. rm -rf $RPM_BUILD_ROOT
  27. %setup
  28. ./configure --prefix=%{prefix} --with-working-locale CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS"
  29. %build
  30. make
  31. %install
  32. rm -rf $RPM_BUILD_ROOT
  33. make prefix=$RPM_BUILD_ROOT%{prefix} install
  34. mkdir -p $RPM_BUILD_ROOT%{prefix}/include/
  35. cp -rp include/log4cplus $RPM_BUILD_ROOT%{prefix}/include/
  36. rm -f $RPM_BUILD_ROOT%{prefix}/include/log4cplus/config/stamp-*
  37. rm -f $RPM_BUILD_ROOT%{prefix}/include/log4cplus/config/*.in
  38. rm -f $RPM_BUILD_ROOT%{prefix}/include/log4cplus/stamp-*
  39. rm -f $RPM_BUILD_ROOT%{prefix}/include/log4cplus/config/macosx.h
  40. rm -f $RPM_BUILD_ROOT%{prefix}/include/log4cplus/config/win32.h
  41. rm -f $RPM_BUILD_ROOT%{prefix}/include/log4cplus/config/windowsh-inc.h
  42. rm -f $RPM_BUILD_ROOT%{prefix}/include/log4cplus/internal/cygwin-win32.h
  43. rm -f $RPM_BUILD_ROOT%{prefix}/include/log4cplus/thread/impl/syncprims-win32.h
  44. find %{buildroot} -name .svn -type d -exec find '{}' -delete \;
  45. find %{buildroot} -name "*.in" -delete
  46. %clean
  47. rm -rf $RPM_BUILD_ROOT
  48. %files
  49. %defattr(-,root,root,755)
  50. %attr(755,root,root) %prefix/lib/lib*.so*
  51. %attr(644,root,root) %prefix/lib/*.la
  52. %files devel
  53. %defattr(-,root,root,755)
  54. %prefix/include/log4cplus/*.h
  55. %prefix/include/log4cplus/helpers/*.h
  56. %prefix/include/log4cplus/spi/*.h
  57. %prefix/include/log4cplus/boost/*.hxx
  58. %prefix/include/log4cplus/config.hxx
  59. %prefix/include/log4cplus/config/defines.hxx
  60. %prefix/include/log4cplus/internal/*.h
  61. %prefix/include/log4cplus/thread/impl/*.h
  62. %prefix/include/log4cplus/thread/*.h
  63. %attr(644,root,root)
  64. %prefix/lib/*.a
  65. %prefix/lib/pkgconfig/log4cplus.pc