]> git.pld-linux.org Git - packages/glibmm.git/blobdiff - glibmm.spec
- 2.11.2
[packages/glibmm.git] / glibmm.spec
index e59443d21a63428fa5848b340980b51572825157..03f544a3626fdec715f98ecbe74ff60853235d28 100644 (file)
@@ -1,15 +1,27 @@
+#
+# 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.3.5
+Version:       2.11.2
 Release:       1
 License:       LGPL
 Group:         Libraries
-Source0:       http://ftp.gnome.org/pub/GNOME/sources/%{name}/2.3/%{name}-%{version}.tar.bz2
-# Source0-md5: 5edff7a0228806f5652fa1668faec3d9
+Source0:       http://ftp.gnome.org/pub/GNOME/sources/glibmm/2.11/%{name}-%{version}.tar.bz2
+# Source0-md5: bad2e7c6e19e4cc8ee7666951189ed25
 URL:           http://gtkmm.sourceforge.net/
-BuildRequires: glib2-devel >= 2.3.2
-Buildrequires: libsigc++-devel >= 1.9.14
+BuildRequires: autoconf >= 2.50
+BuildRequires: automake
+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)
 
@@ -24,8 +36,8 @@ Summary:      Header files for glibmm library
 Summary(pl):   Pliki nag³ówkowe biblioteki glibmm
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
-Requires:      glib2-devel >= 2.3.2
-Requires:      libsigc++-devel >= 1.9.14
+Requires:      glib2-devel >= 1:2.12.0
+Requires:      libsigc++-devel >= 1:2.0.17
 Requires:      libstdc++-devel
 Obsoletes:     gtkmm-glib-devel
 
@@ -48,13 +60,29 @@ Static glibmm library.
 %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
 
 %build
+%{__libtoolize}
+%{__aclocal} -I scripts
+%{__autoconf}
+%{__automake}
+LDFLAGS="%{rpmldflags} -Wl,--as-needed"
 %configure \
        --enable-fulldocs \
-       --enable-static
+       %{?with_static_libs:--enable-static}
 
 %{__make}
 
@@ -80,20 +108,25 @@ rm -rf $RPM_BUILD_ROOT
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/lib*.so
-%doc %{_gtkdocdir}/%{name}-2.4
-%doc %{_examplesdir}/%{name}-%{version}
 %{_libdir}/lib*.la
-%dir %{_libdir}/%{name}-2.3
-%{_libdir}/%{name}-2.3/include
-%dir %{_libdir}/%{name}-2.3/proc
-%{_libdir}/%{name}-2.3/proc/m4
-%{_libdir}/%{name}-2.3/proc/pm
-%attr(755,root,root) %{_libdir}/%{name}-2.3/proc/gmmproc
-%attr(755,root,root) %{_libdir}/%{name}-2.3/proc/*.pl
-%{_includedir}/%{name}-2.3
+%dir %{_libdir}/%{name}-2.4
+%{_libdir}/%{name}-2.4/include
+%dir %{_libdir}/%{name}-2.4/proc
+%{_libdir}/%{name}-2.4/proc/m4
+%{_libdir}/%{name}-2.4/proc/pm
+%attr(755,root,root) %{_libdir}/%{name}-2.4/proc/gmmproc
+%attr(755,root,root) %{_libdir}/%{name}-2.4/proc/*.pl
+%{_includedir}/%{name}-2.4
 %{_pkgconfigdir}/*.pc
 %{_aclocaldir}/*.m4
 
+%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}
This page took 0.064711 seconds and 4 git commands to generate.