Blame SPECS/ustr.spec

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