diff --git a/README.md b/README.md index d2c5078..4e3026f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libdbf +libdbf is a C-library for reading dbase files. + diff --git a/libdbf.spec b/libdbf.spec new file mode 100644 index 0000000..82e74fd --- /dev/null +++ b/libdbf.spec @@ -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 +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 0.0.1-1mamba +- package created by autospec