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.
235 lines
7.7 KiB
235 lines
7.7 KiB
## @file |
|
## |
|
## $Id$ |
|
## |
|
## $Date$ |
|
## $Author$ |
|
## |
|
## @copy © Marc Wäckerlin |
|
## @license LGPL, see file <a href="license.html">COPYING</a> |
|
## |
|
|
|
# rpmbuild -bb --clean @PACKAGENAME@.spec |
|
BuildRequires: boost-devel log4cxx-devel ghostscript-library |
|
BuildRequires: gcc-c++ doxygen graphviz |
|
#%if 0%(?suse_version) >= 1030 |
|
BuildRequires: texlive-bin-latex cppunit-devel unixODBC-devel libxml2-devel freefont |
|
##%elseif 0%(?debian_version) |
|
##BuildRequires: libcppunit-dev unixodbc-dev libxml2-dev latex209-bin ttf-freefont |
|
#%else |
|
#BuildRequires: te_latex cppunit-devel unixODBC-devel libxml2-devel freefont |
|
#%endif |
|
Summary: MRW's C++ Class Library, facilities for modern C++ programming |
|
Name: @PACKAGENAME@ |
|
Version: @MAJOR@.@MINOR@.@LEAST@ |
|
Release: @RPMBUILD@ |
|
License: LGPL |
|
Group: Development/Libraries/C++ |
|
URL: http://marc.waeckerlin.org/mrw-c++/index.html |
|
Source0: %{name}-%{version}.tar.gz |
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
|
Prefix: /usr |
|
|
|
Requires: binutils |
|
Requires: log4cxx |
|
|
|
%description |
|
@README@ |
|
|
|
This package contains only the shared libraries required at runtime. |
|
|
|
%prep |
|
%setup -q |
|
CXXFLAGS="-O3" ./configure --prefix=/usr \ |
|
--datadir=/usr/share/doc/packages \ |
|
--enable-doxygen \ |
|
--libdir=/usr/lib |
|
# |
|
#%ifarch x86_64 |
|
# --libdir=/usr/lib64 |
|
#%else |
|
# --libdir=/usr/lib |
|
#%endif |
|
|
|
%build |
|
make |
|
|
|
%install |
|
DESTDIR=$RPM_BUILD_ROOT make all install |
|
|
|
%clean |
|
rm -rf $RPM_BUILD_ROOT |
|
|
|
%files |
|
%defattr(-,root,root,-) |
|
#%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@ |
|
#%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,-) |
|
#%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@ |
|
#%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,-) |
|
#%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 |
|
#%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 |
|
|
|
%changelog |
|
@CHANGE_LOG@
|
|
|