1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
Name: libunistring
Version: 0.9.3
Release: 0
License: LGPL-3.0+ and GPL-3.0+
Summary: GNU Unicode string library
Url: http://www.gnu.org/software/libunistring/
Group: Development/Libraries/C and C++
Source: %{name}-%{version}.tar.bz2
%description
This portable C library implements Unicode string types in three flavours:
(UTF-8, UTF-16, UTF-32), together with functions for character processing
(names, classifications, properties) and functions for string processing
(iteration, formatted output, width, word breaks, line breaks, normalization,
case folding and regular expressions).
%package devel
Summary: GNU Unicode string library - development files
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: info
%description devel
Development files for programs using libunistring and documentation
for UniString library.
%prep
%setup -q
%build
%configure --disable-static --disable-rpath --docdir=%_docdir/%{name}
make %{?_smp_mflags}
%check
%if ! 0%{?qemu_user_space_build}
make check %{?_smp_mflags}
%endif
%install
echo " " > debugsources.list
%make_install DESTDIR=%{buildroot} INSTALL="install -p"
rm -f %{buildroot}/%{_infodir}/dir
rm -f %{buildroot}/%{_libdir}/libunistring.la
%remove_docs
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%license COPYING
%defattr(-,root,root)
%{_libdir}/libunistring.so.0*
%files devel
%defattr(-,root,root)
%{_libdir}/libunistring.so
%{_includedir}/unistring
%{_includedir}/*.h
|