packages: openwsman/openwsman.spec - separated -libs - package perl- and py...
qboosh
qboosh at pld-linux.org
Fri Sep 30 18:13:34 CEST 2011
Author: qboosh Date: Fri Sep 30 16:13:34 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- separated -libs
- package perl- and python-
---- Files affected:
packages/openwsman:
openwsman.spec (1.4 -> 1.5)
---- Diffs:
================================================================
Index: packages/openwsman/openwsman.spec
diff -u packages/openwsman/openwsman.spec:1.4 packages/openwsman/openwsman.spec:1.5
--- packages/openwsman/openwsman.spec:1.4 Thu Sep 29 21:23:03 2011
+++ packages/openwsman/openwsman.spec Fri Sep 30 18:13:28 2011
@@ -1,8 +1,6 @@
# $Revision$, $Date$
# TODO:
-# - libs subpackage
# - daemon init script
-# - package perl and python
# - fix and package java and ruby
#
Summary: Implementation of the Web Services Management specification (WS-Management)
@@ -22,11 +20,16 @@
BuildRequires: libxml2-devel >= 2.0
BuildRequires: openssl-devel
BuildRequires: pam-devel
+BuildRequires: perl-devel
BuildRequires: pkgconfig
-BuildRequires: rpmbuild(macros) >= 1.566
+BuildRequires: python-devel
+BuildRequires: rpmbuild(macros) >= 1.606
BuildRequires: sblim-sfcc-devel
BuildRequires: sed >= 4.0
BuildRequires: swig >= 1.3.30
+BuildRequires: swig-perl >= 1.3.30
+BuildRequires: swig-python >= 1.3.30
+Requires: %{name}-libs = %{version}-%{release}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
# plugins use symbols from libraries, client libs have circular dependencies with libwsman
@@ -50,11 +53,23 @@
udostępniających zbiór operacji pokrywających wszystkie aspekty
zarządzania systemem.
+%package libs
+Summary: Shared openwsman libraries
+Summary(pl.UTF-8): Biblioteki współdzielone openwsman
+Group: Libraries
+Conflicts: openwsman < 2.2.6
+
+%description libs
+Shared openwsman libraries.
+
+%description libs -l pl.UTF-8
+Biblioteki współdzielone openwsman.
+
%package devel
Summary: Header files for openwsman
Summary(pl.UTF-8): Pliki nagłówkowe openwsman
Group: Development/Libraries
-Requires: %{name} = %{version}-%{release}
+Requires: %{name}-libs = %{version}-%{release}
Obsoletes: openwsman-static
%description devel
@@ -63,6 +78,30 @@
%description devel -l pl.UTF-8
Pliki nagłówkowe openwsman.
+%package -n perl-openwsman
+Summary: Perl bindings for openwsman libraries
+Summary(pl.UTF-8): Wiązania Perla do bibliotek openwsman
+Group: Development/Languages/Perl
+Requires: %{name}-libs = %{version}-%{release}
+
+%description -n perl-openwsman
+Perl bindings for openwsman libraries.
+
+%description -n perl-openwsman -l pl.UTF-8
+Wiązania Perla do bibliotek openwsman.
+
+%package -n python-openwsman
+Summary: Python bindings for openwsman libraries
+Summary(pl.UTF-8): Wiązania Pythona do bibliotek openwsman
+Group: Development/Languages/Python
+Requires: %{name}-libs = %{version}-%{release}
+
+%description -n python-openwsman
+Python bindings for openwsman libraries.
+
+%description -n python-openwsman -l pl.UTF-8
+Wiązania Pythona do bibliotek openwsman.
+
%prep
%setup -q
%undos src/cpp/CMakeLists.txt
@@ -83,26 +122,20 @@
%{__make} -C build install \
DESTDIR=$RPM_BUILD_ROOT
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+%py_postclean
+
%clean
rm -rf $RPM_BUILD_ROOT
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post libs -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog README TODO
%attr(755,root,root) %{_sbindir}/openwsmand
-%attr(755,root,root) %{_libdir}/libwsman.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libwsman.so.1
-%attr(755,root,root) %{_libdir}/libwsman_client.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libwsman_client.so.1
-%attr(755,root,root) %{_libdir}/libwsman_clientpp.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libwsman_clientpp.so.1
-%attr(755,root,root) %{_libdir}/libwsman_curl_client_transport.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libwsman_curl_client_transport.so.1
-%attr(755,root,root) %{_libdir}/libwsman_server.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libwsman_server.so.1
%dir %{_libdir}/openwsman
%dir %{_libdir}/openwsman/authenticators
%attr(755,root,root) %{_libdir}/openwsman/authenticators/libwsman_*.so*
@@ -115,6 +148,19 @@
%config(noreplace) %verify(not md5 mtime size) /etc/pam.d/openwsman
/var/lib/openwsman
+%files libs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libwsman.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libwsman.so.1
+%attr(755,root,root) %{_libdir}/libwsman_client.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libwsman_client.so.1
+%attr(755,root,root) %{_libdir}/libwsman_clientpp.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libwsman_clientpp.so.1
+%attr(755,root,root) %{_libdir}/libwsman_curl_client_transport.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libwsman_curl_client_transport.so.1
+%attr(755,root,root) %{_libdir}/libwsman_server.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libwsman_server.so.1
+
%files devel
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libwsman.so
@@ -127,12 +173,26 @@
%{_pkgconfigdir}/openwsman++.pc
%{_pkgconfigdir}/openwsman-server.pc
+%files -n perl-openwsman
+%defattr(644,root,root,755)
+%attr(755,root,root) %{perl_vendorarch}/openwsman.so
+%{perl_vendorlib}/openwsman.pm
+
+%files -n python-openwsman
+%defattr(644,root,root,755)
+%attr(755,root,root) %{py_sitedir}/_pywsman.so
+%{py_sitedir}/pywsman.py[co]
+
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback at pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.5 2011/09/30 16:13:28 qboosh
+- separated -libs
+- package perl- and python-
+
Revision 1.4 2011/09/29 19:23:03 qboosh
- up to 2.2.6 (new sonames; uses cmake now, -static is gone)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/openwsman/openwsman.spec?r1=1.4&r2=1.5&f=u
More information about the pld-cvs-commit
mailing list