- use subdir for headers to resolve conflict with dcdflib.c auto/th/cdflib-3.5.0.1-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 9 Mar 2014 05:52:42 +0000 (06:52 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 9 Mar 2014 05:52:42 +0000 (06:52 +0100)
- non-parallel install

cdflib.spec

index bf989f5..dba909c 100644 (file)
@@ -77,9 +77,12 @@ API Javy do biblioteki CDF.
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install \
+%{__make} -j1 install \
        INSTALLDIR=$RPM_BUILD_ROOT%{_prefix}
 
+# resolve conflict with dcdflib.c
+install -d $RPM_BUILD_ROOT%{_includedir}/cdf
+%{__mv} $RPM_BUILD_ROOT%{_includedir}/*.{h,inc} $RPM_BUILD_ROOT%{_includedir}/cdf
 %if "%{_lib}" != "lib"
 %{__mv} $RPM_BUILD_ROOT%{_prefix}/{lib,%{_lib}}
 %endif
@@ -106,13 +109,15 @@ rm -rf $RPM_BUILD_ROOT
 
 %files devel
 %defattr(644,root,root,755)
-%{_includedir}/cdf.h
-%{_includedir}/cdfconfig.h
-%{_includedir}/cdfdist.h
-%{_includedir}/cdflib.h
-%{_includedir}/cdflib64.h
+%dir %{_includedir}/cdf
+# C
+%{_includedir}/cdf/cdf.h
+%{_includedir}/cdf/cdfconfig.h
+%{_includedir}/cdf/cdfdist.h
+%{_includedir}/cdf/cdflib.h
+%{_includedir}/cdf/cdflib64.h
 # fortran
-%{_includedir}/cdf.inc
+%{_includedir}/cdf/cdf.inc
 
 %files static
 %defattr(644,root,root,755)
This page took 0.083754 seconds and 4 git commands to generate.