[packages/keybinder] - completed dependencies, -static
qboosh
qboosh at pld-linux.org
Sun May 12 14:59:47 CEST 2013
commit 53f327047f310b3df849a654e65a42d3cf557707
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun May 12 14:59:46 2013 +0200
- completed dependencies, -static
keybinder.spec | 76 ++++++++++++++++++++++++++++++++++++++++++----------------
1 file changed, 56 insertions(+), 20 deletions(-)
---
diff --git a/keybinder.spec b/keybinder.spec
index cbad7c7..36453c2 100644
--- a/keybinder.spec
+++ b/keybinder.spec
@@ -1,7 +1,8 @@
#
# Conditional build:
-%bcond_without lua # don't build lua bindings
-%bcond_without python # don't build python bindings
+%bcond_without lua # don't build Lua bindings
+%bcond_without python # don't build Python bindings
+%bcond_without static_libs # static library build
#
Summary: keybinder library
Summary(pl.UTF-8): Biblioteka keybinder
@@ -13,18 +14,22 @@ Group: Libraries
Source0: http://kaizer.se/publicfiles/keybinder/%{name}-%{version}.tar.gz
# Source0-md5: 2a0aed62ba14d1bf5c79707e20cb4059
URL: http://kaizer.se/wiki/keybinder/
-BuildRequires: gtk+2-devel
-BuildRequires: pkgconfig >= 0.9.0
+BuildRequires: gobject-introspection-devel >= 0.6.7
+BuildRequires: gtk-doc >= 1.14
+BuildRequires: gtk+2-devel >= 2:2.20
+BuildRequires: pkgconfig >= 1:0.9.0
BuildRequires: xorg-lib-libX11-devel
+BuildRequires: xorg-lib-libXext-devel
+BuildRequires: xorg-lib-libXrender-devel
%if %{with lua}
-BuildRequires: lua51
+BuildRequires: lua51 >= 5.1
BuildRequires: lua51-devel >= 5.1
%endif
%if %{with python}
-BuildRequires: python-devel >= 2.5
+BuildRequires: python-devel >= 1:2.5
BuildRequires: python-distribute
-BuildRequires: python-pygobject-devel
-BuildRequires: python-pygtk-devel
+BuildRequires: python-pygobject-devel >= 2.15.3
+BuildRequires: python-pygtk-devel >= 2:2.12
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.219
%endif
@@ -43,6 +48,7 @@ Summary: Header files for keybinder library
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki keybinder
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
+Requires: gtk+2-devel >= 2:2.20
%description devel
Header files for keybinder library.
@@ -50,10 +56,22 @@ Header files for keybinder library.
%description devel -l pl.UTF-8
Pliki nagłówkowe biblioteki keybinder.
+%package static
+Summary: Static keybinder library
+Summary(pl.UTF-8): Statyczna biblioteka keybinder
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static keybinder library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka keybinder.
+
%package doc
Summary: HTML documentation for keybinder library
Summary(pl.UTF-8): Dokumentacja w HTML biblioteki keybinder
-Group: Development/Libraries
+Group: Documentation
Requires: %{name} = %{version}-%{release}
%description doc
@@ -64,21 +82,23 @@ Dokumentacja w HTML biblioteki keybinder.
%package -n python-keybinder
Summary: Python bindings for keybinder library
-Summary(pl.UTF-8): Wiązania pythona biblioteki keybinder
+Summary(pl.UTF-8): Wiązania Pythona do biblioteki keybinder
Group: Development/Languages/Python
Requires: %{name} = %{version}-%{release}
Requires: python-libs
Requires: python-modules
+Requires: python-pygobject >= 2.15.3
+Requires: python-pygtk >= 2:2.12
%description -n python-keybinder
Python bindings for keybinder library.
%description -n python-keybinder -l pl.UTF-8
-Wiązania pythona biblioteki keybinder.
+Wiązania Pythona do biblioteki keybinder.
%package -n lua-keybinder
Summary: Lua bindings for keybinder library
-Summary(pl.UTF-8): Wiązania lua biblioteki keybinder
+Summary(pl.UTF-8): Wiązania języka Lua do biblioteki keybinder
Group: Development/Languages
Requires: %{name} = %{version}-%{release}
@@ -86,13 +106,16 @@ Requires: %{name} = %{version}-%{release}
Lua bindings for keybinder library.
%description -n lua-keybinder -l pl.UTF-8
-Wiązania lua biblioteki keybinder.
+Wiązania języka Lua do biblioteki keybinder.
%prep
%setup -q
%build
%configure \
+ --disable-silent-rules \
+ %{?with_static_libs:--enable-static} \
+ --with-html-dir=%{_gtkdocdir} \
%if %{with lua}
--with-lua-includes=%{_includedir}/lua51 \
--with-lua-suffix=51
@@ -103,19 +126,25 @@ Wiązania lua biblioteki keybinder.
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} \
- $RPM_BUILD_ROOT%{_docdir}
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-mv $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/keybinder/ $RPM_BUILD_ROOT%{_docdir}/
-
+%if %{with python}
%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
%py_comp $RPM_BUILD_ROOT%{py_sitedir}
%py_postclean
+%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/keybinder/*.la
+%{?with_static_libs:%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/keybinder/*.a}
+%endif
+
+%if %{with lua}
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/lua/*/*.la
+%{?with_static_libs:%{__rm} $RPM_BUILD_ROOT%{_libdir}/lua/*/*.a}
+%endif
%clean
rm -rf $RPM_BUILD_ROOT
@@ -125,22 +154,29 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS README
+%doc AUTHORS NEWS README
%attr(755,root,root) %ghost %{_libdir}/libkeybinder.so.0
%attr(755,root,root) %{_libdir}/libkeybinder.so.*.*.*
+%{_libdir}/girepository-1.0/Keybinder-0.0.typelib
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libkeybinder.so
%{_libdir}/libkeybinder.la
+%{_datadir}/gir-1.0/Keybinder-0.0.gir
%{_includedir}/keybinder.h
%{_pkgconfigdir}/keybinder.pc
%{_examplesdir}/%{name}-%{version}
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libkeybinder.a
+%endif
+
%files doc
%defattr(644,root,root,755)
-%dir %{_docdir}/keybinder
-%{_docdir}/keybinder/*[css,html,png,devhelp2]
+%{_gtkdocdir}/keybinder
%if %{with python}
%files -n python-keybinder
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/keybinder.git/commitdiff/53f327047f310b3df849a654e65a42d3cf557707
More information about the pld-cvs-commit
mailing list