[mediawiki-semantic] Fix incomplete build section

James Laska jlaska at fedoraproject.org
Mon Jan 23 17:02:42 UTC 2012


commit ecac911222fe24b786a6ae5edb8a6bab745448a8
Author: James Laska <jlaska at redhat.com>
Date:   Mon Jan 23 12:02:29 2012 -0500

    Fix incomplete build section

 mediawiki-semantic.spec |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)
---
diff --git a/mediawiki-semantic.spec b/mediawiki-semantic.spec
index 9f717f4..f381cc3 100644
--- a/mediawiki-semantic.spec
+++ b/mediawiki-semantic.spec
@@ -2,7 +2,7 @@
 
 Name:       mediawiki-semantic
 Version:    1.7.0.2
-Release:    1%{?dist}
+Release:    2%{?dist}
 Summary:    An extension of MediaWiki that improves content organization
 Group:      Applications/Internet
 License:    GPLv2
@@ -35,9 +35,11 @@ via the Semantic Web, allowing other systems to use this data seamlessly.
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT%{_datadir}/mediawiki/extensions/%{UpstreamName}
-cat <<EOF>README.fedora
+rm -rf %{buildroot}
+
+%{__install} -d %{buildroot}/%{_datadir}/mediawiki/extensions/%{UpstreamName}
+
+cat <<EOF> README.fedora
 To complete installation of %{name}: add the following two lines to
 LocalSettings.php:
 
@@ -50,7 +52,8 @@ example.org should be replaced by your server's name (or IP address).
 Additional database changes are detailed in the online installation
 instructions available at http://semantic-mediawiki.org/wiki/Help:Installation.
 EOF
-cp -pa includes languages maintenance skins specials $RPM_BUILD_ROOT%{_datadir}/mediawiki/extensions/%{UpstreamName}/
+
+%{__cp} -a * %{buildroot}/%{_datadir}/mediawiki/extensions/%{UpstreamName}/
 
 
 %files
@@ -60,6 +63,10 @@ cp -pa includes languages maintenance skins specials $RPM_BUILD_ROOT%{_datadir}/
 
 
 %changelog
+* Mon Jan 23 2012 James Laska <jlaska at redhat.com> 1.7.0.2-2
+- Correct incomplete build section
+- Replace RPM_BUILD_ROOT with buildroot macro
+
 * Mon Jan 23 2012 James Laska <jlaska at redhat.com> 1.7.0.2-1
 - Update to 1.7.0.2
 


More information about the scm-commits mailing list