SPECS: libstrlcpy.spec (NEW) - version is taken from cvs rcs date ...

glen glen at pld-linux.org
Mon Oct 3 17:42:08 CEST 2005


Author: glen                         Date: Mon Oct  3 15:42:08 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- version is taken from cvs rcs date tag and most recent from both of the files

---- Files affected:
SPECS:
   libstrlcpy.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/libstrlcpy.spec
diff -u /dev/null SPECS/libstrlcpy.spec:1.1
--- /dev/null	Mon Oct  3 17:42:08 2005
+++ SPECS/libstrlcpy.spec	Mon Oct  3 17:42:03 2005
@@ -0,0 +1,55 @@
+# $Revision$, $Date$
+Summary:	A library implementing OpenBSD strlcpy/strlcat functions.
+Name:		libstrlcpy
+%define		_snap 20050808
+Version:	0.%{_snap}
+Release:	0.1
+License:	BSD
+Group:		Libraries
+Source0:	ftp://ftp.openbsd.org/pub/OpenBSD/src/lib/libc/string/strlcpy.c
+# Source0-md5:	f25a1f8bdaa4b37ca89d571d84814c19
+Source1:	ftp://ftp.openbsd.org/pub/OpenBSD/src/lib/libc/string/strlcat.c
+# Source1-md5:	bf53a0fffc0d877812dbcc3aadb51b88
+Source2:	ftp://ftp.openbsd.org/pub/OpenBSD/src/lib/libc/string/strlcpy.3
+# Source2-md5:	b520c837f35bd97a1ff89456ecae7561
+URL:		http://mail.gnome.org/archives/gtk-list/2000-April/msg00249.html
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+strlcpy and strlcat - consistent, safe, string copy and concatenation.
+
+%prep
+%setup -q -c -T
+cp %{SOURCE0} .
+
+%build
+gcc %{rpmcflags} -c strlcpy.c
+gcc %{rpmcflags} -c strlcat.c
+gcc %{rpmldflags} strlcpy.o strlcat.o -o %{name}.so -shared
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_libdir},%{_mandir}/man3}
+install %{name}.so $RPM_BUILD_ROOT%{_libdir}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man3
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/*.so
+%{_mandir}/man3/*
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2005/10/03 15:42:03  glen
+- version is taken from cvs rcs date tag and most recent from both of the files
+
================================================================



More information about the pld-cvs-commit mailing list