Accepting request 313058 from systemsmanagement:wbem

1

OBS-URL: https://build.opensuse.org/request/show/313058
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cim-schema?expand=0&rev=29
This commit is contained in:
Dominique Leuenberger 2015-06-23 10:00:07 +00:00 committed by Git OBS Bridge
commit a4554861b2
4 changed files with 35 additions and 29 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Jun 22 11:40:15 UTC 2015 - kstreitova@suse.com
- Upgrade to version 2.44.0
http://dmtf.org/sites/default/files/cim/cim_schema_v2440/releasenotes.html
- use spec-cleaner
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Feb 26 07:48:36 UTC 2015 - kkaempf@suse.com Thu Feb 26 07:48:36 UTC 2015 - kkaempf@suse.com

View File

@ -16,22 +16,21 @@
# #
BuildRequires: unzip
Name: cim-schema Name: cim-schema
Url: http://www.dmtf.org/ Version: 2.44.0
Release: 0
Summary: Common Information Model (CIM) Schema Summary: Common Information Model (CIM) Schema
License: SUSE-DMTF License: SUSE-DMTF
Group: System/Management Group: System/Management
Version: 2.43.0 Url: http://www.dmtf.org/
Release: 0 Source0: http://www.dmtf.org/sites/default/files/cim/cim_schema_v2440/cim_schema_%{version}Experimental-MOFs.zip
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: http://www.dmtf.org/sites/default/files/cim/cim_schema_v2430/cim_schema_%{version}Experimental-MOFs.zip
Source1: loadmof.sh Source1: loadmof.sh
Source2: rmmof.sh Source2: rmmof.sh
BuildArch: noarch BuildRequires: unzip
# openlmi-* requires the experimental variant # openlmi-* requires the experimental variant
Provides: cim-schema-experimental = %{version} Provides: cim-schema-experimental = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description %description
Common Information Model (CIM) is a model for describing overall Common Information Model (CIM) is a model for describing overall
@ -41,45 +40,45 @@ details for integration with other management models. The schema
provides the actual model descriptions. provides the actual model descriptions.
%prep %prep
%setup -c -n %{name}-%{version} %setup -q -c
%build %build
%install %install
MOFDIR=/usr/share/mof MOFDIR=%{_datadir}/mof
CIMDIR=$MOFDIR/cimv%{version} CIMDIR=$MOFDIR/cimv%{version}
for i in `find . -name "*.mof"`; do for i in `find . -name "*.mof"`; do
perl -p -i -e 's/\r//g' $i perl -p -i -e 's/\r//g' $i
done done
install -d $RPM_BUILD_ROOT/$CIMDIR install -d %{buildroot}/$CIMDIR
perl -p -i -e 's/\\/\//g' cim*.mof perl -p -i -e 's/\\/\//g' cim*.mof
echo "" >> qualifiers.mof echo "" >> qualifiers.mof
echo "// Optional Qualifiers: " >> qualifiers.mof echo "// Optional Qualifiers: " >> qualifiers.mof
echo "" >> qualifiers.mof echo "" >> qualifiers.mof
cat qualifiers_optional.mof >> qualifiers.mof cat qualifiers_optional.mof >> qualifiers.mof
%__rm qualifiers_optional.mof rm qualifiers_optional.mof
chmod -R go-wx . chmod -R go-wx .
chmod -R a+rX . chmod -R a+rX .
%__mv * $RPM_BUILD_ROOT/$CIMDIR/ mv * %{buildroot}/$CIMDIR/
ln -s cimv%{version} $RPM_BUILD_ROOT/$MOFDIR/cim-current ln -s cimv%{version} %{buildroot}/$MOFDIR/cim-current
pushd $RPM_BUILD_ROOT/$CIMDIR/ pushd %{buildroot}/$CIMDIR/
ln -s cim*.mof CIM_Schema.mof ln -s cim*.mof CIM_Schema.mof
popd popd
install -d $RPM_BUILD_ROOT/usr/bin install -d %{buildroot}%{_prefix}/bin
install -m 755 %{S:1} $RPM_BUILD_ROOT/usr/bin/ install -m 755 %{SOURCE1} %{buildroot}%{_bindir}/
install -m 755 %{S:2} $RPM_BUILD_ROOT/usr/bin/ install -m 755 %{SOURCE2} %{buildroot}%{_bindir}/
perl -p -i -e 's~^#pragma include ("qualifiers_optional\.mof")~\/\/#pragma include ("qualifiers_optional\.mof")~g' $RPM_BUILD_ROOT/$MOFDIR/cim-current/CIM_Schema.mof perl -p -i -e 's~^#pragma include ("qualifiers_optional\.mof")~\/\/#pragma include ("qualifiers_optional\.mof")~g' %{buildroot}/$MOFDIR/cim-current/CIM_Schema.mof
perl -p -i -e \ perl -p -i -e \
's~^#pragma include \("qualifiers_optional\.mof"\)~\/\/#pragma include ("qualifiers_optional\.mof")~g' \ 's~^#pragma include \("qualifiers_optional\.mof"\)~\/\/#pragma include ("qualifiers_optional\.mof")~g' \
$RPM_BUILD_ROOT/$MOFDIR/cim-current/CIM_Schema.mof %{buildroot}/$MOFDIR/cim-current/CIM_Schema.mof
%files %files
%defattr(-, root, root) %defattr(-, root, root)
%dir /usr/share/mof %dir %{_datadir}/mof
%dir /usr/share/mof/cimv%{version} %dir %{_datadir}/mof/cimv%{version}
/usr/share/mof/cimv%{version}/* %{_datadir}/mof/cimv%{version}/*
/usr/share/mof/cim-current %{_datadir}/mof/cim-current
/usr/bin/loadmof.sh %{_bindir}/loadmof.sh
/usr/bin/rmmof.sh %{_bindir}/rmmof.sh
%changelog %changelog

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d861bacaf1c88658b23cc9d713b2e437403c4b9558941e6c9f99b122582e08f8
size 2151391

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3f24e55838b80aaa956cb20a935920434fe71c3115ec6c1ff3246f40419e492c
size 2176407