|
|
cf4e32 |
|
|
|
cf4e32 |
%define show_all_cmds 1
|
|
|
cf4e32 |
%define broken_fed_dbg_opts 0
|
|
|
cf4e32 |
%define multilib_inst 1
|
|
|
cf4e32 |
|
|
|
cf4e32 |
%if %{show_all_cmds}
|
|
|
cf4e32 |
%define policy_cflags_hide HIDE=
|
|
|
cf4e32 |
%else
|
|
|
cf4e32 |
%define policy_cflags_hide %{nil}
|
|
|
cf4e32 |
%endif
|
|
|
cf4e32 |
|
|
|
cf4e32 |
%if %{broken_fed_dbg_opts}
|
|
|
cf4e32 |
# Variable name explains itself.
|
|
|
cf4e32 |
%define policy_cflags_broken DBG_ONLY_BAD_POLICIES_HAVE_THIS_EMPTY_CFLAGS=
|
|
|
cf4e32 |
%else
|
|
|
cf4e32 |
%define policy_cflags_broken %{nil}
|
|
|
cf4e32 |
%endif
|
|
|
cf4e32 |
|
|
|
cf4e32 |
%define policy_cflags %{policy_cflags_hide} %{policy_cflags_broken}
|
|
|
cf4e32 |
|
|
|
cf4e32 |
%if %{multilib_inst}
|
|
|
cf4e32 |
%define ustr_make_install install-multilib-linux
|
|
|
cf4e32 |
%else
|
|
|
cf4e32 |
%define ustr_make_install install
|
|
|
cf4e32 |
%endif
|
|
|
cf4e32 |
|
|
|
cf4e32 |
|
|
|
cf4e32 |
Name: ustr
|
|
|
cf4e32 |
Version: 1.0.4
|
|
|
cf4e32 |
Release: 26%{?dist}
|
|
|
cf4e32 |
Summary: String library, very low memory overhead, simple to import
|
|
|
cf4e32 |
Group: System Environment/Libraries
|
|
|
cf4e32 |
License: MIT or LGPLv2+ or BSD
|
|
|
cf4e32 |
URL: http://www.and.org/ustr/
|
|
|
cf4e32 |
Source0: http://www.and.org/ustr/%{version}/%{name}-%{version}.tar.bz2
|
|
|
cf4e32 |
Patch0: c99-inline.patch
|
|
|
cf4e32 |
# BuildRequires: make gcc sed
|
|
|
cf4e32 |
|
|
|
cf4e32 |
%description
|
|
|
cf4e32 |
Micro string library, very low overhead from plain strdup() (Ave. 44% for
|
|
|
cf4e32 |
0-20B strings). Very easy to use in existing C code. At it's simplest you can
|
|
|
cf4e32 |
just include a single header file into your .c and start using it.
|
|
|
cf4e32 |
This package also distributes pre-built shared libraries.
|
|
|
cf4e32 |
|
|
|
cf4e32 |
%package devel
|
|
|
cf4e32 |
Summary: Development files for %{name}
|
|
|
cf4e32 |
Group: Development/Libraries
|
|
|
cf4e32 |
# This isn't required, but Fedora policy makes it so
|
|
|
cf4e32 |
Requires: pkgconfig >= 0.14
|
|
|
cf4e32 |
Requires: %{name} = %{version}-%{release}
|
|
|
cf4e32 |
|
|
|
cf4e32 |
%description devel
|
|
|
cf4e32 |
Header files for the Ustr string library, and the .so to link with.
|
|
|
cf4e32 |
Also includes a %{name}.pc file for pkg-config usage.
|
|
|
cf4e32 |
Includes the ustr-import tool, for if you jsut want to include
|
|
|
cf4e32 |
the code in your projects ... you don't have to link to the shared lib.
|
|
|
cf4e32 |
|
|
|
cf4e32 |
%package static
|
|
|
cf4e32 |
Summary: Static development files for %{name}
|
|
|
cf4e32 |
Group: Development/Libraries
|
|
|
cf4e32 |
Requires: %{name}-devel = %{version}-%{release}
|
|
|
cf4e32 |
|
|
|
cf4e32 |
%description static
|
|
|
cf4e32 |
Static library for the Ustr string library.
|
|
|
cf4e32 |
|
|
|
cf4e32 |
%package debug
|
|
|
cf4e32 |
Summary: Development files for %{name}, with debugging options turned on
|
|
|
cf4e32 |
Group: Development/Libraries
|
|
|
cf4e32 |
# This isn't required, but Fedora policy makes it so
|
|
|
cf4e32 |
Requires: pkgconfig >= 0.14
|
|
|
cf4e32 |
Requires: %{name}-devel = %{version}-%{release}
|
|
|
cf4e32 |
|
|
|
cf4e32 |
%description debug
|
|
|
cf4e32 |
Header files and dynamic libraries for a debug build of the Ustr string
|
|
|
cf4e32 |
library.
|
|
|
cf4e32 |
Also includes a %{name}-debug.pc file for pkg-config usage.
|
|
|
cf4e32 |
|
|
|
cf4e32 |
%package debug-static
|
|
|
cf4e32 |
Summary: Static development files for %{name}, with debugging options turned on
|
|
|
cf4e32 |
Group: Development/Libraries
|
|
|
cf4e32 |
Requires: %{name}-debug = %{version}-%{release}
|
|
|
cf4e32 |
|
|
|
cf4e32 |
%description debug-static
|
|
|
cf4e32 |
Static library for the debug build of the Ustr string library.
|
|
|
cf4e32 |
|
|
|
cf4e32 |
%prep
|
|
|
cf4e32 |
%setup -q
|
|
|
cf4e32 |
%patch0 -p1
|
|
|
cf4e32 |
|
|
|
cf4e32 |
%build
|
|
|
cf4e32 |
make %{?_smp_mflags} all-shared CFLAGS="${CFLAGS:-%optflags} -fgnu89-inline" \
|
|
|
cf4e32 |
LDFLAGS="$RPM_LD_FLAGS" %{policy_cflags}
|
|
|
cf4e32 |
|
|
|
cf4e32 |
%check
|
|
|
cf4e32 |
%if %{?chk}%{!?chk:1}
|
|
|
cf4e32 |
make %{?_smp_mflags} check CFLAGS="${CFLAGS:-%optflags} -fgnu89-inline"
|
|
|
cf4e32 |
LDFLAGS="$RPM_LD_FLAGS" %{policy_cflags}
|
|
|
cf4e32 |
%endif
|
|
|
cf4e32 |
|
|
|
cf4e32 |
%install
|
|
|
cf4e32 |
rm -rf $RPM_BUILD_ROOT
|
|
|
cf4e32 |
make $@ %{ustr_make_install} prefix=%{_prefix} \
|
|
|
cf4e32 |
bindir=%{_bindir} mandir=%{_mandir} \
|
|
|
cf4e32 |
datadir=%{_datadir} libdir=%{_libdir} \
|
|
|
cf4e32 |
includedir=%{_includedir} libexecdir=%{_libexecdir} \
|
|
|
cf4e32 |
DOCSHRDIR=%{_datadir}/doc/ustr-devel \
|
|
|
cf4e32 |
DESTDIR=$RPM_BUILD_ROOT LDCONFIG=/bin/true HIDE=
|
|
|
cf4e32 |
|
|
|
cf4e32 |
%post -p /sbin/ldconfig
|
|
|
cf4e32 |
|
|
|
cf4e32 |
%postun -p /sbin/ldconfig
|
|
|
cf4e32 |
|
|
|
cf4e32 |
%post debug -p /sbin/ldconfig
|
|
|
cf4e32 |
|
|
|
cf4e32 |
%postun debug -p /sbin/ldconfig
|
|
|
cf4e32 |
|
|
|
cf4e32 |
%files
|
|
|
cf4e32 |
%defattr(-,root,root,-)
|
|
|
cf4e32 |
%{_libdir}/libustr-1.0.so.*
|
|
|
cf4e32 |
%{!?_licensedir:%global license %%doc}
|
|
|
cf4e32 |
%license LICENSE*
|
|
|
cf4e32 |
%doc ChangeLog README NEWS
|
|
|
cf4e32 |
|
|
|
cf4e32 |
%files devel
|
|
|
cf4e32 |
%defattr(-,root,root,-)
|
|
|
cf4e32 |
%{_datadir}/ustr-%{version}
|
|
|
cf4e32 |
%{_bindir}/ustr-import
|
|
|
cf4e32 |
%if %{multilib_inst}
|
|
|
cf4e32 |
%{_libexecdir}/ustr-%{version}
|
|
|
cf4e32 |
%endif
|
|
|
cf4e32 |
%{_includedir}/ustr.h
|
|
|
cf4e32 |
%{_includedir}/ustr-*.h
|
|
|
cf4e32 |
%exclude %{_includedir}/ustr*debug*.h
|
|
|
cf4e32 |
%{_libdir}/pkgconfig/ustr.pc
|
|
|
cf4e32 |
%{_libdir}/libustr.so
|
|
|
cf4e32 |
%{_datadir}/doc/ustr-devel
|
|
|
cf4e32 |
%{_mandir}/man1/*
|
|
|
cf4e32 |
%{_mandir}/man3/*
|
|
|
cf4e32 |
|
|
|
cf4e32 |
%files static
|
|
|
cf4e32 |
%{_libdir}/libustr.a
|
|
|
cf4e32 |
|
|
|
cf4e32 |
%files debug
|
|
|
cf4e32 |
%defattr(-,root,root,-)
|
|
|
cf4e32 |
%{_libdir}/libustr-debug-1.0.so.*
|
|
|
cf4e32 |
%{_libdir}/libustr-debug.so
|
|
|
cf4e32 |
%{_includedir}/ustr*debug*.h
|
|
|
cf4e32 |
%{_libdir}/pkgconfig/ustr-debug.pc
|
|
|
cf4e32 |
|
|
|
cf4e32 |
%files debug-static
|
|
|
cf4e32 |
%{_libdir}/libustr-debug.a
|
|
|
cf4e32 |
|
|
|
cf4e32 |
|
|
|
cf4e32 |
%changelog
|
|
|
cf4e32 |
* Fri Feb 23 2018 Florian Weimer <fweimer@redhat.com> - 1.0.4-26
|
|
|
cf4e32 |
- Use LDFLAGS from redhat-rpm-config
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-25
|
|
|
cf4e32 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-24
|
|
|
cf4e32 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-23
|
|
|
cf4e32 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-22
|
|
|
cf4e32 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-21
|
|
|
cf4e32 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Fri Oct 30 2015 James Antill <james@fedoraproject.org> - 1.0.4-20
|
|
|
cf4e32 |
- Move doc/ustr-devel-<version> to doc/ustr-devel. BZ 993940.
|
|
|
cf4e32 |
- Use -fgnu89-inline workaround for gcc5.
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-19
|
|
|
cf4e32 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-18
|
|
|
cf4e32 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Wed Aug 6 2014 Tom Callaway <spot@fedoraproject.org> - 1.0.4-17
|
|
|
cf4e32 |
- fix license handling
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-16
|
|
|
cf4e32 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-15
|
|
|
cf4e32 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-14
|
|
|
cf4e32 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-13
|
|
|
cf4e32 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-12
|
|
|
cf4e32 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-11
|
|
|
cf4e32 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Tue Aug 11 2009 Ville Skyttä <ville.skytta@iki.fi> - 1.0.4-10
|
|
|
cf4e32 |
- Use bzipped upstream tarball.
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-9
|
|
|
cf4e32 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.4-8
|
|
|
cf4e32 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Fri Jun 13 2008 James Antill <james@fedoraproject.org> - 1.0.4-7
|
|
|
cf4e32 |
- Fix c99 inline problems, newer GCC
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Sun Mar 9 2008 James Antill <james@fedoraproject.org> - 1.0.4-6
|
|
|
cf4e32 |
- Fix dir. ownership bug.
|
|
|
cf4e32 |
- Resolves: rhbz#436711
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Wed Mar 5 2008 James Antill <james@fedoraproject.org> - 1.0.4-5
|
|
|
cf4e32 |
- New new upstream: 1.0.4
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Thu Feb 21 2008 Dennis Gilmore <dennis@ausil.us> - 1.0.3-5
|
|
|
cf4e32 |
- set broken_fed_dbg_opts to 0 its the recomended option upstream
|
|
|
cf4e32 |
- this works around sparc GCC problems
|
|
|
cf4e32 |
- add smpflags and cflags to make check
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Wed Feb 13 2008 James Antill <james@fedoraproject.org> - 1.0.3-4
|
|
|
cf4e32 |
- Preserve timestamps for shared multilib. files.
|
|
|
cf4e32 |
- Relates: bug#343351
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Sun Feb 10 2008 James Antill <james@fedoraproject.org> - 1.0.3-3
|
|
|
cf4e32 |
- Add upstream multilib patch for ustr-import
|
|
|
cf4e32 |
- Resolves: bug#343351
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Mon Jan 14 2008 James Antill <james@fedoraproject.org> - 1.0.3-2
|
|
|
cf4e32 |
- Build new upstream in Fedora
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Tue Oct 30 2007 James Antill <james@and.org> - 1.0.2-2
|
|
|
cf4e32 |
- Build new upstream in Fedora
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Mon Oct 29 2007 James Antill <james@and.org> - 1.0.2-1
|
|
|
cf4e32 |
- New release
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Tue Aug 28 2007 James Antill <jantill@redhat.com> - 1.0.1-6
|
|
|
cf4e32 |
- Add options for fedora policy brokeness, so it's easy to undo.
|
|
|
cf4e32 |
- Rebuild for buildid.
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Wed Aug 8 2007 James Antill <james@and.org> - 1.0.1-5
|
|
|
cf4e32 |
- Import fix for ustr-import, wrt. repl <=> replace
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Sun Aug 5 2007 James Antill <james@and.org> - 1.0.1-4
|
|
|
cf4e32 |
- Patches for minor GIT HEAD documentation fixes.
|
|
|
cf4e32 |
- Install mkdir_p and fgrep examples.
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Sat Aug 4 2007 James Antill <james@and.org> - 1.0.1-2
|
|
|
cf4e32 |
- First upload to Fedora repos.
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Fri Aug 3 2007 James Antill <james@and.org> - 1.0.1-0.10.fc7
|
|
|
cf4e32 |
- Re-fix dups in -devel and -debug file lists.
|
|
|
cf4e32 |
- Change license to new format
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Thu Aug 2 2007 James Antill <james@and.org> - 1.0.1-0.9.fc7
|
|
|
cf4e32 |
- Fix dups in -devel and -debug file lists.
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Wed Aug 1 2007 James Antill <james@and.org> - 1.0.1-0.8.fc7
|
|
|
cf4e32 |
- Required to make DBG_ONLY_BAD_POLICIES_HAVE_THIS_EMPTY_CFLAGS empty
|
|
|
cf4e32 |
- due to so called "review"
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Fri Jul 27 2007 James Antill <james@and.org> - 1.0.1-0.2.fc7
|
|
|
cf4e32 |
- Next test release of 1.0.1, lots of fixes from Fedora review.
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Wed Jul 25 2007 James Antill <james@and.org> - 1.0.1-0
|
|
|
cf4e32 |
- Test release of 1.0.1.
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Wed Jul 11 2007 James Antill <james@and.org> - 1.0.0-1
|
|
|
cf4e32 |
- Upgrade to 1.0.0
|
|
|
cf4e32 |
- Minor fixes on specfile
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Sun Jun 3 2007 James Antill <james@and.org> - 0.99.2-1
|
|
|
cf4e32 |
- Upgrade to 0.99.2
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Thu May 24 2007 James Antill <james@and.org> - 0.99.1-2
|
|
|
cf4e32 |
- Fix ver typo to be version.
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Fri May 18 2007 James Antill <james@and.org> - 0.99.1-1
|
|
|
cf4e32 |
- Use all-shared to get GCC-ish specific shared libs.
|
|
|
cf4e32 |
|
|
|
cf4e32 |
* Mon May 14 2007 James Antill <james@and.org> - 0.98.1-0
|
|
|
cf4e32 |
- Initial spec
|
|
|
cf4e32 |
|