libdbf/libdbf.spec

72 lines
1.6 KiB
RPMSpec
Raw Permalink Normal View History

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