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.
88 lines
2.1 KiB
88 lines
2.1 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 subversion gcc-c++ doxygen graphviz texlive automake autoconf libtool make |
|
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version} |
|
BuildRequires: cppunit-devel |
|
%else%if 0%{?suse_version} || 0%{?sles_version} |
|
BuildRequires: libcppunit-devel |
|
%endif%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 |
|
|
|
%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 |
|
|
|
%build |
|
make |
|
|
|
%install |
|
DESTDIR=$RPM_BUILD_ROOT make all install |
|
|
|
%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 |
|
|
|
%changelog |
|
@CHANGE_LOG@
|
|
|