Author: qboosh                       Date: Mon Jan  9 19:46:49 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/BTF:
   BTF-shared.patch (NONE -> 1.1)  (NEW), BTF-ufconfig.patch (NONE -> 1.1)  
(NEW), BTF.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/BTF/BTF-shared.patch
diff -u /dev/null packages/BTF/BTF-shared.patch:1.1
--- /dev/null   Mon Jan  9 20:46:49 2012
+++ packages/BTF/BTF-shared.patch       Mon Jan  9 20:46:44 2012
@@ -0,0 +1,63 @@
+--- BTF/Lib/Makefile.orig      2012-01-09 19:34:18.460060583 +0100
++++ BTF/Lib/Makefile   2012-01-09 20:11:23.916801765 +0100
+@@ -15,14 +15,17 @@
+ 
+ all: library
+ 
+-library: libbtf.a
++library: libbtf.la
+ 
+ OBJ = btf_order.o btf_maxtrans.o btf_strongcomp.o \
+     btf_l_order.o btf_l_maxtrans.o btf_l_strongcomp.o
+ 
+-libbtf.a: $(OBJ)
+-      $(ARCHIVE)  libbtf.a $(OBJ)
+-      - $(RANLIB) libbtf.a
++libbtf.la: $(OBJ)
++      libtool --tag=CC --mode=link $(CC) $(LDFLAGS) $(CFLAGS) -o libbtf.la 
-rpath $(libdir) $(OBJ:.o=.lo)
++
++install: libbtf.la
++      install -d $(DESTDIR)$(libdir)
++      libtool --mode=install cp libbtf.la $(DESTDIR)$(libdir)/libbtf.la
+ 
+ $(OBJ): $(INC)
+ 
+@@ -32,31 +35,31 @@
+ 
#-------------------------------------------------------------------------------
+ 
+ btf_order.o: ../Source/btf_order.c
+-      $(C) -c $(I) $< -o $@
++      libtool --tag=CC --mode=compile $(C) -c $(I) $< -o $@
+ 
+ btf_maxtrans.o: ../Source/btf_maxtrans.c
+-      $(C) -c $(I) $< -o $@
++      libtool --tag=CC --mode=compile $(C) -c $(I) $< -o $@
+ 
+ btf_strongcomp.o: ../Source/btf_strongcomp.c
+-      $(C) -c $(I) $< -o $@
++      libtool --tag=CC --mode=compile $(C) -c $(I) $< -o $@
+ 
+ 
#-------------------------------------------------------------------------------
+ 
+ btf_l_order.o: ../Source/btf_order.c
+-      $(C) -c $(I) -DDLONG $< -o $@
++      libtool --tag=CC --mode=compile $(C) -c $(I) -DDLONG $< -o $@
+ 
+ btf_l_maxtrans.o: ../Source/btf_maxtrans.c
+-      $(C) -c $(I) -DDLONG $< -o $@
++      libtool --tag=CC --mode=compile $(C) -c $(I) -DDLONG $< -o $@
+ 
+ btf_l_strongcomp.o: ../Source/btf_strongcomp.c
+-      $(C) -c $(I) -DDLONG $< -o $@
++      libtool --tag=CC --mode=compile $(C) -c $(I) -DDLONG $< -o $@
+ 
+ 
#-------------------------------------------------------------------------------
+ 
+ purge: distclean
+ 
+ distclean: clean
+-      - $(RM) libbtf.a 
++      - $(RM) libbtf.la 
+ 
+ clean:
+       - $(RM) $(CLEAN)

================================================================
Index: packages/BTF/BTF-ufconfig.patch
diff -u /dev/null packages/BTF/BTF-ufconfig.patch:1.1
--- /dev/null   Mon Jan  9 20:46:49 2012
+++ packages/BTF/BTF-ufconfig.patch     Mon Jan  9 20:46:44 2012
@@ -0,0 +1,31 @@
+--- BTF/Makefile.orig  2011-12-08 21:00:31.000000000 +0100
++++ BTF/Makefile       2012-01-09 19:06:48.286671996 +0100
+@@ -6,7 +6,7 @@
+ 
+ default: library
+ 
+-include ../UFconfig/UFconfig.mk
++include /usr/share/misc/UFconfig.mk
+ 
+ library:
+       ( cd Lib ; $(MAKE) )
+--- BTF/Lib/Makefile.orig      2011-12-08 18:36:11.000000000 +0100
++++ BTF/Lib/Makefile   2012-01-09 19:34:01.893393361 +0100
+@@ -2,7 +2,7 @@
+ 
+ ccode: all
+ 
+-include ../../UFconfig/UFconfig.mk
++include /usr/share/misc/UFconfig.mk
+ 
+ # for testing only:
+ # TEST = -DTESTING
+@@ -11,7 +11,7 @@
+ 
+ INC = ../Include/btf.h ../Include/btf_internal.h
+ 
+-I = -I../Include -I../../UFconfig
++I = -I../Include
+ 
+ all: library
+ 

================================================================
Index: packages/BTF/BTF.spec
diff -u /dev/null packages/BTF/BTF.spec:1.1
--- /dev/null   Mon Jan  9 20:46:49 2012
+++ packages/BTF/BTF.spec       Mon Jan  9 20:46:44 2012
@@ -0,0 +1,104 @@
+# $Revision$, $Date$
+Summary:       BTF: permutation to block triangular form
+Summary(pl.UTF-8):     BTF - permutacja do postaci blokowo trójkątnej
+Name:          BTF
+Version:       1.1.3
+Release:       1
+License:       LGPL v2.1+
+Group:         Libraries
+Source0:       
http://www.cise.ufl.edu/research/sparse/btf/%{name}-%{version}.tar.gz
+# Source0-md5: cd8f2e52a3618da471fbb60342a96915
+Patch0:                %{name}-ufconfig.patch
+Patch1:                %{name}-shared.patch
+URL:           http://www.cise.ufl.edu/research/sparse/btf/
+BuildRequires: UFconfig >= 3.7.0
+BuildRequires: libtool >= 2:1.5
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+BTF permutes an unsymmetric matrix (square or rectangular) into its
+block upper triangular form (more precisely, it computes a
+Dulmage-Mendelsohn decomposition). BTF is required by the KLU package.
+
+%description -l pl.UTF-8
+BTF permutuje macierz niesymetryczną (kwadratową lub prostokątną) do
+postaci górnej blokowo trójkątnej (ściślej mówiąc, oblicza rozkład
+Dulmage'a-Mendelsohna). Pakiet BTF jest wymagany przez pakiet KLU.
+
+%package devel
+Summary:       Header files for BTF library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki BTF
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+Requires:      UFconfig >= 3.7.0
+
+%description devel
+Header files for BTF library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki BTF.
+
+%package static
+Summary:       Static BTF library
+Summary(pl.UTF-8):     Statyczna biblioteka BTF
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static BTF library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka BTF.
+
+%prep
+%setup -q -n %{name}
+%patch0 -p1
+%patch1 -p1
+
+%build
+%{__make} \
+       CC="%{__cc}" \
+       CFLAGS="%{rpmcflags}" \
+       LDFLAGS="%{rpmldflags}" \
+       libdir=%{_libdir}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_includedir}/btf
+
+%{__make} -C Lib install \
+       DESTDIR=$RPM_BUILD_ROOT \
+       libdir=%{_libdir}
+
+install Include/*.h $RPM_BUILD_ROOT%{_includedir}/btf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc README.txt Doc/ChangeLog
+%attr(755,root,root) %{_libdir}/libbtf.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libbtf.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libbtf.so
+%{_libdir}/libbtf.la
+%{_includedir}/btf
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libbtf.a
+
+%define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <[email protected]>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2012/01/09 19:46:44  qboosh
+- new
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to