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.

226 lines
7.3 KiB

## @file
##
## $Id$
##
## $Date$
## $Author$
##
18 years ago
## @copy © Marc Wäckerlin
## @license LGPL, see file <a href="license.html">COPYING</a>
##
21 years ago
# rpmbuild -bb --clean @PACKAGENAME@.spec
18 years ago
BuildRequires: gcc-c++ doxygen graphviz cppunit-devel boost-devel log4cxx-devel freefont te_latex
20 years ago
Summary: MRW's C++ Class Library, facilities for modern C++ programming
21 years ago
Name: @PACKAGENAME@
Version: @MAJOR@.@MINOR@.@LEAST@
21 years ago
Release: 1
License: LGPL
Group: Development/Libraries/C++
URL: http://marc.waeckerlin.org/mrw-c++/index.html
18 years ago
Source0: %{name}-%{version}.tar.gz
21 years ago
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Prefix: /usr
Requires: binutils
Requires: log4cxx
21 years ago
%description
@README@
This package contains only the shared libraries required at runtime.
%prep
%setup -q
18 years ago
CXXFLAGS="-O3" ./configure --prefix=$RPM_BUILD_ROOT/usr \
--datadir=$RPM_BUILD_ROOT/usr/share/doc/packages \
%ifarch x86_64
--libdir=/usr/lib64
%else
--libdir=/usr/lib
%endif
21 years ago
%build
make
21 years ago
%install
make install
find "$RPM_BUILD_ROOT" -name '*.la' | xargs perl -pi -e 's#'"${RPM_BUILD_ROOT//+/\\+}"'##g'
21 years ago
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
18 years ago
%ifarch x86_64
/usr/lib64/libmrw.so
/usr/lib64/libmrw.so.@MAJOR@
/usr/lib64/libmrw.so.@MAJOR@.@MINOR@.@LEAST@
/usr/lib64/libmrwexcstderr.so
/usr/lib64/libmrwexcstderr.so.@MAJOR@
/usr/lib64/libmrwexcstderr.so.@MAJOR@.@MINOR@.@LEAST@
/usr/lib64/libmrwexclog4cxx.so
/usr/lib64/libmrwexclog4cxx.so.@MAJOR@
/usr/lib64/libmrwexclog4cxx.so.@MAJOR@.@MINOR@.@LEAST@
/usr/lib64/libmrwautofunctiontracelog4cxx.so
/usr/lib64/libmrwautofunctiontracelog4cxx.so.@MAJOR@
/usr/lib64/libmrwautofunctiontracelog4cxx.so.@MAJOR@.@MINOR@.@LEAST@
/usr/lib64/libmrwautofunctiontracestdlog.so
/usr/lib64/libmrwautofunctiontracestdlog.so.@MAJOR@
/usr/lib64/libmrwautofunctiontracestdlog.so.@MAJOR@.@MINOR@.@LEAST@
/usr/lib64/libmrwlog4cxxconfiguration.so
/usr/lib64/libmrwlog4cxxconfiguration.so.@MAJOR@
/usr/lib64/libmrwlog4cxxconfiguration.so.@MAJOR@.@MINOR@.@LEAST@
%else
/usr/lib/libmrw.so
/usr/lib/libmrw.so.@MAJOR@
/usr/lib/libmrw.so.@MAJOR@.@MINOR@.@LEAST@
/usr/lib/libmrwexcstderr.so
/usr/lib/libmrwexcstderr.so.@MAJOR@
/usr/lib/libmrwexcstderr.so.@MAJOR@.@MINOR@.@LEAST@
/usr/lib/libmrwexclog4cxx.so
/usr/lib/libmrwexclog4cxx.so.@MAJOR@
/usr/lib/libmrwexclog4cxx.so.@MAJOR@.@MINOR@.@LEAST@
/usr/lib/libmrwautofunctiontracelog4cxx.so
/usr/lib/libmrwautofunctiontracelog4cxx.so.@MAJOR@
/usr/lib/libmrwautofunctiontracelog4cxx.so.@MAJOR@.@MINOR@.@LEAST@
/usr/lib/libmrwautofunctiontracestdlog.so
/usr/lib/libmrwautofunctiontracestdlog.so.@MAJOR@
/usr/lib/libmrwautofunctiontracestdlog.so.@MAJOR@.@MINOR@.@LEAST@
/usr/lib/libmrwlog4cxxconfiguration.so
/usr/lib/libmrwlog4cxxconfiguration.so.@MAJOR@
/usr/lib/libmrwlog4cxxconfiguration.so.@MAJOR@.@MINOR@.@LEAST@
18 years ago
%endif
/usr/share/doc/packages/@PACKAGENAME@/COPYING
/usr/share/doc/packages/@PACKAGENAME@/README
/usr/share/doc/packages/@PACKAGENAME@/AUTHORS
/usr/share/doc/packages/@PACKAGENAME@/NEWS
/usr/share/doc/packages/@PACKAGENAME@/ChangeLog
%package mt
Summary: MRW's C++ Class Library (thread safe extensions)
Group: Development/Libraries/C++
Requires: @PACKAGENAME@ = @MAJOR@.@MINOR@.@LEAST@
Requires: boost
%description mt
@README@
This Package contains thread safe libraries.
%files mt
%defattr(-,root,root,-)
18 years ago
%ifarch x86_64
/usr/lib64/libmrw-mt.so
/usr/lib64/libmrw-mt.so.@MAJOR@
/usr/lib64/libmrw-mt.so.@MAJOR@.@MINOR@.@LEAST@
/usr/lib64/libmrwexcstderr-mt.so
/usr/lib64/libmrwexcstderr-mt.so.@MAJOR@
/usr/lib64/libmrwexcstderr-mt.so.@MAJOR@.@MINOR@.@LEAST@
/usr/lib64/libmrwexclog4cxx-mt.so
/usr/lib64/libmrwexclog4cxx-mt.so.@MAJOR@
/usr/lib64/libmrwexclog4cxx-mt.so.@MAJOR@.@MINOR@.@LEAST@
/usr/lib64/libmrwautofunctiontracelog4cxx-mt.so
/usr/lib64/libmrwautofunctiontracelog4cxx-mt.so.@MAJOR@
/usr/lib64/libmrwautofunctiontracelog4cxx-mt.so.@MAJOR@.@MINOR@.@LEAST@
/usr/lib64/libmrwautofunctiontracestdlog-mt.so
/usr/lib64/libmrwautofunctiontracestdlog-mt.so.@MAJOR@
/usr/lib64/libmrwautofunctiontracestdlog-mt.so.@MAJOR@.@MINOR@.@LEAST@
/usr/lib64/libmrwlog4cxxconfiguration-mt.so
/usr/lib64/libmrwlog4cxxconfiguration-mt.so.@MAJOR@
/usr/lib64/libmrwlog4cxxconfiguration-mt.so.@MAJOR@.@MINOR@.@LEAST@
%else
/usr/lib/libmrw-mt.so
/usr/lib/libmrw-mt.so.@MAJOR@
/usr/lib/libmrw-mt.so.@MAJOR@.@MINOR@.@LEAST@
/usr/lib/libmrwexcstderr-mt.so
/usr/lib/libmrwexcstderr-mt.so.@MAJOR@
/usr/lib/libmrwexcstderr-mt.so.@MAJOR@.@MINOR@.@LEAST@
/usr/lib/libmrwexclog4cxx-mt.so
/usr/lib/libmrwexclog4cxx-mt.so.@MAJOR@
/usr/lib/libmrwexclog4cxx-mt.so.@MAJOR@.@MINOR@.@LEAST@
/usr/lib/libmrwautofunctiontracelog4cxx-mt.so
/usr/lib/libmrwautofunctiontracelog4cxx-mt.so.@MAJOR@
/usr/lib/libmrwautofunctiontracelog4cxx-mt.so.@MAJOR@.@MINOR@.@LEAST@
/usr/lib/libmrwautofunctiontracestdlog-mt.so
/usr/lib/libmrwautofunctiontracestdlog-mt.so.@MAJOR@
/usr/lib/libmrwautofunctiontracestdlog-mt.so.@MAJOR@.@MINOR@.@LEAST@
/usr/lib/libmrwlog4cxxconfiguration-mt.so
/usr/lib/libmrwlog4cxxconfiguration-mt.so.@MAJOR@
/usr/lib/libmrwlog4cxxconfiguration-mt.so.@MAJOR@.@MINOR@.@LEAST@
18 years ago
%endif
%package devel
Summary: MRW's C++ Class Library (development files)
Group: Development/Libraries/C++
Requires: @PACKAGENAME@ = @MAJOR@.@MINOR@.@LEAST@
Requires: @PACKAGENAME@-mt = @MAJOR@.@MINOR@.@LEAST@
Requires: gcc-c++ >= 3.0
%description devel
@README@
This Package contains all files required for developement.
%files devel
%defattr(-,root,root,-)
18 years ago
%ifarch x86_64
/usr/lib64/libmrw.a
/usr/lib64/libmrw.la
/usr/lib64/libmrwexcstderr.a
/usr/lib64/libmrwexcstderr.la
/usr/lib64/libmrwexclog4cxx.a
/usr/lib64/libmrwexclog4cxx.la
/usr/lib64/libmrw-mt.a
/usr/lib64/libmrw-mt.la
/usr/lib64/libmrwautofunctiontracelog4cxx-mt.a
/usr/lib64/libmrwautofunctiontracelog4cxx-mt.la
/usr/lib64/libmrwautofunctiontracelog4cxx.a
/usr/lib64/libmrwautofunctiontracelog4cxx.la
/usr/lib64/libmrwautofunctiontracestdlog-mt.a
/usr/lib64/libmrwautofunctiontracestdlog-mt.la
/usr/lib64/libmrwautofunctiontracestdlog.a
/usr/lib64/libmrwautofunctiontracestdlog.la
/usr/lib64/libmrwlog4cxxconfiguration.a
/usr/lib64/libmrwlog4cxxconfiguration.la
/usr/lib64/libmrwexclog4cxx-mt.a
/usr/lib64/libmrwexclog4cxx-mt.la
/usr/lib64/libmrwexcstderr-mt.a
/usr/lib64/libmrwexcstderr-mt.la
/usr/lib64/libmrwlog4cxxconfiguration-mt.a
/usr/lib64/libmrwlog4cxxconfiguration-mt.la
%else
/usr/lib/libmrw.a
/usr/lib/libmrw.la
/usr/lib/libmrwexcstderr.a
/usr/lib/libmrwexcstderr.la
/usr/lib/libmrwexclog4cxx.a
/usr/lib/libmrwexclog4cxx.la
/usr/lib/libmrw-mt.a
/usr/lib/libmrw-mt.la
/usr/lib/libmrwautofunctiontracelog4cxx-mt.a
/usr/lib/libmrwautofunctiontracelog4cxx-mt.la
/usr/lib/libmrwautofunctiontracelog4cxx.a
/usr/lib/libmrwautofunctiontracelog4cxx.la
/usr/lib/libmrwautofunctiontracestdlog-mt.a
/usr/lib/libmrwautofunctiontracestdlog-mt.la
/usr/lib/libmrwautofunctiontracestdlog.a
/usr/lib/libmrwautofunctiontracestdlog.la
/usr/lib/libmrwlog4cxxconfiguration.a
/usr/lib/libmrwlog4cxxconfiguration.la
/usr/lib/libmrwexclog4cxx-mt.a
/usr/lib/libmrwexclog4cxx-mt.la
/usr/lib/libmrwexcstderr-mt.a
/usr/lib/libmrwexcstderr-mt.la
/usr/lib/libmrwlog4cxxconfiguration-mt.a
/usr/lib/libmrwlog4cxxconfiguration-mt.la
18 years ago
%endif
/usr/include
/usr/share/doc/packages/@PACKAGENAME@/examples
/usr/share/doc/packages/@PACKAGENAME@/doc
/usr/share/doc/packages/@PACKAGENAME@/@PACKAGENAME@.spec
/usr/share/doc/packages/@PACKAGENAME@/INSTALL
21 years ago
%changelog
@CHANGE_LOG@