|
|
cce7fd7 |
|
|
|
cce7fd7 |
Name: ustr
|
|
|
cce7fd7 |
Version: 1.0.1
|
|
|
fda5fa1 |
Release: 5%{?dist}
|
|
|
cce7fd7 |
Summary: String library, very low memory overhead, simple to import
|
|
|
cce7fd7 |
Group: System Environment/Libraries
|
|
|
cce7fd7 |
License: MIT or LGPLv2+ or BSD
|
|
|
cce7fd7 |
URL: http://www.and.org/ustr/
|
|
|
cce7fd7 |
Source0: http://www.and.org/ustr/%{version}/%{name}-%{version}.tar.gz
|
|
|
fda5fa1 |
Patch0: inst_examples.patch
|
|
|
fda5fa1 |
Patch1: html_doc_fixes.patch
|
|
|
fda5fa1 |
Patch2: import_repl.patch
|
|
|
cce7fd7 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
cce7fd7 |
# BuildRequires: make gcc sed
|
|
|
cce7fd7 |
|
|
|
cce7fd7 |
%description
|
|
|
cce7fd7 |
Micro string library, very low overhead from plain strdup() (Ave. 44% for
|
|
|
cce7fd7 |
0-20B strings). Very easy to use in existing C code. At it's simplest you can
|
|
|
cce7fd7 |
just include a single header file into your .c and start using it.
|
|
|
cce7fd7 |
This package also distributes pre-built shared libraries.
|
|
|
cce7fd7 |
|
|
|
cce7fd7 |
%package devel
|
|
|
cce7fd7 |
Summary: Development files for %{name}
|
|
|
cce7fd7 |
Group: Development/Libraries
|
|
|
cce7fd7 |
# This isn't required, but Fedora policy makes it so
|
|
|
cce7fd7 |
Requires: pkgconfig >= 0.14
|
|
|
cce7fd7 |
Requires: %{name} = %{version}-%{release}
|
|
|
cce7fd7 |
|
|
|
cce7fd7 |
%description devel
|
|
|
cce7fd7 |
Header files for the Ustr string library, and the .so to link with.
|
|
|
cce7fd7 |
Also includes a %{name}.pc file for pkg-config usage.
|
|
|
cce7fd7 |
Includes the ustr-import tool, for if you jsut want to include
|
|
|
cce7fd7 |
the code in your projects ... you don't have to link to the shared lib.
|
|
|
cce7fd7 |
|
|
|
cce7fd7 |
%package static
|
|
|
cce7fd7 |
Summary: Static development files for %{name}
|
|
|
cce7fd7 |
Group: Development/Libraries
|
|
|
cce7fd7 |
Requires: %{name}-devel = %{version}-%{release}
|
|
|
cce7fd7 |
|
|
|
cce7fd7 |
%description static
|
|
|
cce7fd7 |
Static library for the Ustr string library.
|
|
|
cce7fd7 |
|
|
|
cce7fd7 |
%package debug
|
|
|
cce7fd7 |
Summary: Development files for %{name}, with debugging options turned on
|
|
|
cce7fd7 |
Group: Development/Libraries
|
|
|
cce7fd7 |
# This isn't required, but Fedora policy makes it so
|
|
|
cce7fd7 |
Requires: pkgconfig >= 0.14
|
|
|
cce7fd7 |
Requires: %{name}-devel = %{version}-%{release}
|
|
|
cce7fd7 |
|
|
|
cce7fd7 |
%description debug
|
|
|
cce7fd7 |
Header files and dynamic libraries for a debug build of the Ustr string
|
|
|
cce7fd7 |
library.
|
|
|
cce7fd7 |
Also includes a %{name}-debug.pc file for pkg-config usage.
|
|
|
cce7fd7 |
|
|
|
cce7fd7 |
%package debug-static
|
|
|
cce7fd7 |
Summary: Static development files for %{name}, with debugging options turned on
|
|
|
cce7fd7 |
Group: Development/Libraries
|
|
|
cce7fd7 |
Requires: %{name}-debug = %{version}-%{release}
|
|
|
cce7fd7 |
|
|
|
cce7fd7 |
%description debug-static
|
|
|
cce7fd7 |
Static library for the debug build of the Ustr string library.
|
|
|
cce7fd7 |
|
|
|
cce7fd7 |
%prep
|
|
|
cce7fd7 |
%setup -q
|
|
|
cce7fd7 |
|
|
|
fda5fa1 |
%patch0 -p1
|
|
|
fda5fa1 |
%patch1 -p0
|
|
|
fda5fa1 |
%patch2 -p1
|
|
|
fda5fa1 |
|
|
|
cce7fd7 |
%build
|
|
|
cce7fd7 |
# Last variable name explains itself.
|
|
|
cce7fd7 |
make %{?_smp_mflags} all-shared CFLAGS="${CFLAGS:-%optflags}" HIDE= \
|
|
|
cce7fd7 |
DBG_ONLY_BAD_POLICIES_HAVE_THIS_EMPTY_CFLAGS=
|
|
|
cce7fd7 |
|
|
|
cce7fd7 |
%check
|
|
|
cce7fd7 |
%if %{?chk}%{!?chk:1}
|
|
|
cce7fd7 |
make check HIDE=
|
|
|
cce7fd7 |
%endif
|
|
|
cce7fd7 |
|
|
|
cce7fd7 |
%install
|
|
|
cce7fd7 |
rm -rf $RPM_BUILD_ROOT
|
|
|
cce7fd7 |
make $@ install prefix=%{_prefix} \
|
|
|
cce7fd7 |
bindir=%{_bindir} mandir=%{_mandir} \
|
|
|
cce7fd7 |
datadir=%{_datadir} libdir=%{_libdir} \
|
|
|
cce7fd7 |
includedir=%{_includedir} \
|
|
|
cce7fd7 |
DESTDIR=$RPM_BUILD_ROOT LDCONFIG=/bin/true HIDE=
|
|
|
cce7fd7 |
|
|
|
cce7fd7 |
%clean
|
|
|
cce7fd7 |
rm -rf $RPM_BUILD_ROOT
|
|
|
cce7fd7 |
|
|
|
cce7fd7 |
%post -p /sbin/ldconfig
|
|
|
cce7fd7 |
|
|
|
cce7fd7 |
%postun -p /sbin/ldconfig
|
|
|
cce7fd7 |
|
|
|
cce7fd7 |
%post debug -p /sbin/ldconfig
|
|
|
cce7fd7 |
|
|
|
cce7fd7 |
%postun debug -p /sbin/ldconfig
|
|
|
cce7fd7 |
|
|
|
cce7fd7 |
%files
|
|
|
cce7fd7 |
%defattr(-,root,root,-)
|
|
|
cce7fd7 |
%{_libdir}/libustr-1.0.so.*
|
|
|
cce7fd7 |
%doc ChangeLog LICENSE* README NEWS
|
|
|
cce7fd7 |
|
|
|
cce7fd7 |
%files devel
|
|
|
cce7fd7 |
%defattr(-,root,root,-)
|
|
|
cce7fd7 |
%{_datadir}/ustr-%{version}
|
|
|
cce7fd7 |
%{_bindir}/ustr-import
|
|
|
cce7fd7 |
%{_includedir}/ustr.h
|
|
|
cce7fd7 |
%{_includedir}/ustr-*.h
|
|
|
cce7fd7 |
%exclude %{_includedir}/ustr*debug.h
|
|
|
cce7fd7 |
%{_libdir}/pkgconfig/ustr.pc
|
|
|
cce7fd7 |
%{_libdir}/libustr.so
|
|
|
cce7fd7 |
%{_datadir}/doc/ustr-devel-%{version}
|
|
|
cce7fd7 |
%{_mandir}/man1/*
|
|
|
cce7fd7 |
%{_mandir}/man3/*
|
|
|
cce7fd7 |
|
|
|
cce7fd7 |
%files static
|
|
|
cce7fd7 |
%{_libdir}/libustr.a
|
|
|
cce7fd7 |
|
|
|
cce7fd7 |
%files debug
|
|
|
cce7fd7 |
%defattr(-,root,root,-)
|
|
|
cce7fd7 |
%{_libdir}/libustr-debug-1.0.so.*
|
|
|
cce7fd7 |
%{_libdir}/libustr-debug.so
|
|
|
cce7fd7 |
%{_includedir}/ustr-debug.h
|
|
|
cce7fd7 |
%{_includedir}/ustr-conf-debug.h
|
|
|
cce7fd7 |
%{_libdir}/pkgconfig/ustr-debug.pc
|
|
|
cce7fd7 |
|
|
|
cce7fd7 |
%files debug-static
|
|
|
cce7fd7 |
%{_libdir}/libustr-debug.a
|
|
|
cce7fd7 |
|
|
|
cce7fd7 |
|
|
|
cce7fd7 |
%changelog
|
|
|
fda5fa1 |
* Wed Aug 8 2007 James Antill <james@and.org> - 1.0.1-5
|
|
|
fda5fa1 |
- Import fix for ustr-import, wrt. repl <=> replace
|
|
|
fda5fa1 |
|
|
|
fda5fa1 |
* Sun Aug 5 2007 James Antill <james@and.org> - 1.0.1-4
|
|
|
fda5fa1 |
- Patches for minor GIT HEAD documentation fixes.
|
|
|
fda5fa1 |
- Install mkdir_p and fgrep examples.
|
|
|
fda5fa1 |
|
|
|
cce7fd7 |
* Sat Aug 4 2007 James Antill <james@and.org> - 1.0.1-2
|
|
|
cce7fd7 |
- First upload to Fedora repos.
|
|
|
cce7fd7 |
|
|
|
cce7fd7 |
* Fri Aug 3 2007 James Antill <james@and.org> - 1.0.1-0.10.fc7
|
|
|
cce7fd7 |
- Re-fix dups in -devel and -debug file lists.
|
|
|
cce7fd7 |
- Change license to new format
|
|
|
cce7fd7 |
|
|
|
cce7fd7 |
* Thu Aug 2 2007 James Antill <james@and.org> - 1.0.1-0.9.fc7
|
|
|
cce7fd7 |
- Fix dups in -devel and -debug file lists.
|
|
|
cce7fd7 |
|
|
|
cce7fd7 |
* Wed Aug 1 2007 James Antill <james@and.org> - 1.0.1-0.8.fc7
|
|
|
cce7fd7 |
- Required to make DBG_ONLY_BAD_POLICIES_HAVE_THIS_EMPTY_CFLAGS empty
|
|
|
cce7fd7 |
- due to so called "review"
|
|
|
cce7fd7 |
|
|
|
cce7fd7 |
* Fri Jul 27 2007 James Antill <james@and.org> - 1.0.1-0.2.fc7
|
|
|
cce7fd7 |
- Next test release of 1.0.1, lots of fixes from Fedora review.
|
|
|
cce7fd7 |
|
|
|
cce7fd7 |
* Wed Jul 25 2007 James Antill <james@and.org> - 1.0.1-0
|
|
|
cce7fd7 |
- Test release of 1.0.1.
|
|
|
cce7fd7 |
|
|
|
cce7fd7 |
* Wed Jul 11 2007 James Antill <james@and.org> - 1.0.0-1
|
|
|
cce7fd7 |
- Upgrade to 1.0.0
|
|
|
cce7fd7 |
- Minor fixes on specfile
|
|
|
cce7fd7 |
|
|
|
cce7fd7 |
* Sun Jun 3 2007 James Antill <james@and.org> - 0.99.2-1
|
|
|
cce7fd7 |
- Upgrade to 0.99.2
|
|
|
cce7fd7 |
|
|
|
cce7fd7 |
* Thu May 24 2007 James Antill <james@and.org> - 0.99.1-2
|
|
|
cce7fd7 |
- Fix ver typo to be version.
|
|
|
cce7fd7 |
|
|
|
cce7fd7 |
* Fri May 18 2007 James Antill <james@and.org> - 0.99.1-1
|
|
|
cce7fd7 |
- Use all-shared to get GCC-ish specific shared libs.
|
|
|
cce7fd7 |
|
|
|
cce7fd7 |
* Mon May 14 2007 James Antill <james@and.org> - 0.98.1-0
|
|
|
cce7fd7 |
- Initial spec
|
|
|
cce7fd7 |
|