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.

92 lines
2.2 KiB

## @file
##
## $Id$
##
## $Date$
## $Author$
##
## @copy © Marc Wäckerlin
## @license LGPL, see file <a href="license.html">COPYING</a>
##
21 years ago
# rpmbuild -bb --clean @PACKAGENAME@.spec
BuildRequires: boost-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
20 years ago
Summary: MRW's C++ Class Library, facilities for modern C++ programming
21 years ago
Name: @PACKAGENAME@
Version: @MAJOR@.@MINOR@.@LEAST@
Release: @RPMBUILD@
21 years ago
License: LGPL
Group: Development/Libraries/C++
URL: http://marc.waeckerlin.org/mrw-c++/index.html
Source0: %{name}-%{version}.tar.gz
21 years ago
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Prefix: /usr
Requires: binutils
21 years ago
%description
@README@
This package contains only the shared libraries required at runtime.
%prep
%setup -q
CXXFLAGS="-O3" ./configure --prefix=/usr \
--libdir=/usr/%_lib \
--docdir=/usr/share/doc/packages/@PACKAGENAME@ \
--enable-doxygen
21 years ago
%build
make
21 years ago
%install
DESTDIR=$RPM_BUILD_ROOT make all install
21 years ago
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
/usr/%_lib/*.so.*
/usr/share/pkgconfig
/usr/%_lib/pkgconfig
%doc
/usr/share/doc/packages/@PACKAGENAME@/AUTHORS
/usr/share/doc/packages/@PACKAGENAME@/COPYING
/usr/share/doc/packages/@PACKAGENAME@/ChangeLog
/usr/share/doc/packages/@PACKAGENAME@/NEWS
/usr/share/doc/packages/@PACKAGENAME@/README
%package devel
Summary: MRW's C++ Class Library (development files)
Group: Development/Libraries/C++
Requires: @PACKAGENAME@ = @MAJOR@.@MINOR@.@LEAST@
Requires: gcc-c++ >= 3.0
%description devel
@README@
This Package contains all files required for developement.
%files devel
%defattr(-,root,root,-)
/usr/%_lib/*.so
/usr/%_lib/*.a
/usr/%_lib/*.la
/usr/include
/usr/share/doc/packages/@PACKAGENAME@/examples
/usr/share/doc/packages/@PACKAGENAME@/html
/usr/share/doc/packages/@PACKAGENAME@/@PACKAGENAME@.spec
/usr/share/doc/packages/@PACKAGENAME@/INSTALL
21 years ago
%changelog
@CHANGE_LOG@