adapt to new build system
This commit is contained in:
@@ -1,72 +1,53 @@
|
||||
## @file
|
||||
##
|
||||
## $Id$
|
||||
##
|
||||
## $Date$
|
||||
## $Author$
|
||||
##
|
||||
## @copy © Marc Wäckerlin
|
||||
## @license LGPL, see file <a href="license.html">COPYING</a>
|
||||
##
|
||||
|
||||
# rpmbuild -bb --clean @PACKAGE_NAME@.spec
|
||||
BuildRequires: boost-devel subversion gcc-c++ doxygen automake autoconf libtool make
|
||||
Summary: @DESCRIPTION@
|
||||
Name: @PACKAGE_NAME@
|
||||
Version: @VERSION@
|
||||
Release: 1
|
||||
License: LGPL
|
||||
Group: Development/Libraries/C++
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
BuildRequires: pkg-config, subversion, autotools-devel, lsb-release , doxygen, graphviz, mscgen
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version}
|
||||
BuildRequires: cppunit-devel libtool-ltdl-devel
|
||||
BuildRequires: cppunit-devel
|
||||
%else%if 0%{?suse_version} || 0%{?sles_version}
|
||||
BuildRequires: libcppunit-devel
|
||||
%endif%endif
|
||||
Summary: MRW's C++ Class Library, facilities for modern C++ programming
|
||||
Name: @PACKAGE_NAME@
|
||||
Version: @PACKAGE_VERSION@
|
||||
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/@PACKAGE_NAME@ \
|
||||
--enable-doxygen
|
||||
./configure --prefix=/usr --docdir=/usr/share/doc/packages/@PACKAGE_NAME@ --libdir=/usr/%_lib
|
||||
|
||||
%build
|
||||
make
|
||||
|
||||
%install
|
||||
DESTDIR=$RPM_BUILD_ROOT make all install
|
||||
DESTDIR=$RPM_BUILD_ROOT make install
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
/usr/%_lib/*.so.*
|
||||
/usr/share/pkgconfig
|
||||
/usr/%_lib/pkgconfig
|
||||
/usr/bin/*
|
||||
/usr/%_lib/@PACKAGE_NAME@.so.*
|
||||
%doc
|
||||
/usr/share/doc/packages/@PACKAGE_NAME@/AUTHORS
|
||||
/usr/share/doc/packages/@PACKAGE_NAME@/COPYING
|
||||
/usr/share/doc/packages/@PACKAGE_NAME@/ChangeLog
|
||||
/usr/share/doc/packages/@PACKAGE_NAME@/INSTALL
|
||||
/usr/share/doc/packages/@PACKAGE_NAME@/NEWS
|
||||
/usr/share/doc/packages/@PACKAGE_NAME@/README
|
||||
|
||||
%package devel
|
||||
Summary: MRW's C++ Class Library (development files)
|
||||
Summary: C++ Wrapper around OpenSSL, PCSC and Cryptoki (development files)
|
||||
Group: Development/Libraries/C++
|
||||
Requires: @PACKAGE_NAME@ = @PACKAGE_VERSION@
|
||||
Requires: gcc-c++ >= 3.0
|
||||
Requires: @PACKAGE_NAME@ = @VERSION@
|
||||
|
||||
%description devel
|
||||
@README@
|
||||
@@ -75,14 +56,15 @@ 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/@PACKAGE_NAME@/examples
|
||||
/usr/%_lib/@PACKAGE_NAME@.so
|
||||
/usr/%_lib/@PACKAGE_NAME@.a
|
||||
/usr/%_lib/pkgconfig
|
||||
/usr/%_lib/@PACKAGE_NAME@.la
|
||||
/usr/include/
|
||||
/usr/share/pkgconfig
|
||||
%doc
|
||||
/usr/share/doc/packages/@PACKAGE_NAME@/html
|
||||
/usr/share/doc/packages/@PACKAGE_NAME@/@PACKAGE_NAME@.spec
|
||||
/usr/share/doc/packages/@PACKAGE_NAME@/INSTALL
|
||||
|
||||
%changelog
|
||||
@CHANGE_LOG@
|
||||
|
||||
|
Reference in New Issue
Block a user