Author: qboosh                       Date: Mon Jan  9 17:09:58 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

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

---- Diffs:

================================================================
Index: packages/RBio/RBio-shared.patch
diff -u /dev/null packages/RBio/RBio-shared.patch:1.1
--- /dev/null   Mon Jan  9 18:09:58 2012
+++ packages/RBio/RBio-shared.patch     Mon Jan  9 18:09:53 2012
@@ -0,0 +1,81 @@
+--- RBio/Lib/Makefile.orig     2012-01-09 17:07:19.559765294 +0100
++++ RBio/Lib/Makefile  2012-01-09 17:13:03.056443463 +0100
+@@ -10,14 +10,14 @@
+ 
+ C = $(CC) $(CF)
+ 
+-all: librbio.a
++all: librbio.la
+ 
+-library: librbio.a
++library: librbio.la
+ 
+ purge: distclean
+ 
+ distclean: clean
+-      - $(RM) librbio.a
++      - $(RM) librbio.la
+ 
+ clean:
+       - $(RM) $(CLEAN)
+@@ -32,22 +32,25 @@
+ # The 7 CHOLMOD library modules (int, double)
+ 
#-------------------------------------------------------------------------------
+ 
+-CORE = RBio.o
++CORE = RBio_i.o
+ 
+ DI = $(CORE)
+ 
+-LCORE = RBio_long.o
++LCORE = RBio.o
+ 
+ DL = $(LCORE)
+ 
+ 
#-------------------------------------------------------------------------------
+ 
+ # to compile just the double/int version, use OBJ = $(DI)
+-OBJ = $(DI)
++OBJ = $(DI) $(DL)
+ 
+-librbio.a: $(OBJ)
+-      $(ARCHIVE)  librbio.a $(OBJ)
+-      - $(RANLIB) librbio.a
++librbio.la: $(OBJ)
++      libtool --tag=CC --mode=link $(CC) $(LDFLAGS) $(CFLAGS) -o librbio.la 
-rpath $(libdir) $(OBJ:.o=.lo) -lufconfig
++
++install: librbio.la
++      install -d $(DESTDIR)$(libdir)
++      libtool --mode=install cp librbio.la $(DESTDIR)$(libdir)/librbio.la
+ 
+ $(OBJ): $(INC)
+ 
+@@ -56,8 +59,8 @@
+ 
#-------------------------------------------------------------------------------
+ 
+ RBio.o: ../Source/RBio.c
+-      $(C) -c $(I) $<
++      libtool --tag=CC --mode=compile $(C) -c $(I) $< -o RBio.lo
+ 
+ RBio_i.o: ../Source/RBio.c
+-      $(C) -c -DINT $(I) $<
++      libtool --tag=CC --mode=compile $(C) -c -DINT $(I) $< -o RBio_i.lo
+ 
+--- RBio/Demo/Makefile.orig    2012-01-09 17:15:23.029781482 +0100
++++ RBio/Demo/Makefile 2012-01-09 17:51:37.443187623 +0100
+@@ -6,7 +6,7 @@
+ 
+ include /usr/share/misc/UFconfig.mk
+ 
+-LIB = ../Lib/librbio.a -lufconfig
++LIB = ../Lib/librbio.la -lufconfig
+ 
+ C = $(CC) $(CF)
+ 
+@@ -32,5 +32,5 @@
+ I = -I../Include
+ 
+ RBdemo: library RBdemo.c
+-      $(C) -o RBdemo $(I) RBdemo.c $(LIB)
++      libtool --tag=CC --mode=link $(C) -o RBdemo $(I) RBdemo.c $(LIB)
+ 

================================================================
Index: packages/RBio/RBio-ufconfig.patch
diff -u /dev/null packages/RBio/RBio-ufconfig.patch:1.1
--- /dev/null   Mon Jan  9 18:09:58 2012
+++ packages/RBio/RBio-ufconfig.patch   Mon Jan  9 18:09:53 2012
@@ -0,0 +1,58 @@
+--- RBio/Makefile.orig 2011-12-07 23:20:05.000000000 +0100
++++ RBio/Makefile      2012-01-08 14:28:27.806553147 +0100
+@@ -6,7 +6,7 @@
+ 
+ default: all
+ 
+-include ../UFconfig/UFconfig.mk
++include /usr/share/misc/UFconfig.mk
+ 
+ # Compile the C-callable libraries and the Demo programs.
+ all:
+--- RBio/Lib/Makefile.orig     2011-12-08 18:41:19.000000000 +0100
++++ RBio/Lib/Makefile  2012-01-08 14:38:26.373239855 +0100
+@@ -6,7 +6,7 @@
+ 
+ ccode: all
+ 
+-include ../../UFconfig/UFconfig.mk
++include /usr/share/misc/UFconfig.mk
+ 
+ C = $(CC) $(CF)
+ 
+@@ -51,7 +51,7 @@
+ 
+ $(OBJ): $(INC)
+ 
+-I = -I../Include -I../../UFconfig
++I = -I../Include
+ 
+ 
#-------------------------------------------------------------------------------
+ 
+--- RBio/Demo/Makefile.orig    2011-12-08 20:17:08.000000000 +0100
++++ RBio/Demo/Makefile 2012-01-08 14:39:56.876576218 +0100
+@@ -4,9 +4,9 @@
+ 
+ default: all
+ 
+-include ../../UFconfig/UFconfig.mk
++include /usr/share/misc/UFconfig.mk
+ 
+-LIB = ../Lib/librbio.a ../../UFconfig/libufconfig.a
++LIB = ../Lib/librbio.a -lufconfig
+ 
+ C = $(CC) $(CF)
+ 
+@@ -26,11 +26,10 @@
+ 
+ 
#-------------------------------------------------------------------------------
+ library:
+-      ( cd ../../UFconfig ; $(MAKE) )
+       ( cd ../Lib ; $(MAKE) )
+ 
#-------------------------------------------------------------------------------
+ 
+-I = -I../Include -I../../UFconfig
++I = -I../Include
+ 
+ RBdemo: library RBdemo.c
+       $(C) -o RBdemo $(I) RBdemo.c $(LIB)

================================================================
Index: packages/RBio/RBio.spec
diff -u /dev/null packages/RBio/RBio.spec:1.1
--- /dev/null   Mon Jan  9 18:09:58 2012
+++ packages/RBio/RBio.spec     Mon Jan  9 18:09:53 2012
@@ -0,0 +1,107 @@
+# $Revision$, $Date$
+Summary:       RBio: read/write matrices in Rutherford/Boeing format
+Summary(pl.UTF-8):     SuiteSparseQR - wielowątkowy, wielofrontalny rozkład QR 
dla macierzy rzadkich
+Name:          RBio
+Version:       2.0.2
+Release:       1
+License:       GPL v2+
+Group:         Libraries
+Source0:       
http://www.cise.ufl.edu/research/sparse/RBio/%{name}-%{version}.tar.gz
+# Source0-md5: fd469b4ccac07c771c10c3046d593791
+Patch0:                %{name}-ufconfig.patch
+Patch1:                %{name}-shared.patch
+URL:           http://www.cise.ufl.edu/research/sparse/RBio/
+BuildRequires: UFconfig-devel >= 3.7.0
+BuildRequires: libtool >= 2:1.5
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+RBio - MATLAB toolbox for reading/writing sparse matrices in the
+Rutherford/Boeing format, and for reading/writing problems in the UF
+Sparse Matrix Collection from/to a set of files in a directory.
+Version 2.0 is written in C. Older versions were in Fortran.
+
+%description -l pl.UTF-8
+RBio to narzędzia MATLAB-a do odczytu/zapisu macierzy rzadkich w
+formacie Rutherforda-Boeinga oraz odczytu/zapisu problemów dla
+oprogramowania UF Sparse Matrix Collection z/do zbioru plików w
+katalogu. Wersja 2.0 została napisana w C; wcześniejsze wersje były w
+Fortranie.
+
+%package devel
+Summary:       Header files for RBio library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki RBio
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+Requires:      UFconfig-devel >= 3.7.0
+
+%description devel
+Header files for RBio library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki RBio.
+
+%package static
+Summary:       Static RBio library
+Summary(pl.UTF-8):     Statyczna biblioteka RBio
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static RBio library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka RBio.
+
+%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}/rbio
+
+%{__make} -C Lib install \
+       DESTDIR=$RPM_BUILD_ROOT \
+       libdir=%{_libdir}
+
+install Include/*.h $RPM_BUILD_ROOT%{_includedir}/rbio
+
+%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,License.txt}
+%attr(755,root,root) %{_libdir}/librbio.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/librbio.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/librbio.so
+%{_libdir}/librbio.la
+%{_includedir}/rbio
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/librbio.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 17:09:53  qboosh
+- new
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to