diff --git a/.libestr.metadata b/.libestr.metadata new file mode 100644 index 0000000..ebd9134 --- /dev/null +++ b/.libestr.metadata @@ -0,0 +1 @@ +86e8c27ea5907ba29fcfcb5fc8d9465c9e597712 SOURCES/libestr-0.1.5.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 0e7897f..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 - -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/libestr-0.1.3-broken-configure-script.patch b/SOURCES/libestr-0.1.3-broken-configure-script.patch new file mode 100644 index 0000000..5bcab43 --- /dev/null +++ b/SOURCES/libestr-0.1.3-broken-configure-script.patch @@ -0,0 +1,14 @@ +diff -Naru a/configure b/configure +--- a/configure 2012-09-20 19:28:08.756010406 +0530 ++++ b/configure 2012-09-20 19:28:29.753010909 +0530 +@@ -5427,10 +5427,6 @@ + ;; + esac + ;; +-*) +- # fallback: assume linklib IS sharedlib +- lt_cv_sharedlib_from_linklib_cmd="$ECHO" +- ;; + esac + + fi diff --git a/SPECS/libestr.spec b/SPECS/libestr.spec new file mode 100644 index 0000000..de79e1e --- /dev/null +++ b/SPECS/libestr.spec @@ -0,0 +1,63 @@ +Name: libestr +Version: 0.1.5 +Release: 1%{?dist} +Summary: String handling essentials library + +License: LGPLv2+ +URL: http://libestr.adiscon.com/ +Source0: http://libestr.adiscon.com/files/download/libestr-%{version}.tar.gz +Patch0: libestr-0.1.3-broken-configure-script.patch + +%description +This package compiles the string handling essentials library +used by the Rsyslog daemon. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The package contains libraries and header files for +developing applications that use libestr. + +%prep +%setup -q +%patch0 -p1 -b broken-configure-script.patch + +%build +%configure --disable-static --with-pic +V=1 make %{?_smp_mflags} + +%install +make install INSTALL="install -p" DESTDIR=%{buildroot} +rm -f %{buildroot}/%{_libdir}/*.{a,la} + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%doc README COPYING AUTHORS ChangeLog +%{_libdir}/lib*.so.* + +%files devel +%{_includedir}/libestr.h +%{_libdir}/*.so +%{_libdir}/pkgconfig/libestr.pc + +%changelog +* Tue Apr 02 2013 Tomas Heinrich - 0.1.5-1 +- rebase to 0.1.5 + +* Wed Dec 12 2012 Mahaveer Darade - 0.1.4-1 +- upgrade to upstream version 0.1.4 +- correct an impossible timestamp in an older changelog entry + +* Thu Sep 20 2012 mdarade - 0.1.3-3 +- Fixed broken configure script + +* Mon Aug 27 2012 mdarade - 0.1.3-2 +- Removed unnecessary macros in spec file. + +* Tue Aug 7 2012 Mahaveer Darade - 0.1.3-1 +- Initial port libestr-0.1.3