SPECS: ustr.spec - turned a joke into spec - updated to 1.0.2

qboosh qboosh at pld-linux.org
Tue Oct 30 19:56:29 CET 2007


Author: qboosh                       Date: Tue Oct 30 18:56:29 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- turned a joke into spec
- updated to 1.0.2

---- Files affected:
SPECS:
   ustr.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SPECS/ustr.spec
diff -u SPECS/ustr.spec:1.2 SPECS/ustr.spec:1.3
--- SPECS/ustr.spec:1.2	Wed Oct 17 21:07:50 2007
+++ SPECS/ustr.spec	Tue Oct 30 19:56:24 2007
@@ -1,80 +1,70 @@
 # $Revision$, $Date$
-#
-# Conditional build:
-%bcond_with	tests		# build with tests
-%bcond_without	tests		# build without tests
-#
-Summary:	-
-Summary(pl.UTF-8):	-
+Summary:	String library with very low memory overhead
+Summary(pl.UTF-8):	Biblioteka operacji na łańcuchach o małym narzucie pamięciowym
 Name:		ustr
-Version:	1.0.1
+Version:	1.0.2
 Release:	0.1
-License:	- (enter GPL/GPL v2/LGPL/BSD/BSD-like/other license name here)
-Group:		Applications
-Source0:	http://www.and.org/ustr/%{version}//%{name}-%{version}.tar.bz2
-# Source0-md5:	794dcbac77a2154e8e98865265d37cd5
+License:	LGPL v2+ or BSD or MIT
+Group:		Libraries
+Source0:	http://www.and.org/ustr/%{version}/%{name}-%{version}.tar.bz2
+# Source0-md5:	031846d6e6f86530752bcab9b2eed9e7
 URL:		http://www.and.org/ustr/
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
+Micro string library, very low overhead from plain strdup() (Ave. 44%%
+for 0-20B strings). Very easy to use in existing C code.
 
 %description -l pl.UTF-8
-
-%package subpackage
-Summary:	-
-Summary(pl.UTF-8):	-
-Group:		-
-
-%description subpackage
-
-%description subpackage -l pl.UTF-8
-
-%package libs
-Summary:	-
-Summary(pl.UTF-8):	-
-Group:		Libraries
-
-%description libs
-
-%description libs -l pl.UTF-8
+Malutka biblioteka operacji na łańcuchach znaków, mająca bardzo mały
+narzut pamięciowy w stosunku do zwykłego strdup() (średnio 44%% dla
+łańcuchów 0-20B). Bardzo łatwa w użyciu w istniejącym kodzie w C.
 
 %package devel
-Summary:	Header files for ... library
-Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki ...
+Summary:	Header files for ustr library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki ustr
 Group:		Development/Libraries
-# if base package contains shared library for which these headers are
-#Requires:	%{name} = %{version}-%{release}
-# if -libs package contains shared library for which these headers are
-#Requires:	%{name}-libs = %{version}-%{release}
+Requires:	%{name} = %{version}-%{release}
 
 %description devel
-Header files for ... library.
+Header files for ustr library.
 
 %description devel -l pl.UTF-8
-Pliki nagłówkowe biblioteki ....
+Pliki nagłówkowe biblioteki ustr.
 
 %package static
-Summary:	Static ... library
-Summary(pl.UTF-8):	Statyczna biblioteka ...
+Summary:	Static ustr library
+Summary(pl.UTF-8):	Statyczna biblioteka ustr
 Group:		Development/Libraries
 Requires:	%{name}-devel = %{version}-%{release}
 
 %description static
-Static ... library.
+Static ustr library.
 
 %description static -l pl.UTF-8
-Statyczna biblioteka ....
+Statyczna biblioteka ustr.
 
 %prep
 %setup -q
 
 %build
-%{__make} all-shared
+%{__make} all-shared \
+	CC="%{__cc}" \
+	CFLAGS="%{rpmcflags}" \
+	LDFLAGS="%{rpmldflags}" \
+	LIB_SHARED='$(OPT_LIB_SHARED)' \
+	LIB_STATIC='$(OPT_LIB_STATIC)' \
+	HIDE=
 
 %install
 rm -rf $RPM_BUILD_ROOT
+
 %{__make} install \
-	DESTDIR=$RPM_BUILD_ROOT
+	DESTDIR=$RPM_BUILD_ROOT \
+	mandir=%{_mandir} \
+	LIB_SHARED='$(OPT_LIB_SHARED)' \
+	LIB_STATIC='$(OPT_LIB_STATIC)' \
+	LDCONFIG=true
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -84,15 +74,23 @@
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS README THANKS TODO
-%attr(755,root,root) %{_bindir}/*
-%{_libdir}/libustr-1.0.so.1.0.1
+%doc AUTHORS ChangeLog LICENSE LICENSE_BSD LICENSE_MIT NEWS README THANKS TODO
+%attr(755,root,root) %{_libdir}/libustr-1.0.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libustr-1.0.so.1
 
 %files devel
-%{_includedir}/*.h
-/usr/lib/pkgconfig/ustr.pc
+%defattr(644,root,root,755)
+%doc Documentation/*.html 'Documentation/strdup vs. ustr.gnumeric'
+%attr(755,root,root) %{_bindir}/ustr-import
+%attr(755,root,root) %{_libdir}/libustr.so
+%{_includedir}/ustr*.h
+%{_datadir}/ustr-%{version}
+%{_pkgconfigdir}/ustr.pc
+%{_mandir}/man1/ustr-import.1*
+%{_mandir}/man3/ustr*.3*
 
 %files static
+%defattr(644,root,root,755)
 %{_libdir}/libustr.a
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -101,6 +99,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2007/10/30 18:56:24  qboosh
+- turned a joke into spec
+- updated to 1.0.2
+
 Revision 1.2  2007/10/17 19:07:50  zbyniu
 - raw
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/ustr.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list