5f33dc
#
5f33dc
# spec file for package cim-schema
5f33dc
#
5f33dc
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
5f33dc
#
5f33dc
# All modifications and additions to the file contributed by third parties
5f33dc
# remain the property of their copyright owners, unless otherwise agreed
5f33dc
# upon.
5f33dc
#
5f33dc
# The license for this spec file is the MIT/X11 license:
5f33dc
#
5f33dc
# Permission is hereby granted, free of charge, to any person obtaining
5f33dc
# a copy of this software and associated documentation files (the
5f33dc
# "Software"), to deal in the Software without restriction, including
5f33dc
# without limitation the rights to use, copy, modify, merge, publish,
5f33dc
# distribute, sublicense, and/or sell copies of the Software, and to
5f33dc
# permit persons to whom the Software is furnished to do so, subject to
5f33dc
# the following conditions:
5f33dc
#
5f33dc
# The above copyright notice and this permission notice shall be
5f33dc
# included in all copies or substantial portions of the Software.
5f33dc
#
5f33dc
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
5f33dc
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
5f33dc
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
5f33dc
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
5f33dc
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
5f33dc
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
5f33dc
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
5f33dc
#
5f33dc
5f33dc
# norootforbuild
5f33dc
5f33dc
%global major 2
5f33dc
%global minor 33
5f33dc
%global update 0
5f33dc
5f33dc
Name:           cim-schema
5f33dc
Url:            http://www.dmtf.org/
5f33dc
Summary:        Common Information Model (CIM) Schema
5f33dc
Version:        %{major}.%{minor}.%{update}
5f33dc
Release:        6%{?dist}
5f33dc
Group:          Development/Libraries
5f33dc
License:        DMTF
5f33dc
Source0:        http://www.dmtf.org/standards/cim/cim_schema_v%{major}%{minor}%{update}/cim_schema_%{version}Experimental-MOFs.zip
5f33dc
Source1:        http://www.dmtf.org/standards/cim/cim_schema_v%{major}%{minor}%{update}/cim_schema_%{version}Experimental-Doc.zip
5f33dc
Source2:        LICENSE
5f33dc
BuildArch:      noarch
5f33dc
5f33dc
%package docs
5f33dc
Summary:        Common Information Model (CIM) Schema documentation
5f33dc
Group:          Documentation
5f33dc
5f33dc
5f33dc
%description
5f33dc
Common Information Model (CIM) is a model for describing overall
5f33dc
management information in a network or enterprise environment. CIM
5f33dc
consists of a specification and a schema. The specification defines the
5f33dc
details for integration with other management models. The schema
5f33dc
provides the actual model descriptions.
5f33dc
5f33dc
5f33dc
5f33dc
Authors:
5f33dc
--------
5f33dc
    DTMF <http://www.dmtf.org/about/contact>
5f33dc
5f33dc
%description docs
5f33dc
Common Information Model (CIM) schema documentation.
5f33dc
5f33dc
%prep
5f33dc
%setup -q -T -a 1 -c -n %{name}-%{version}-docs
5f33dc
%setup -q -T -a 0 -c -n %{name}-%{version}
5f33dc
5f33dc
%build
5f33dc
%install
5f33dc
MOFDIR=%{_datadir}/mof
5f33dc
CIMDIR=$MOFDIR/cimv%{version}
5f33dc
%__rm -rf $RPM_BUILD_ROOT
5f33dc
for i in `find . -name "*.mof"`; do
5f33dc
  sed -i -e 's/\r//g' $i
5f33dc
done
5f33dc
install -d $RPM_BUILD_ROOT/$CIMDIR
5f33dc
chmod -R go-wx .
5f33dc
chmod -R a+rX .
5f33dc
%__mv * $RPM_BUILD_ROOT/$CIMDIR/
5f33dc
ln -s cimv%{version} $RPM_BUILD_ROOT/$MOFDIR/cim-current
5f33dc
ln -s cim_schema_%{version}.mof $RPM_BUILD_ROOT/$MOFDIR/cim-current/CIM_Schema.mof
5f33dc
install -d $RPM_BUILD_ROOT/usr/bin
5f33dc
mkdir -p $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}
5f33dc
cp -a %{SOURCE2} $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}
5f33dc
5f33dc
%clean
5f33dc
%__rm -rf $RPM_BUILD_ROOT
5f33dc
5f33dc
%files
5f33dc
%dir %{_datarootdir}/mof
5f33dc
%dir %{_datarootdir}/mof/cimv%{version}
5f33dc
%{_datarootdir}/mof/cimv%{version}/*
5f33dc
%{_datarootdir}/mof/cim-current
5f33dc
%doc %{_docdir}/%{name}-%{version}/LICENSE
5f33dc
5f33dc
%files docs
5f33dc
%doc ../%{name}-%{version}-docs/*
5f33dc
5f33dc
%changelog
5f33dc
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.33.0-6
5f33dc
- Mass rebuild 2013-12-27
5f33dc
5f33dc
* Mon Jul 22 2013 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.33.0-5
5f33dc
- Fix package to be able do local build
5f33dc
5f33dc
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.33.0-4
5f33dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5f33dc
5f33dc
* Wed Nov 21 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.33.0-3
5f33dc
- Remove loadmof.sh and rmmof.sh scripts
5f33dc
5f33dc
* Thu Aug 23 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.33.0-2
5f33dc
- Fix issues found by fedora-review utility in the spec file
5f33dc
5f33dc
* Mon Jul 30 2012 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.33.0-1
5f33dc
- Update to CIM Schema 2.33.0, including experimental classes
5f33dc
5f33dc
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.29.0-3
5f33dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5f33dc
5f33dc
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.29.0-2
5f33dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
5f33dc
5f33dc
* Wed May 11 2011 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.29.0-1
5f33dc
- Update to CIM Schema 2.29.0
5f33dc
5f33dc
* Tue Jun 22 2010 Praveen K Paladugu <praveen_paladugu@dell.com> - 2.25.0-2
5f33dc
- Minor spec file fixes
5f33dc
5f33dc
* Tue Jun 22 2010 Praveen K Paladugu <praveen_paladugu@dell.com> - 2.25.0-1
5f33dc
- Uploaded the second source file, so bumping up the release.
5f33dc
5f33dc
* Tue Jun 22 2010 Praveen K Paladugu <praveen_paladugu@dell.com> - 2.25.0-0
5f33dc
- Updating the sources to 2.25.0. Had to update sblim-sfcb to 1.3.8 
5f33dc
- which uses 2.25.0. 
5f33dc
5f33dc
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.22.0-2
5f33dc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
5f33dc
5f33dc
* Thu Jul 16 2009 Matt Domsch <Matt_Domsch@dell.com> - 2.22.0-1.fc12
5f33dc
- add dist tag
5f33dc
5f33dc
* Tue Jul 14 2009 Matt Domsch <Matt_Domsch@dell.com> - 2.22.0-1
5f33dc
- spec license change to MIT per Novell
5f33dc
- remove BR: unzip, it's in the default buildroot already
5f33dc
- add MIT license to spec file
5f33dc
5f33dc
* Wed May 20 2009 Matt Domsch <Matt_Domsch@dell.com> - 2.21.0-1
5f33dc
- upgrade to v2.22.0
5f33dc
5f33dc
* Thu Oct 23 2008 Matt Domsch <Matt_Domsch@dell.com> - 2.19.1-1
5f33dc
- Upgraded to cimv2.19.1Experimental
5f33dc
- now meets Fedora packaging guidelines too
5f33dc
- added -docs subpackage
5f33dc
* Wed May 14 2008 bwhiteley@suse.de
5f33dc
- Upgraded to cimv2.18Experimental
5f33dc
* Thu Jan 17 2008 bwhiteley@suse.de
5f33dc
- Fixed order of includes so that it will import in pegasus.
5f33dc
* Tue Jan 08 2008 bwhiteley@suse.de
5f33dc
- Updated to cimv2.17Experimental (#341800)
5f33dc
* Wed Nov 28 2007 bwhiteley@suse.de
5f33dc
- Updated to cimv2.16Experimental (#341800)
5f33dc
  Remove carriage returns from MOF files.
5f33dc
  Fix broken comment blocks in 2.16 schema.
5f33dc
* Thu Mar 29 2007 bwhiteley@suse.de
5f33dc
- Added unzip to BuildRequires
5f33dc
* Tue Mar 27 2007 bwhiteley@suse.de
5f33dc
- Fixed inclusion of missing file (#258187)
5f33dc
* Tue Mar 13 2007 bart@novell.com
5f33dc
- Added some classes from 2.15 preliminary needed for Xen
5f33dc
  providers (#228365)
5f33dc
* Fri Jan 19 2007 bwhiteley@suse.de
5f33dc
- update to schema version 2.14 (#228365)
5f33dc
* Mon Jan 08 2007 bwhiteley@suse.de
5f33dc
- Combine all qualifiers back into one file (#232667)
5f33dc
* Tue Dec 19 2006 bwhiteley@suse.de
5f33dc
- added loadmof.sh script. (#228349)
5f33dc
* Wed Dec 13 2006 bwhiteley@suse.de
5f33dc
- Updated to schema version cimv2.13.1 (#228365)
5f33dc
* Fri Oct 06 2006 bwhiteley@suse.de
5f33dc
- Updated to schema version cimv2.13
5f33dc
* Mon May 08 2006 bwhiteley@suse.de
5f33dc
- Updated to schema version cimv2.12, required for SMASH 1.0
5f33dc
  compliance (#173777)
5f33dc
* Fri May 05 2006 bwhiteley@suse.de
5f33dc
- removed non-ascii char from CIM_DNSSettingData.mof (was breaking
5f33dc
  some XML parsers) (#172939)
5f33dc
* Fri Feb 10 2006 bwhiteley@suse.de
5f33dc
- fixed execute bit on directories (#149992)
5f33dc
* Wed Jan 25 2006 mls@suse.de
5f33dc
- converted neededforbuild to BuildRequires
5f33dc
* Tue Jan 17 2006 bwhiteley@suse.de
5f33dc
- Added a symlink cim-current so other packages don't have to hard-
5f33dc
  code cim schema versions.
5f33dc
* Tue Jan 10 2006 bwhiteley@suse.de
5f33dc
- Update to v2.11 Experimental.
5f33dc
- Moved MOFs under /usr/share/mof
5f33dc
* Thu Jan 13 2005 nashif@suse.de
5f33dc
- Update to v2.9 Final
5f33dc
* Tue Oct 12 2004 nashif@suse.de
5f33dc
- Update with cim v2.9
5f33dc
* Tue Feb 17 2004 nashif@suse.de
5f33dc
- Fixed directory permissions
5f33dc
- build as normal user
5f33dc
* Mon Feb 16 2004 nashif@suse.de
5f33dc
- Updated to 2.8 final
5f33dc
* Thu Nov 27 2003 nashif@suse.de
5f33dc
- Initial Release