SPECS: colamd.spec - build shared lib

glen glen at pld-linux.org
Tue Mar 27 01:21:05 CEST 2007


Author: glen                         Date: Mon Mar 26 23:21:05 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- build shared lib

---- Files affected:
SPECS:
   colamd.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SPECS/colamd.spec
diff -u SPECS/colamd.spec:1.1 SPECS/colamd.spec:1.2
--- SPECS/colamd.spec:1.1	Tue Mar 27 00:27:42 2007
+++ SPECS/colamd.spec	Tue Mar 27 01:21:00 2007
@@ -2,13 +2,14 @@
 Summary:	COLAMD: column approximate minimum degree
 Name:		colamd
 Version:	2.6.0
-Release:	0.1
+Release:	0.2
 License:	LGPL
 Group:		Libraries
 Source0:	http://www.cise.ufl.edu/research/sparse/colamd/COLAMD-%{version}.tar.gz
 # Source0-md5:	49e185756896c1e918a535ec409c48b9
 URL:		http://www.cise.ufl.edu/research/sparse/colamd/
 Patch0:		%{name}-ufconfig.patch
+Patch1:		%{name}-shared.patch
 BuildRequires:	UFconfig
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -44,6 +45,7 @@
 %prep
 %setup -q -n COLAMD
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__make} \
@@ -52,19 +54,26 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}}
-cp -a colamd.h $RPM_BUILD_ROOT%{_includedir}
-cp -a libcolamd.a $RPM_BUILD_ROOT%{_libdir}/libcolamd.a
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+install -D colamd.h $RPM_BUILD_ROOT%{_includedir}/colamd.h
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
 %doc README.txt
+%attr(755,root,root) %{_libdir}/libcolamd.so.*.*.*
 
 %files devel
 %defattr(644,root,root,755)
+%{_libdir}/libcolamd.la
+%{_libdir}/libcolamd.so
 %{_includedir}/colamd.h
 
 %files static
@@ -77,6 +86,8 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2007/03/26 23:21:00  glen
+- build shared lib
+
 Revision 1.1  2007/03/26 22:27:42  glen
 - new
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/colamd.spec?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list