diff --git a/html_doc_fixes.patch b/html_doc_fixes.patch new file mode 100644 index 0000000..9aab590 --- /dev/null +++ b/html_doc_fixes.patch @@ -0,0 +1,42 @@ +--- Documentation/index.html 2007-08-04 01:21:02.000000000 -0400 ++++ Documentation/index.html 2007-08-04 01:43:27.000000000 -0400 +@@ -39,7 +39,7 @@ + +

Micro String API - for C

+ +-

Download

++

Download - Version 1.0.1

+ +

You can get the stable release of 1.0.x here, it still + doesn't have 100% documentation but it's pretty close. You can get the current +@@ -693,8 +693,8 @@ + + ustr_free(s2); /* free'd one reference to the data pointed to by both s2 and s3 */ + +-ustr_set_share(s2); /* Make s2/s3 "shared" data, +- so it always has infinite references */ ++ustr_setf_share(s2); /* Make s2/s3 "shared" data, ++ so it always has infinite references */ + + if (ustr_shared(s2)) /* This is TRUE */ + /* whatever */ ; +@@ -718,8 +718,8 @@ + hence the explicit first check */ + /* error */ ; + +-ustr_set_owner(s2); /* Make s2 be "non-shared" and have a single owner */ +-ustr_set_owner(s1); /* This fails, as you can't make a read-only string be "non-shared" */ ++ustr_setf_owner(s2); /* Make s2 be "non-shared" and have a single owner */ ++ustr_setf_owner(s1); /* This fails, as you can't make a read-only string be "non-shared" */ + + ustr_sc_del(&s2); /* free'd s2 and set s2 = USTR("") */ + +@@ -742,7 +742,7 @@ +

James Antill
+ + +-Last modified: Sat Aug 4 01:21:02 EDT 2007 ++Last modified: Sat Aug 4 01:43:27 EDT 2007 + + + diff --git a/inst_examples.patch b/inst_examples.patch new file mode 100644 index 0000000..40bbc6f --- /dev/null +++ b/inst_examples.patch @@ -0,0 +1,15 @@ +diff --git a/Makefile b/Makefile +index 53edefe..1d6a55b 100644 +--- a/Makefile ++++ b/Makefile +@@ -76,7 +76,9 @@ EXAMPLES = examples/Makefile \ + examples/hexdump.c \ + examples/mkdir_p.c \ + examples/netstr.c \ +- examples/nums.c ++ examples/nums.c \ ++ examples/mkdir_p.c \ ++ examples/fgrep.c + + TST_ALL = tst_0_sizes tst_0_manual ctst_0_cntl \ + otst_0_sizes otst_0_manual octst_0_cntl \ diff --git a/ustr.spec b/ustr.spec index 5eb06be..1d38d4c 100644 --- a/ustr.spec +++ b/ustr.spec @@ -1,12 +1,14 @@ Name: ustr Version: 1.0.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: String library, very low memory overhead, simple to import Group: System Environment/Libraries License: MIT or LGPLv2+ or BSD URL: http://www.and.org/ustr/ Source0: http://www.and.org/ustr/%{version}/%{name}-%{version}.tar.gz +Patch0: inst_examples.patch +Patch1: html_doc_fixes.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) # BuildRequires: make gcc sed @@ -60,6 +62,9 @@ Requires: %{name}-debug = %{version}-%{release} %prep %setup -q +%patch0 -p1 +%patch1 -p1 + %build # Last variable name explains itself. make %{?_smp_mflags} all-shared CFLAGS="${CFLAGS:-%optflags}" HIDE= \ @@ -123,6 +128,10 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Sun Aug 5 2007 James Antill - 1.0.1-3 +- Patches for minor GIT HEAD documentation fixes. +- Install mkdir_p and fgrep examples. + * Sat Aug 4 2007 James Antill - 1.0.1-2 - First upload to Fedora repos.