3 %bcond_without static_libs # don't build static library
5 Summary: utf8proc library for NetSurf
6 Summary(pl.UTF-8): Biblioteka utf8proc dla projektu NetSurf
12 Source0: http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-3-src.tar.gz
13 # Source0-md5: c427797a2e3172a0ebef68b37b682124
14 Patch0: %{name}-build.patch
15 URL: http://www.netsurf-browser.org/projects/libutf8proc/
16 BuildRequires: netsurf-buildsystem >= 1.6
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 This is the Public Software Group utf8proc library [1] repackaged as a
21 conveniance library for NetSurf. Previously this library was simply
22 copied into the NetSurf sources.
24 This takes the Unicode 5 capable version 1.1.6 of the library and
25 converts it to the NetSurf build system. Additional API has been added
26 with a normalisation function but there are no data changes from
29 All the Makefiles and changes are licenced as per the utf8proc
30 source using the MIT "expat" licence.
32 [1] http://www.public-software-group.org/utf8proc
34 %description -l pl.UTF-8
35 Ten pakiet zawiera bibliotekę utf8proc [1] opublikowaną przez Public
36 Software Group, przepakowaną jako bibliotekę pomocniczą dla projektu
37 NetSuft. Wcześniej biblioteka była po prostu skopiowana do źródeł
40 Pakiet zawiera wersję 1.1.6 biblioteki z obsługą Unicode 5,
41 przekształconą do systemu budowania NetSurfa. Zostało dodane dodatkowe
42 API z funkcją normalizującą, ale nie ma zmian w danych w stosunku do
45 Wszystkie pliki Makefile oraz zmiany są licencjonowane tak samo, jak
46 źródła biblioteki utf8proc, z użyciem licencji MIT w wersji "expat".
48 [1] http://www.public-software-group.org/utf8proc
51 Summary: libutf8proc library headers
52 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libutf8proc
53 Group: Development/Libraries
54 Requires: %{name} = %{version}-%{release}
57 This package contains the include files and other resources you can
58 use to incorporate libutf8proc into applications.
60 %description devel -l pl.UTF-8
61 Pliki nagłówkowe pozwalające na używanie biblioteki libutf8proc w
65 Summary: libutf8proc static library
66 Summary(pl.UTF-8): Statyczna biblioteka libutf8proc
67 Group: Development/Libraries
68 Requires: %{name}-devel = %{version}-%{release}
71 This is package with static libutf8proc library.
73 %description static -l pl.UTF-8
74 Statyczna biblioteka libutf8proc.
77 %setup -q -n %{name}-%{version}-3
83 export CFLAGS="%{rpmcflags}"
84 export LDFLAGS="%{rpmldflags}"
89 COMPONENT_TYPE=lib-shared
91 %if %{with static_libs}
95 COMPONENT_TYPE=lib-static
99 rm -rf $RPM_BUILD_ROOT
103 export CFLAGS="%{rpmcflags}"
104 export LDFLAGS="%{rpmldflags}"
109 COMPONENT_TYPE=lib-shared \
110 DESTDIR=$RPM_BUILD_ROOT
112 %if %{with static_libs}
116 COMPONENT_TYPE=lib-static \
117 DESTDIR=$RPM_BUILD_ROOT
121 rm -rf $RPM_BUILD_ROOT
123 %post -p /sbin/ldconfig
124 %postun -p /sbin/ldconfig
127 %defattr(644,root,root,755)
128 %doc LICENSE.md NEWS.md README.md
129 %attr(755,root,root) %{_libdir}/libutf8proc.so.*.*.*
130 %attr(755,root,root) %ghost %{_libdir}/libutf8proc.so.1
133 %defattr(644,root,root,755)
134 %attr(755,root,root) %{_libdir}/libutf8proc.so
135 %{_includedir}/utf8proc.h
136 %{_pkgconfigdir}/libutf8proc.pc
138 %if %{with static_libs}
140 %defattr(644,root,root,755)
141 %{_libdir}/libutf8proc.a