## @file ## ## $Id$ ## ## $Date$ ## $Author$ ## ## @copy © Marc Wäckerlin ## @license LGPL, see file COPYING ## # rpmbuild -bb --clean @PACKAGENAME@.spec BuildRequires: boost-devel ghostscript-library BuildRequires: gcc-c++ doxygen graphviz #%if 0%(?suse_version) >= 1030 BuildRequires: texlive-bin-latex cppunit-devel unixODBC-devel libxml2-devel freefont ##%elseif 0%(?debian_version) ##BuildRequires: libcppunit-dev unixodbc-dev libxml2-dev latex209-bin ttf-freefont #%else #BuildRequires: te_latex cppunit-devel unixODBC-devel libxml2-devel freefont #%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@