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.
83 lines
2.3 KiB
83 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 |
|
Name: @PACKAGENAME@ |
|
Version: @MAJOR@.@MINOR@.@LEAST@ |
|
Release: 1 |
|
License: LGPL |
|
Group: Development/Libraries/C++ |
|
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@ |
|
|
|
%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 |
|
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 |
|
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 |
|
|
|
%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@
|
|
|