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.

65 lines
1.7 KiB

  1. Name: log4cplus
  2. Version: 1.1.0
  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. %clean
  40. rm -rf $RPM_BUILD_ROOT
  41. %files
  42. %defattr(-,root,root,755)
  43. %attr(755,root,root) %prefix/lib/lib*.so*
  44. %attr(644,root,root) %prefix/lib/*.la
  45. %files devel
  46. %defattr(-,root,root,755)
  47. %prefix/include/log4cplus/*.h
  48. %prefix/include/log4cplus/helpers/*.h
  49. %prefix/include/log4cplus/spi/*.h
  50. %attr(644,root,root) %prefix/lib/*.a