parent
9454114278
commit
7338ddc5cf
7 changed files with 102 additions and 8 deletions
@ -0,0 +1,71 @@ |
||||
## @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@ |
Loading…
Reference in new issue