C++ Library containing a lot of needful things: Stack Trace, Command Line Parser, Resource Handling, Configuration Files, Unix Command Execution, Directories, Regular Expressions, Tokenizer, Function Trace, Standard Extensions.
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.

mrw-c++-minimal.spec.in 2.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. ## @file
  2. ##
  3. ## $Id$
  4. ##
  5. ## $Date$
  6. ## $Author$
  7. ##
  8. ## @copy © Marc Wäckerlin
  9. ## @license LGPL, see file <a href="license.html">COPYING</a>
  10. ##
  11. # rpmbuild -bb --clean @PACKAGE_NAME@.spec
  12. Name: @PACKAGE_NAME@
  13. Version: @PACKAGE_VERSION@
  14. Release: 1
  15. License: LGPL
  16. Group: Development/Libraries/C++
  17. Summary: dummy
  18. %description
  19. dummy
  20. %package minimal
  21. Summary: MRW's C++ Class Library (minimal release, no debugging features)
  22. Group: Development/Libraries/C++
  23. URL: http://marc.waeckerlin.org/mrw-c++/index.html
  24. Source0: @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz
  25. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
  26. Prefix: /usr
  27. Provides: @PACKAGE_NAME@
  28. %description minimal
  29. @README@
  30. This package contains only the shared libraries required at runtime,
  31. linked with minimal feature, no logging, no stacktrace, no development
  32. support at all. This package can be used e.g. for the videorekorder at
  33. http://marc.waeckerlin.org/videorekorder/index.html
  34. %prep
  35. %setup -q
  36. CXXFLAGS="-O3" ./configure --prefix=/usr \
  37. --datadir=/usr/share/doc/packages \
  38. --disable-threads --disable-autofntrace \
  39. --disable-log4cxx --disable-ltdl --disable-stacktrace \
  40. --disable-doxygen --disable-dot \
  41. %ifarch x86_64
  42. --libdir=/usr/lib64
  43. %else
  44. --libdir=/usr/lib
  45. %endif
  46. %build
  47. make
  48. %install
  49. DESTDIR=$RPM_BUILD_ROOT make all install
  50. rm -r $RPM_BUILD_ROOT/usr/include/mrw
  51. rmdir $RPM_BUILD_ROOT/usr/include
  52. rm $RPM_BUILD_ROOT/usr/lib/libmrw-mt*
  53. rm $RPM_BUILD_ROOT/usr/lib/libmrw.la
  54. rm $RPM_BUILD_ROOT/usr/lib/libmrw.a
  55. rm $RPM_BUILD_ROOT/usr/share/doc/packages/@PACKAGE_NAME@/INSTALL
  56. rm -r $RPM_BUILD_ROOT/usr/share/doc/packages/@PACKAGE_NAME@/doc
  57. rm $RPM_BUILD_ROOT/usr/share/doc/packages/@PACKAGE_NAME@/mrw-c++.spec
  58. rm -r $RPM_BUILD_ROOT/usr/share/doc/packages/@PACKAGE_NAME@/examples
  59. %clean
  60. rm -rf $RPM_BUILD_ROOT
  61. %files minimal
  62. %defattr(-,root,root,-)
  63. /usr/lib/libmrw.so
  64. /usr/lib/libmrw.so.@MAJOR@
  65. /usr/lib/libmrw.so.@PACKAGE_VERSION@
  66. /usr/share/doc/packages/@PACKAGE_NAME@/COPYING
  67. /usr/share/doc/packages/@PACKAGE_NAME@/README
  68. /usr/share/doc/packages/@PACKAGE_NAME@/AUTHORS
  69. /usr/share/doc/packages/@PACKAGE_NAME@/NEWS
  70. /usr/share/doc/packages/@PACKAGE_NAME@/ChangeLog
  71. %changelog
  72. @CHANGE_LOG@