commit 4718091ea67db0d4b999b0e2f0cd4b6a70254fb6
Author: Jakub Bogusz <[email protected]>
Date:   Sat Jan 5 16:33:17 2013 +0100

    - added am patch (fixes build with automake 1.13 and gcc configured 
--with-pkgversion)
    - ghost soname symlink

 xbase-am.patch | 20 ++++++++++++++++++++
 xbase.spec     | 28 ++++++++++++++++++++--------
 2 files changed, 40 insertions(+), 8 deletions(-)
---
diff --git a/xbase.spec b/xbase.spec
index 9899ab4..b7a1c15 100644
--- a/xbase.spec
+++ b/xbase.spec
@@ -3,12 +3,13 @@ Summary(pl.UTF-8):    XBase - kompatybilna z xbase biblioteka 
klas C++
 Name:          xbase
 Version:       2.1.1
 Release:       4
-License:       LGPL (library), GPL (programs)
+License:       LGPL v2.1+ (library), GPL v2+ (programs)
 Group:         Libraries
-Source0:       http://dl.sourceforge.net/xdb/%{name}-%{version}.tar.gz
+Source0:       http://downloads.sourceforge.net/xdb/%{name}-%{version}.tar.gz
 # Source0-md5: f36852f0ba0c4d9e047e84c3269fde37
 Patch0:                %{name}-fix.patch
 Patch1:                %{name}-gcc4.patch
+Patch2:                %{name}-am.patch
 URL:           http://linux.techass.com/projects/xdb/
 BuildRequires: autoconf >= 2.52
 BuildRequires: automake
@@ -64,6 +65,7 @@ Statyczna biblioteka XBase.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 %{__libtoolize}
@@ -73,7 +75,6 @@ Statyczna biblioteka XBase.
 %{__automake}
 CXXFLAGS="%{rpmcflags} -fno-implicit-templates"
 %configure \
-       --enable-nls \
        --with-exceptions \
        --with-index-ndx \
        --with-index-ntx
@@ -94,17 +95,28 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS README TODO
-%attr(755,root,root) %{_bindir}/[!x]*
-%attr(755,root,root) %{_libdir}/lib*.so.*.*
+%attr(755,root,root) %{_bindir}/checkndx
+%attr(755,root,root) %{_bindir}/copydbf
+%attr(755,root,root) %{_bindir}/dbfutil1
+%attr(755,root,root) %{_bindir}/dbfxtrct
+%attr(755,root,root) %{_bindir}/deletall
+%attr(755,root,root) %{_bindir}/dumphdr
+%attr(755,root,root) %{_bindir}/dumprecs
+%attr(755,root,root) %{_bindir}/packdbf
+%attr(755,root,root) %{_bindir}/reindex
+%attr(755,root,root) %{_bindir}/undelall
+%attr(755,root,root) %{_bindir}/zap
+%attr(755,root,root) %{_libdir}/libxbase.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libxbase.so.1
 
 %files devel
 %defattr(644,root,root,755)
 %doc html/{*.html,*.jpg}
 %attr(755,root,root) %{_bindir}/xbase-config
-%attr(755,root,root) %{_libdir}/lib*.so
-%{_libdir}/lib*.la
+%attr(755,root,root) %{_libdir}/libxbase.so
+%{_libdir}/libxbase.la
 %{_includedir}/xbase
 
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/lib*.a
+%{_libdir}/libxbase.a
diff --git a/xbase-am.patch b/xbase-am.patch
new file mode 100644
index 0000000..2b320bd
--- /dev/null
+++ b/xbase-am.patch
@@ -0,0 +1,20 @@
+--- xbase-2.1.1/configure.in.orig      2013-01-05 16:14:20.452995450 +0100
++++ xbase-2.1.1/configure.in   2013-01-05 16:15:52.132993541 +0100
+@@ -55,7 +55,7 @@
+ AM_INIT_AUTOMAKE(xbase, 2.1.1)
+ 
+ # create this header file
+-AM_CONFIG_HEADER(xbase/xbconfig.h)
++AC_CONFIG_HEADERS(xbase/xbconfig.h)
+ 
+ #create a library
+ AM_PROG_LIBTOOL
+@@ -80,7 +80,7 @@
+ 
+ # get G++ version
+ if test "$GXX" = "yes"; then
+-  GXXVER=`${CXX} -v 2>&1 | grep version | cut -d " " -f 3 -`
++  GXXVER=`${CXX} -v 2>&1 | grep ' version ' | cut -d " " -f 3 -`
+   GXXVER="gcc${GXXVER}"
+ else
+   GXXVER=""
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xbase.git/commitdiff/4718091ea67db0d4b999b0e2f0cd4b6a70254fb6

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to