File mcpp.spec of Package mcpp

#
# spec file for package mcpp (Version 2.7.2)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:		mcpp
Url:            http://mcpp.sourceforge.net/
License:        BSD 3-Clause
Group:          Development/Languages/C and C++
Summary:        Matsui's C Preprocessor
Version:        2.7.2
Release:        1
Source0:        %{name}-%{version}.tar.bz2
Patch0:         %{name}-%{version}.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The mcpp is a small and portable C/C++ preprocessor implementing all of
C90, C99 and C++98.



Authors:
--------
    Kiyoshi Matsui <kmatsui@t3.rim.or.jp>

%package devel
Group:        Development/Libraries/C and C++
Summary:      The mcpp Development Files (static libs)
Requires:     libmcpp0 = %{version}

%package -n libmcpp0
Group:        Development/Libraries/C and C++
Summary:      The mcpp shared library

%description devel
mcpp Development Files (static libs)

%description -n libmcpp0
mcpp shared library

%prep
%setup -q
%patch0 -p1

%build
export CFLAGS="$RPM_OPT_FLAGS -D_BSD_SOURCE"
%configure --enable-mcpplib
make %{?jobs:-j %jobs}

%install
%makeinstall
rm -rf $RPM_BUILD_ROOT/usr/share/doc/mcpp

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc doc/mcpp-manual.html LICENSE NEWS README
%{_prefix}/bin/*
%{_mandir}/man1/mcpp.1.gz

%files devel
%defattr(-,root,root)
%attr(644,root,root) /usr/include/mcpp_lib.h
%attr(644,root,root) /usr/include/mcpp_out.h
%{_libdir}/libmcpp.a

%files -n libmcpp0
%defattr(-,root,root)
%{_libdir}/libmcpp*

%post -n libmcpp0
/sbin/ldconfig

%postun -n libmcpp0
/sbin/ldconfig

%changelog
openSUSE Build Service is sponsored by