From ee0d7b95d554bec86a0c17ed8da5dbae8e020489 Mon Sep 17 00:00:00 2001 From: Vitezslav Crhonek Date: Wed, 15 May 2013 13:54:14 +0200 Subject: [PATCH] Fix package to be able do local build --- cim-schema.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/cim-schema.spec b/cim-schema.spec index 3a7f371..a1a4df1 100644 --- a/cim-schema.spec +++ b/cim-schema.spec @@ -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 - 2.33.0-5 +- Fix package to be able do local build + * Wed Feb 13 2013 Fedora Release Engineering - 2.33.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild