]> git.pld-linux.org Git - packages/xbase.git/blobdiff - xbase.spec
- added using %%{__make} macro.
[packages/xbase.git] / xbase.spec
index 501473216d01ca1d8fbeca3ff9b2b6f5285b2934..54bd58295de2a5c9041d8a2d295a212d0e969e9f 100644 (file)
@@ -2,31 +2,36 @@ Summary:      Xbase DBMS Library
 Summary(pl):   Xbase biblioteka dla ró¿nych baz danych.
 Name:          xbase
 Version:       1.8.1
-Release:       3
-Copyright:     LGPL
-Group:         Applications/Libraries
-Group(pl):     Aplikacje/Biblioteki
-Source:                ftp://www.startech.keller.tx.us/pub/xbase/%name-%version.tar.gz
+Release:       7
+License:       LGPL
+Group:         Libraries
+Group(fr):     Librairies
+Group(pl):     Biblioteki
+Source0:       ftp://www.startech.keller.tx.us/pub/xbase/%name-%version.tar.gz
+Patch0:                xbase-autoconf.patch
 URL:           http://www.startech.keller.tx.us/xbase.html
-Buildroot:     /tmp/%{name}-%{version}-root
+BuildRequires: libstdc++-devel
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-This product provides C and C++ programmers a class and function library for
-manipulating Xbase type datafiles and indices. This project was formerly
-known as Xbase for Linux, but as I have recieved input from several people
-who are compiling this on platforms other than Linux, I have renamed it to
-Xbase DBMS.  The main development of this library however, remains on the
-Linux platform utilizing the GCC public domain C/C++ compiler.
-
-XBase DBMS currently includes routines to support multi-user access for .DBF
-databases, fields, Dbase III and IV memo fields (variable length fields),
-dates, record and file locking and (.NDX) indices.  As of release 1.7.4,
-Xbase is compatible with dBASE III data, index and memo fields and also has
-support for some dBASE IV features.
+This product provides C and C++ programmers a class and function
+library for manipulating Xbase type datafiles and indices. This
+project was formerly known as Xbase for Linux, but as I have recieved
+input from several people who are compiling this on platforms other
+than Linux, I have renamed it to Xbase DBMS. The main development of
+this library however, remains on the Linux platform utilizing the GCC
+public domain C/C++ compiler.
+
+XBase DBMS currently includes routines to support multi-user access
+for .DBF databases, fields, Dbase III and IV memo fields (variable
+length fields), dates, record and file locking and (.NDX) indices. As
+of release 1.7.4, Xbase is compatible with dBASE III data, index and
+memo fields and also has support for some dBASE IV features.
 
 %description -l pl
-Bibliotek zawieraj±ca zespó³ procerur i funkcji pozwalaj±cych na podstawowe
-operacje na na formatacie danych dBASE III i czê¶ciowo dBASE IV.
+Bibliotek zawieraj±ca zespó³ procerur i funkcji pozwalaj±cych na
+podstawowe operacje na na formatacie danych dBASE III i czê¶ciowo
+dBASE IV.
 
 Bazowo projekt powstawa³ po Linuxa ale obecnie jest urzywany na wielu
 platformach.
@@ -34,25 +39,29 @@ platformach.
 %package devel
 Summary:       Xbase development
 Summary(pl):   Xbase delelopment
-Group:         Applications/Libraries
-Group(pl):     Aplikacje/Biblioteki
+Group:         Development/Libraries
+Group(fr):     Development/Librairies
+Group(pl):     Programowanie/Biblioteki
 Requires:      %{name} = %{version}
 
 %description devel
 Include headers and Turbo Vision module in source.
 
 %description devel -l pl
-Zawiera pliki nag³ówkowe potrzebne przy tworzeniu oprogramowania,
-oraz modu³ dla Turbo Vision.
+Zawiera pliki nag³ówkowe potrzebne przy tworzeniu oprogramowania, oraz
+modu³ dla Turbo Vision.
 
 %prep
 %setup -q 
+%patch -p1
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-CPPFLAGS="$RPM_OPT_FLAGS -fno-rtti -fno-implicit-templates" \
-./configure %{_target} \
-       --prefix=%{_prefix} \
+automake
+autoconf
+LDFLAGS="-s"
+CPPFLAGS="$RPM_OPT_FLAGS -fno-rtti -fno-implicit-templates"
+export LDFLAGS CPPFLAGS
+%configure \
        --enable-nls \
        --with-exceptions \
        --with-index-ndx \
@@ -61,13 +70,11 @@ make
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make prefix=$RPM_BUILD_ROOT/usr install
-
-install -d $RPM_BUILD_ROOT/usr/doc/%name-%version
+%{__make} DESTDIR=$RPM_BUILD_ROOT install
 
 gzip -9nf ChangeLog TODO AUTHORS NEWS README
 
-#strip $RPM_BUILD_ROOT/usr/{bin/*,lib/lib*.so.*.*}
+strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
 
 %post   -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
@@ -78,37 +85,12 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc *gz
-%attr(755,root,root)%{_bindir}/*
-%attr(755,root,root)%{_libdir}/lib*.so*.*
+%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_libdir}/lib*.so.*.*
 
 %files devel
 %defattr(644,root,root,755)
 %doc html/{*html,*gif,*jpg}
-%attr(755,root,root)%{_libdir}/lib*.so
+%attr(755,root,root) %{_libdir}/lib*.so
+%attr(755,root,root) %{_libdir}/lib*.la
 %{_includedir}/*
-%{_libdir}/libxbase.la
-
-%changelog
-* Sat May 29 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [1.8.1-3]
-- more rpm macros.
-
-* Thu Apr 22 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [1.8.1-2]
-- recompiles on new rpm.
-
-* Thu Apr 15 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [1.8.1-1]
-- added passing $RPM_OPT_FLAGS in CFLAGS and CPPFLAGS; in CPPFLAGS
-  added "-fno-rtti -fno-implicit-templates",
-- added "-s" to LDFLAGS,
-- added stripping shared libraries,
-- added URL,
-- fixed Copyright (LGPL).
-
-* Wed Apr 14 1999 Wojciech "Sas" Ciêciwa <cieciwa@alpha.zarz.agh.edu.pl>
-- separate file,
-- update to version 1.8.1
-
-* Sat Dec 12 1998 Wojciech "Sas" Ciêciwa <cieciwa@alpha.zarz.agh.edu.pl>
-- building RPM.
This page took 0.056147 seconds and 4 git commands to generate.