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

View File

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