-%bcond_without static # don't build static library
+#
+# Conditional build:
+%bcond_without static_libs # don't build static library
+#
Summary: A C++ interface for glib library
Summary(pl): Interfejs C++ dla biblioteki glib
Name: glibmm
-Version: 2.6.1
-Release: 2
+Version: 2.11.2
+Release: 1
License: LGPL
Group: Libraries
-Source0: http://ftp.gnome.org/pub/GNOME/sources/glibmm/2.6/%{name}-%{version}.tar.bz2
-# Source0-md5: e37da352bf581503c5866f0231fd4a74
+Source0: http://ftp.gnome.org/pub/GNOME/sources/glibmm/2.11/%{name}-%{version}.tar.bz2
+# Source0-md5: bad2e7c6e19e4cc8ee7666951189ed25
URL: http://gtkmm.sourceforge.net/
BuildRequires: autoconf >= 2.50
BuildRequires: automake
-BuildRequires: glib2-devel >= 1:2.6.3
-BuildRequires: libsigc++-devel >= 1:2.0.10
+BuildRequires: glib2-devel >= 1:2.12.0
+BuildRequires: libsigc++-devel >= 1:2.0.17
BuildRequires: libstdc++-devel
BuildRequires: libtool >= 2:1.4d
BuildRequires: perl-XML-Parser
BuildRequires: pkgconfig
+Requires: glib2 >= 1:2.12.0
+Requires: libsigc++ >= 1:2.0.17
Obsoletes: gtkmm-glib
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Summary(pl): Pliki nag³ówkowe biblioteki glibmm
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
-Requires: glib2-devel >= 1:2.6.3
-Requires: libsigc++-devel >= 1:2.0.10
+Requires: glib2-devel >= 1:2.12.0
+Requires: libsigc++-devel >= 1:2.0.17
Requires: libstdc++-devel
Obsoletes: gtkmm-glib-devel
%description devel -l pl
Pliki nag³ówkowe biblioteki glibmm.
-%package doc
-Summary: Reference documentation and examples for glibmm
-Summary(pl): Szczegó³owa dokumentacja i przyk³ady dla glibmm
-Group: Documentation
-
-%description doc
-Reference documentation and examples for glibmm.
-
-%description doc -l pl
-Szczegó³owa dokumentacja i przyk³ady dla glibmm.
-
%package static
Summary: Static glibmm library
Summary(pl): Statyczna biblioteka glibmm
%description static -l pl
Statyczna biblioteka glibmm.
+%package doc
+Summary: Reference documentation and examples for glibmm
+Summary(pl): Szczegó³owa dokumentacja i przyk³ady dla glibmm
+Group: Documentation
+
+%description doc
+Reference documentation and examples for glibmm.
+
+%description doc -l pl
+Szczegó³owa dokumentacja i przyk³ady dla glibmm.
+
%prep
%setup -q
%{__aclocal} -I scripts
%{__autoconf}
%{__automake}
+LDFLAGS="%{rpmldflags} -Wl,--as-needed"
%configure \
--enable-fulldocs \
- --enable-static \
- %{!?with_static:--disable-static}
+ %{?with_static_libs:--enable-static}
+
%{__make}
%install
%{_pkgconfigdir}/*.pc
%{_aclocaldir}/*.m4
-%files doc
-%defattr(644,root,root,755)
-%{_gtkdocdir}/%{name}-2.4
-%{_examplesdir}/%{name}-%{version}
-
-%if %{with static}
+%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/lib*.a
%endif
+
+%files doc
+%defattr(644,root,root,755)
+%{_gtkdocdir}/%{name}-2.4
+%{_examplesdir}/%{name}-%{version}