From dc157e3f6e470a45b2fbc7ddaaaaba95fdf70cb1 Mon Sep 17 00:00:00 2001 From: supercyper Date: Wed, 14 Jul 2010 01:25:32 +0000 Subject: [PATCH] *** empty log message *** --- .cvsignore | 1 + sources | 1 + tinycdb.spec | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 73 insertions(+) create mode 100644 tinycdb.spec diff --git a/.cvsignore b/.cvsignore index e69de29..6ae5df4 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +tinycdb_0.77.tar.gz diff --git a/sources b/sources index e69de29..bd27c93 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +c00e5fb96c30356ac3b67b2ab5d5641b tinycdb_0.77.tar.gz diff --git a/tinycdb.spec b/tinycdb.spec new file mode 100644 index 0000000..64692f1 --- /dev/null +++ b/tinycdb.spec @@ -0,0 +1,71 @@ +Name: tinycdb +Summary: Utility and library for manipulating constant databases +Version: 0.77 +Release: 2%{?dist} +Group: System Environment/Libraries +License: Public Domain +URL: http://www.corpit.ru/mjt/tinycdb.html +Source0: http://www.corpit.ru/mjt/%{name}/%{name}_%{version}.tar.gz + +%description +tinycdb is a small, fast and reliable utility and subroutine library for +creating and reading constant databases. The database structure is tuned +for fast reading. + +This package contains tinycdb utility and shared library. + +%package devel +Summary: Development files for tinycdb +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +tinycdb is a small, fast and reliable utility set and subroutine +library for creating and reading constant databases. + +This package contains tinycdb development library and header file for +developing applications that use %{name}. + +%prep +%setup -q +sed -i -e 's\/lib\/%{_lib}\g' debian/libcdb.pc + +%build +make %{?_smp_mflags} staticlib sharedlib cdb-shared CFLAGS="%{optflags}" + +%install +%makeinstall install-sharedlib \ + INSTALLPROG=cdb-shared CP="cp -p" +chmod +x %{buildroot}%{_libdir}/*.so.* +rm -f %{buildroot}%{_libdir}/lib*.a +mkdir -p %{buildroot}%{_libdir}/pkgconfig +cp -p debian/libcdb.pc %{buildroot}%{_libdir}/pkgconfig/libcdb.pc + +%clean +rm -rf %{buildroot} + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc NEWS ChangeLog +%{_bindir}/cdb +%{_mandir}/man1/*.1* +%{_mandir}/man5/*.5* +%{_libdir}/*.so.* + +%files devel +%defattr(-,root,root,-) +%{_includedir}/*.h +%{_mandir}/man3/*.3* +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc + +%changelog +* Tue Jul 13 2010 Chen Lei - 0.77-2 +- add pkgconfig file + +* Wed Jul 07 2010 Chen Lei - 0.77-1 +- initial rpm build