[grib_api] Fix some file permission issues Add missing post scripts Do not install static python archive file
Orion Poplawski
orion at fedoraproject.org
Wed Apr 16 21:02:00 UTC 2014
commit 718c645ccc5f329a1158beb4a1e247dde046f75e
Author: Orion Poplawski <orion at nwra.com>
Date: Wed Apr 16 15:01:51 2014 -0600
Fix some file permission issues
Add missing post scripts
Do not install static python archive file
grib_api.spec | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/grib_api.spec b/grib_api.spec
index e60c7be..90c27df 100644
--- a/grib_api.spec
+++ b/grib_api.spec
@@ -1,6 +1,6 @@
Name: grib_api
Version: 1.12.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: WMO FM-92 GRIB (v1,v2) interface accessible from C and FORTRAN programs
Group: Applications/System
@@ -57,6 +57,8 @@ rm m4/libtool.m4
autoreconf -f -i
# Fix ksh path
sed -i -e 's,/usr/bin/ksh,/bin/ksh,' tools/grib1to2.txt
+# Fix permissions
+find -name \*.c | xargs chmod -x
%build
@@ -86,6 +88,12 @@ chmod 644 README LICENSE COPYING ChangeLog AUTHORS
mkdir -p %{buildroot}%{_fmoddir}
mv %{buildroot}%{_includedir}/%{name}.mod %{buildroot}%{_fmoddir}
+# Fix permission
+chmod +x %{buildroot}%{_datadir}/%{name}/definitions/installDefinitions.sh
+
+# Don't ship static archive
+rm %{buildroot}%{python_sitearch}/%{name}/_gribapi_swig.a
+
%clean
rm -rf %{buildroot}
@@ -97,6 +105,11 @@ rm -rf %{buildroot}
make check || true
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
%files
%doc README LICENSE COPYING ChangeLog AUTHORS
%{_bindir}/*
@@ -120,6 +133,11 @@ make check || true
%{_libdir}/*.a
%changelog
+* Wed Apr 16 2014 Orion Poplawski <orion at cora.nwra.com> - 1.12.0-2
+- Fix some file permission issues
+- Add missing post scripts
+- Do not install static python archive file
+
* Wed Mar 5 2014 Orion Poplawski <orion at cora.nwra.com> - 1.12.0-1
- Update to 1.12.0
- Update libtool to fix rpath issues
More information about the scm-commits
mailing list