Fix package to be able do local build
This commit is contained in:
parent
03b759eb13
commit
ee0d7b95d5
@ -39,7 +39,7 @@ Name: cim-schema
|
||||
Url: http://www.dmtf.org/
|
||||
Summary: Common Information Model (CIM) Schema
|
||||
Version: %{major}.%{minor}.%{update}
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
Group: Development/Libraries
|
||||
License: DMTF
|
||||
Source0: http://www.dmtf.org/standards/cim/cim_schema_v%{major}%{minor}%{update}/cim_schema_%{version}Experimental-MOFs.zip
|
||||
@ -71,8 +71,6 @@ Common Information Model (CIM) schema documentation.
|
||||
%prep
|
||||
%setup -q -T -a 1 -c -n %{name}-%{version}-docs
|
||||
%setup -q -T -a 0 -c -n %{name}-%{version}
|
||||
# BEWARE, Below statement fails in local builds.
|
||||
cp -a %{SOURCE2} ..
|
||||
|
||||
%build
|
||||
%install
|
||||
@ -89,6 +87,8 @@ chmod -R a+rX .
|
||||
ln -s cimv%{version} $RPM_BUILD_ROOT/$MOFDIR/cim-current
|
||||
ln -s cim_schema_%{version}.mof $RPM_BUILD_ROOT/$MOFDIR/cim-current/CIM_Schema.mof
|
||||
install -d $RPM_BUILD_ROOT/usr/bin
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}
|
||||
cp -a %{SOURCE2} $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}
|
||||
|
||||
%clean
|
||||
%__rm -rf $RPM_BUILD_ROOT
|
||||
@ -98,12 +98,15 @@ install -d $RPM_BUILD_ROOT/usr/bin
|
||||
%dir %{_datarootdir}/mof/cimv%{version}
|
||||
%{_datarootdir}/mof/cimv%{version}/*
|
||||
%{_datarootdir}/mof/cim-current
|
||||
%doc ../LICENSE
|
||||
%doc %{_docdir}/%{name}-%{version}/LICENSE
|
||||
|
||||
%files docs
|
||||
%doc ../%{name}-%{version}-docs/*
|
||||
|
||||
%changelog
|
||||
* Wed May 15 2013 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.33.0-5
|
||||
- Fix package to be able do local build
|
||||
|
||||
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.33.0-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user