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.

84 lines
2.3 KiB

## @file
##
## $Id$
##
## $Date$
## $Author$
##
## @copy © Marc Wäckerlin
## @license LGPL, see file <a href="license.html">COPYING</a>
##
# rpmbuild -bb --clean @PACKAGENAME@.spec
18 years ago
Name: @PACKAGENAME@
Version: @MAJOR@.@MINOR@.@LEAST@
Release: 1
License: LGPL
Group: Development/Libraries/C++
18 years ago
Summary: dummy
%description
dummy
%package minimal
Summary: MRW's C++ Class Library (minimal release, no debugging features)
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
Provides: @PACKAGENAME@
18 years ago
%description minimal
@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
18 years ago
CXXFLAGS="-O3" ./configure --prefix=/usr \
--datadir=/usr/share/doc/packages \
--disable-threads --disable-autofntrace \
--disable-log4cxx --disable-ltdl --disable-stacktrace \
--disable-doxygen --disable-dot \
%ifarch x86_64
--libdir=/usr/lib64
%else
--libdir=/usr/lib
%endif
%build
make
%install
18 years ago
DESTDIR=$RPM_BUILD_ROOT make all install
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
18 years ago
%files minimal
%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@