From 7f766c79c7db3a3091721459f752c84a0d113d08 Mon Sep 17 00:00:00 2001 From: James Antill Date: Thu, 26 May 2022 15:38:20 -0400 Subject: [PATCH] Auto sync2gitlab import of tinycdb-0.78-9.el8.src.rpm --- .gitignore | 1 + EMPTY | 1 - libcdb.pc | 12 ++++++ sources | 1 + tinycdb.spec | 112 +++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 126 insertions(+), 1 deletion(-) create mode 100644 .gitignore delete mode 100644 EMPTY create mode 100644 libcdb.pc create mode 100644 sources create mode 100644 tinycdb.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..800d4d2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/tinycdb-0.78.tar.gz diff --git a/EMPTY b/EMPTY deleted file mode 100644 index 0519ecb..0000000 --- a/EMPTY +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/libcdb.pc b/libcdb.pc new file mode 100644 index 0000000..b6a54eb --- /dev/null +++ b/libcdb.pc @@ -0,0 +1,12 @@ +# Package Information for pkg-config + +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: libcdb +Description: tinycdb - Constant Data Base library +Version: 0.78 +Libs: -L${libdir} -lcdb +Cflags: -I${includedir} diff --git a/sources b/sources new file mode 100644 index 0000000..506a63b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (tinycdb-0.78.tar.gz) = 8930086b8e7fddcd4dbd3354c5f5ee05171df68fde1cc222b6c402430042b6e761efbad7e5fa8de18e1d36390f1526cc3e605c5086fe1c363ba1df6c03201553 diff --git a/tinycdb.spec b/tinycdb.spec new file mode 100644 index 0000000..504fd50 --- /dev/null +++ b/tinycdb.spec @@ -0,0 +1,112 @@ +Name: tinycdb +Summary: Utility and library for manipulating constant databases +Version: 0.78 +Release: 9%{?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 +# taken from the 0.77 tarball +Source1: libcdb.pc + +%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}%{?_isa} = %{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 +cp %{SOURCE1} debian/ +# Fix libdir pathing in pkgconfig file. +sed -i -e 's\/lib\/%{_lib}\g' debian/libcdb.pc + +%build +make %{?_smp_mflags} staticlib sharedlib cdb-shared CFLAGS="%{optflags}" + +%install +mkdir -p %{buildroot}%{_libdir} +make DESTDIR=%{buildroot} prefix=%{_prefix} libdir=%{_libdir} mandir=%{_mandir} \ + install 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 + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%doc NEWS ChangeLog +%{_bindir}/cdb +%{_mandir}/man1/*.1* +%{_mandir}/man5/*.5* +%{_libdir}/*.so.* + +%files devel +%{_includedir}/*.h +%{_mandir}/man3/*.3* +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc + +%changelog +* Fri Feb 09 2018 Fedora Release Engineering - 0.78-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 03 2017 Fedora Release Engineering - 0.78-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 0.78-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.78-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Fri Feb 05 2016 Fedora Release Engineering - 0.78-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Fri Jun 19 2015 Fedora Release Engineering - 0.78-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Mon Aug 18 2014 Fedora Release Engineering - 0.78-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sun Jun 08 2014 Fedora Release Engineering - 0.78-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Tue Apr 22 2014 Tom Callaway - 0.78-1 +- update to 0.78 + +* Sun Aug 04 2013 Fedora Release Engineering - 0.77-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Fri Feb 15 2013 Fedora Release Engineering - 0.77-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sat Jul 21 2012 Fedora Release Engineering - 0.77-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon Mar 26 2012 Tom Callaway - 0.77-4 +- revive + +* Wed Feb 09 2011 Fedora Release Engineering - 0.77-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Jul 13 2010 Chen Lei - 0.77-2 +- add pkgconfig file + +* Wed Jul 07 2010 Chen Lei - 0.77-1 +- initial rpm build