]> git.pld-linux.org Git - packages/COLAMD.git/commitdiff
- build shared lib
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 26 Mar 2007 23:21:00 +0000 (23:21 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    COLAMD.spec -> 1.2

COLAMD.spec

index 13261dc9ebd422a7661d08e23748cd253befd321..7b2675cfcaac19f54a884d066f757a1aebb9922a 100644 (file)
@@ -1,13 +1,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)
 
@@ -43,6 +44,7 @@ Static colamd library.
 %prep
 %setup -q -n COLAMD
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__make} \
@@ -51,19 +53,26 @@ Static colamd library.
 
 %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
This page took 0.076316 seconds and 4 git commands to generate.