package created by autospec [release 0.0.1-1mamba;Wed Jul 04 2012]

This commit is contained in:
Stefano Cotta Ramusino 2024-01-06 04:04:40 +01:00
parent e24ab29a39
commit 9b0f15bb39
2 changed files with 73 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# libdbf
libdbf is a C-library for reading dbase files.

71
libdbf.spec Normal file
View File

@ -0,0 +1,71 @@
Name: libdbf
Version: 0.0.1
Release: 1mamba
Summary: A C-library for reading dbase files
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Stefano Cotta Ramusino <stefano.cotta@openmamba.org>
URL: http://dbf.berlios.de/
Source: http://download.berlios.de/dbf/libdbf-%{version}.src.zip
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
libdbf is a C-library for reading dbase files.
%package devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description devel
This package contains libraries and header files for developing applications that use %{name}.
%prep
%setup -q -n %{name}
chmod 755 configure install-sh
(cd src; \
mv {,my}endian.h; \
sed -i "s,\(endian\.h\),my\1," *.{c,h,in} \
)
%build
%configure \
--disable-static
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
find %{buildroot}%{_libdir} -name '*.la' -delete
%find_lang %{name} || touch %{name}.lang
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root)
%{_libdir}/*.so.*
%doc COPYING
%files devel
%defattr(-,root,root)
%{_includedir}/libdbf
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%doc ChangeLog README
%changelog
* Wed Jul 04 2012 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 0.0.1-1mamba
- package created by autospec