File libgtksourceviewmm.spec of Package libgtksourceviewmm
# Spec file for libgtksourceviewmm
#
# Based on FC7 spec file
#
# For bugs send mail to jkress@novell.com
Name: libgtksourceviewmm
Version: 0.3.1
Release: 1
Summary: A C++ wrapper for the gtksourceview widget library
Group: System/Libraries
License: LGPL
URL: http://home.gna.org/gtksourceviewmm/
Source0: http://ftp.gnome.org/pub/GNOME/sources/libgtksourceviewmm/0.3/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gcc-c++, gtkmm2-devel, gtksourceview18-devel, doxygen
%description
libgtksourceviewmm is a C++ wrapper for the gtksourceview widget
library. It offers all the power of gtksourceview with an interface
familiar to c++ developers, including users of the gtkmm library
%package doc
Summary: Documentation for libgtksourceviewmm
Group: Documentation
Requires: %{name}-devel = %{version}-%{release}
%description doc
This package contains the documentation of the libgtksourceviewmm library.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: gtkmm2-devel, gtksourceview18-devel, pkgconfig, automake, doxygen
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q
%build
%configure --disable-static
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make INSTALL="install -c -p" DESTDIR=$RPM_BUILD_ROOT install
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%{__rm} -rf docs/Makefile*
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc README AUTHORS COPYING
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root,-)
%doc ChangeLog NEWS
%{_includedir}/gtksourceviewmm-1.0
%{_libdir}/gtksourceviewmm-1.0
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
/usr/share/doc/libgtksourceviewmm-1.0
%files doc
%defattr(-, root, root, -)
%doc docs/*