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++.spec.in 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. Summary: @DESCRIPTION@
  2. Name: @PACKAGE_NAME@
  3. Version: @VERSION@
  4. Release: @BUILD_NUMBER@.@DISTRO@
  5. License: LGPL
  6. Group: Development/Libraries/C++
  7. Source0: %{name}-%{version}.tar.gz
  8. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  9. BuildRequires: which, pkgconfig, gnupg, expect, git, make, automake, autoconf, rpm-build, binutils-devel, gcc-c++, cppunit-devel, doxygen, graphviz, java-openjdk @RPM_BUILD_DEPEND@ @RPM_DEPEND_IFEXISTS@
  10. #### os dependent definitions ####
  11. %if 0%{?suse_version} || 0%{?sles_version}
  12. BuildRequires: lsb-release
  13. %else
  14. %if 0%{?mageia}
  15. BuildRequires: rpm-sign, lsb-release
  16. %else
  17. BuildRequires: rpm-sign, redhat-lsb
  18. %global debug_package %{nil}
  19. %endif
  20. %endif
  21. %if ! 0%{?centos}
  22. BuildRequires: mscgen
  23. %endif
  24. %if 0%{?mageia}
  25. BuildRequires: libtool, libltdl-devel
  26. %else
  27. BuildRequires: libtool, libtool-ltdl-devel
  28. %endif
  29. %description
  30. @README@
  31. This package contains only the shared libraries required at runtime.
  32. %prep
  33. %setup -q
  34. ./configure --prefix=/usr \
  35. --sysconfdir=/etc \
  36. --docdir=/usr/share/doc/packages/@PACKAGE_NAME@ \
  37. --libdir=/usr/%_lib
  38. %build
  39. make
  40. %install
  41. DESTDIR=$RPM_BUILD_ROOT make install
  42. %clean
  43. rm -rf $RPM_BUILD_ROOT
  44. %files
  45. %defattr(-,root,root,-)
  46. /usr/%_lib/*.so.*
  47. %doc
  48. /usr/share/doc/packages/@PACKAGE_NAME@/AUTHORS
  49. /usr/share/doc/packages/@PACKAGE_NAME@/COPYING
  50. /usr/share/doc/packages/@PACKAGE_NAME@/ChangeLog
  51. /usr/share/doc/packages/@PACKAGE_NAME@/INSTALL
  52. /usr/share/doc/packages/@PACKAGE_NAME@/NEWS
  53. /usr/share/doc/packages/@PACKAGE_NAME@/README.md
  54. %package devel
  55. Summary: @DESCRIPTION@
  56. Group: Development/Libraries/C++
  57. Requires: @PACKAGE_NAME@ = @VERSION@ @RPM_BUILD_DEPEND@
  58. %description devel
  59. @README@
  60. This Package contains all files required for developement.
  61. %files devel
  62. %defattr(-,root,root,-)
  63. /usr/%_lib/*.so
  64. /usr/%_lib/*.a
  65. /usr/%_lib/*.la
  66. /usr/%_lib/pkgconfig
  67. /usr/include/*
  68. %doc
  69. /usr/share/doc/packages/@PACKAGE_NAME@/html
  70. /usr/share/doc/packages/@PACKAGE_NAME@/examples
  71. %changelog