Accepting request 295122 from home:pluskalm:branches:Base:System

- Rename python package to match python packaging guidelines

OBS-URL: https://build.opensuse.org/request/show/295122
OBS-URL: https://build.opensuse.org/package/show/Base:System/libstoragemgmt?expand=0&rev=2
This commit is contained in:
Martin Pluskal 2015-04-09 09:01:36 +00:00 committed by Git OBS Bridge
parent ba73b42fd6
commit 992878c026
2 changed files with 15 additions and 11 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Apr 9 09:00:24 UTC 2015 - mpluskal@suse.com
- Rename python package to match python packaging guidelines
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Apr 8 14:24:08 UTC 2015 - mpluskal@suse.com Wed Apr 8 14:24:08 UTC 2015 - mpluskal@suse.com

View File

@ -25,23 +25,23 @@ License: LGPL-2.1+
Group: System Environment/Libraries Group: System Environment/Libraries
Url: http://sourceforge.net/projects/libstoragemgmt/ Url: http://sourceforge.net/projects/libstoragemgmt/
Source0: http://sourceforge.net/projects/libstoragemgmt/files/%{name}-%{version}.tar.gz Source0: http://sourceforge.net/projects/libstoragemgmt/files/%{name}-%{version}.tar.gz
BuildRequires: pkg-config
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: pkgconfig(libmicrohttpd) BuildRequires: pkg-config
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(yajl)
BuildRequires: pkgconfig(openssl)
BuildRequires: python-M2Crypto BuildRequires: python-M2Crypto
BuildRequires: python-PyYAML BuildRequires: python-PyYAML
BuildRequires: python-argparse BuildRequires: python-argparse
BuildRequires: python-devel BuildRequires: python-devel
BuildRequires: python-pywbem BuildRequires: python-pywbem
BuildRequires: pkgconfig(udev)
BuildRequires: pkgconfig(check) BuildRequires: pkgconfig(check)
BuildRequires: pkgconfig(json-c)
BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(json-c)
BuildRequires: pkgconfig(libmicrohttpd)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(systemd) BuildRequires: pkgconfig(systemd)
BuildRequires: pkgconfig(udev)
BuildRequires: pkgconfig(yajl)
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%systemd_requires %systemd_requires
%py_requires %py_requires
@ -73,7 +73,7 @@ Requires: %{libname} = %{version}
The %{name}-devel package contains libraries and header files for The %{name}-devel package contains libraries and header files for
developing applications that use %{name}. developing applications that use %{name}.
%package python %package -n python-%{name}
Summary: Python client libraries and plug-in support for %{name} Summary: Python client libraries and plug-in support for %{name}
Group: System Environment/Libraries Group: System Environment/Libraries
Requires: %{name} = %{version} Requires: %{name} = %{version}
@ -81,7 +81,7 @@ Requires: python-argparse
BuildArch: noarch BuildArch: noarch
%py_requires %py_requires
%description python %description -n python-%{name}
The %{name}-python package contains python client libraries as The %{name}-python package contains python client libraries as
well as python framework support and open source plug-ins written in python. well as python framework support and open source plug-ins written in python.
@ -168,7 +168,6 @@ install -m 0644 packaging/daemon/libstoragemgmt-rest.service \
%{buildroot}/%{_unitdir}/libstoragemgmt-rest.service %{buildroot}/%{_unitdir}/libstoragemgmt-rest.service
ln -sv %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}-rest ln -sv %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}-rest
#tempfiles.d configuration for /var/run #tempfiles.d configuration for /var/run
mkdir -p %{buildroot}/%{_tmpfilesdir} mkdir -p %{buildroot}/%{_tmpfilesdir}
install -m 0644 packaging/daemon/lsm-tmpfiles.conf \ install -m 0644 packaging/daemon/lsm-tmpfiles.conf \
@ -274,7 +273,7 @@ getent passwd %{name} >/dev/null || useradd -r -g %{name} -d %{_localstatedir}/r
%{_libdir}/*.so %{_libdir}/*.so
%{_libdir}/pkgconfig/libstoragemgmt.pc %{_libdir}/pkgconfig/libstoragemgmt.pc
%files python %files -n python-%{name}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%dir %{python_sitelib}/lsm %dir %{python_sitelib}/lsm
%{python_sitelib}/lsm/external %{python_sitelib}/lsm/external