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.
 
 
 
 
 

71 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
Summary: MRW's C++ Class Library, facilities for modern C++ programming
Name: @PACKAGENAME@-minimal
Version: @MAJOR@.@MINOR@.@LEAST@
Release: 1
License: LGPL
Group: Development/Libraries/C++
URL: http://marc.waeckerlin.org/mrw-c++/index.html
Source0: @PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Prefix: /usr
Summary: MRW's C++ Class Library (minimal release, no debugging features)
Group: Development/Libraries/C++
Provides: @PACKAGENAME@
%description
@README@
This package contains only the shared libraries required at runtime,
linked with minimal feature, no logging, no stacktrace, no development
support at all. This package can be used e.g. for the videorekorder at
http://marc.waeckerlin.org/videorekorder/index.html
%prep
%setup -q
CXXFLAGS="-O3" ./configure --prefix=$RPM_BUILD_ROOT/usr --datadir=$RPM_BUILD_ROOT/usr/share/doc/packages --disable-threads --disable-autofntrace --disable-log4cxx --disable-ltdl --disable-stacktrace
%build
make
%install
make install
find "$RPM_BUILD_ROOT" -name '*.la' | xargs perl -pi -e 's#'"${RPM_BUILD_ROOT//+/\\+}"'##g'
rm -r $RPM_BUILD_ROOT/usr/include/mrw
rmdir $RPM_BUILD_ROOT/usr/include
rm $RPM_BUILD_ROOT/usr/lib/libmrw-mt*
rm $RPM_BUILD_ROOT/usr/lib/libmrw.la
rm $RPM_BUILD_ROOT/usr/lib/libmrw.a
rm $RPM_BUILD_ROOT/usr/share/doc/packages/@PACKAGENAME@/INSTALL
rm -r $RPM_BUILD_ROOT/usr/share/doc/packages/@PACKAGENAME@/doc
rm $RPM_BUILD_ROOT/usr/share/doc/packages/@PACKAGENAME@/mrw-c++.spec
rm -r $RPM_BUILD_ROOT/usr/share/doc/packages/@PACKAGENAME@/examples
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
/usr/lib/libmrw.so
/usr/lib/libmrw.so.@MAJOR@
/usr/lib/libmrw.so.@MAJOR@.@MINOR@.@LEAST@
/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
%changelog
@CHANGE_LOG@