]> git.pld-linux.org Git - packages/firestring.git/blob - firestring.spec
- tabs in preamble
[packages/firestring.git] / firestring.spec
1 Summary:        FireString - string handling library
2 Summary(pl.UTF-8):      FireString - biblioteka obsługująca łańcuchy znakowe
3 Name:           firestring
4 Version:        0.1.23
5 Release:        1
6 License:        GPL v2
7 Group:          Libraries
8 Source0:        http://messagewall.org/download/%{name}-%{version}.tar.gz
9 # Source0-md5:  f5d1b6fedbbd4137483efb3864d772b6
10 URL:            http://messagewall.org/firestring.html
11 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
12
13 %description
14 libfirestring is a string handling library that provides maximum
15 length aware string handling functions to programs. Several functions
16 provide saner interfaces than the standard libc functions.
17 libfirestring also provides functions that are in most libc's but not
18 provided for by POSIX, enabling programmers to write POSIX-compliant
19 code while using such safe functions (strcasecmp, strncasecmp,
20 snprintf).
21
22 %description -l pl.UTF-8
23 libfirestring to biblioteka obsługująca łańcuchy znakowe dostarczająca
24 funkcje obsługujące łańcuchy z kontrolą maksymalnej długości. Kilka
25 funkcji ma bardziej rozsądne interfejsy niż standardowe funkcje libc.
26 libfirestring dostarcza także funkcje, które są w większości libc, ale
27 nie są wymagane przez POSIX, co pozwala programistom pisać zgodny z
28 POSIX kod z użyciem tych bezpiecznych funkcji (strcasecmp,
29 strncasecmp, snprintf).
30
31 %package devel
32 Summary:        Header files for firestring library
33 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki firestring
34 Group:          Development/Libraries
35 Requires:       %{name} = %{version}-%{release}
36
37 %description devel
38 Header files for firestring library.
39
40 %description devel -l pl.UTF-8
41 Pliki nagłówkowe biblioteki firestring.
42
43 %package static
44 Summary:        Static firestring library
45 Summary(pl.UTF-8):      Statyczna biblioteka firestring
46 Group:          Development/Libraries
47 Requires:       %{name}-devel = %{version}-%{release}
48
49 %description static
50 Static firestring library.
51
52 %description static -l pl.UTF-8
53 Statyczna biblioteka firestring.
54
55 %prep
56 %setup -q -n %{name}
57
58 %build
59 # it's FireMake, not autoconf-generated configure
60 export CC="%{__cc}"
61 export CFLAGS="%{rpmcflags}"
62 ./configure
63
64 %{__make} \
65         SHAREDFLAGS="-shared -Wl,-soname=libfirestring.so"
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69
70 %{__make} install \
71         PREFIX=$RPM_BUILD_ROOT%{_prefix} \
72         MANDIR=$RPM_BUILD_ROOT%{_mandir} \
73         INSTALL_USER="`id -u`" \
74         INSTALL_GROUP="`id -g`"
75
76 %clean
77 rm -rf $RPM_BUILD_ROOT
78
79 %post   -p /sbin/ldconfig
80 %postun -p /sbin/ldconfig
81
82 %files
83 %defattr(644,root,root,755)
84 %doc README
85 %attr(755,root,root) %{_libdir}/libfirestring.so
86
87 %files devel
88 %defattr(644,root,root,755)
89 %{_includedir}/firestring.h
90 %{_mandir}/man3/*
91
92 %files static
93 %defattr(644,root,root,755)
94 %{_libdir}/libfirestring.a
This page took 0.078152 seconds and 3 git commands to generate.