Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37737404
en ru br
ALT Linux repositórios
S:1.0.4-alt5

Group :: Sistema/Bibliotecas
RPM: ustr

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%def_disable static
Name: ustr
Version: 1.0.4
Release: alt5
Summary: String library, very low memory overhead, simple to import
Group: System/Libraries
License: MIT or LGPLv2+ or BSD
Url: http://www.and.org/ustr/
Source0: http://www.and.org/ustr/%version/%name-%version.tar.gz
# FC
Patch1: c99-inline.patch
%description
Micro string library, very low overhead from plain strdup() (Ave. 44%% for
0-20B strings). Very easy to use in existing C code. At it's simplest you can
just include a single header file into your .c and start using it.
This package also distributes pre-built shared libraries.


%package -n lib%name
Summary: String library, very low memory overhead, simple to import
Group: System/Libraries

%description -n lib%name
Micro string library, very low overhead from plain strdup() (Ave. 44%% for
0-20B strings). Very easy to use in existing C code. At it's simplest you can
just include a single header file into your .c and start using it.
This package also distributes pre-built shared libraries.

%description -n lib%name
Micro string library, very low overhead from plain strdup() (Ave. 44%% for
0-20B strings). Very easy to use in existing C code. At it's simplest you can
just include a single header file into your .c and start using it.
This package also distributes pre-built shared libraries.

%package -n lib%name-devel
Summary: Development files for %name
Group: Development/C
Requires: pkg-config >= 0.14
Requires: lib%name = %version-%release

%description -n lib%name-devel
Header files for the Ustr string library, and the .so to link with.
Also includes a %name.pc file for pkg-config usage.
Includes the ustr-import tool, for if you jsut want to include
the code in your projects ... you don't have to link to the shared lib.

%package -n lib%name-devel-static
Summary: Static development files for %name
Group: Development/C
Requires: lib%name-devel = %version-%release

%description -n lib%name-devel-static
Static library for the Ustr string library.

%package -n lib%name-devel-debug
Summary: Development files for %name, with debugging options turned on
Group: Development/C
Requires: pkg-config >= 0.14
Requires: lib%name-devel = %version-%release

%description -n lib%name-devel-debug
Header files and dynamic libraries for a debug build of the Ustr string
library.
Also includes a %name-debug.pc file for pkg-config usage.

%package -n lib%name-devel-debug-static
Summary: Static development files for %name, with debugging options turned on
Group: Development/C
Requires: lib%name-devel-debug = %version-%release

%description -n lib%name-devel-debug-static
Static library for the debug build of the Ustr string library.

%prep
%setup -q
%patch1 -p1

%build
%add_optflags -fgnu89-inline
%make_build CFLAGS="${CFLAGS:-%optflags}" all-shared libustr.a ustr-import


%install
%makeinstall
%if_disabled static
rm -v %buildroot%_libdir/*.a
%endif

%files -n lib%name
%_libdir/libustr-1.0.so.*
%doc ChangeLog LICENSE* README NEWS

%files -n lib%name-devel
%_datadir/ustr-%version
%_bindir/ustr-import
%_includedir/ustr.h
%_includedir/ustr-*.h
%exclude %_includedir/ustr*debug*.h
%_libdir/pkgconfig/ustr.pc
%_libdir/libustr.so
%_datadir/doc/ustr-devel-%version
%_mandir/man1/*
%_mandir/man3/*

%if_enabled static
%files -n lib%name-devel-static
%_libdir/libustr.a
%endif

%files -n lib%name-devel-debug
%_libdir/libustr-debug-1.0.so.*
%_libdir/libustr-debug.so
%_includedir/ustr*debug*.h
%_libdir/pkgconfig/ustr-debug.pc

%if_enabled static
%files -n lib%name-devel-debug-static
%_libdir/libustr-debug.a
%endif

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009