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}-1-src.tar.gz
13 # Source0-md5: 1beb803edde514c4cdd88707c0f6830b
14 Patch0: %{name}-build.patch
15 URL: http://www.netsurf-browser.org/projects/libutf8proc/
16 BuildRequires: netsurf-buildsystem >= 1.7
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 12.1 capable version 2.4.0 of the library and
25 converts it to the NetSurf build system.
27 All the Makefiles and changes are licenced as per the utf8proc
28 source using the MIT "expat" licence.
30 [1] http://www.public-software-group.org/utf8proc
32 %description -l pl.UTF-8
33 Ten pakiet zawiera bibliotekę utf8proc [1] opublikowaną przez Public
34 Software Group, przepakowaną jako bibliotekę pomocniczą dla projektu
35 NetSuft. Wcześniej biblioteka była po prostu skopiowana do źródeł
38 Pakiet zawiera wersję 2.4.0 biblioteki z obsługą Unicode 12.1
39 przekształconą do systemu budowania NetSurfa.
41 Wszystkie pliki Makefile oraz zmiany są licencjonowane tak samo, jak
42 źródła biblioteki utf8proc, z użyciem licencji MIT w wersji "expat".
44 [1] http://www.public-software-group.org/utf8proc
47 Summary: libutf8proc library headers
48 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libutf8proc
49 Group: Development/Libraries
50 Requires: %{name} = %{version}-%{release}
53 This package contains the include files and other resources you can
54 use to incorporate libutf8proc into applications.
56 %description devel -l pl.UTF-8
57 Pliki nagłówkowe pozwalające na używanie biblioteki libutf8proc w
61 Summary: libutf8proc static library
62 Summary(pl.UTF-8): Statyczna biblioteka libutf8proc
63 Group: Development/Libraries
64 Requires: %{name}-devel = %{version}-%{release}
67 This is package with static libutf8proc library.
69 %description static -l pl.UTF-8
70 Statyczna biblioteka libutf8proc.
73 %setup -q -n %{name}-%{version}-1
79 export CFLAGS="%{rpmcflags}"
80 export LDFLAGS="%{rpmldflags}"
85 COMPONENT_TYPE=lib-shared
87 %if %{with static_libs}
91 COMPONENT_TYPE=lib-static
95 rm -rf $RPM_BUILD_ROOT
99 export CFLAGS="%{rpmcflags}"
100 export LDFLAGS="%{rpmldflags}"
105 COMPONENT_TYPE=lib-shared \
106 DESTDIR=$RPM_BUILD_ROOT
108 %if %{with static_libs}
112 COMPONENT_TYPE=lib-static \
113 DESTDIR=$RPM_BUILD_ROOT
117 rm -rf $RPM_BUILD_ROOT
119 %post -p /sbin/ldconfig
120 %postun -p /sbin/ldconfig
123 %defattr(644,root,root,755)
124 %doc LICENSE.md NEWS.md README README.md
125 %attr(755,root,root) %{_libdir}/libutf8proc.so.*.*.*
126 %attr(755,root,root) %ghost %{_libdir}/libutf8proc.so.2
129 %defattr(644,root,root,755)
130 %attr(755,root,root) %{_libdir}/libutf8proc.so
131 %{_includedir}/utf8proc.h
132 %{_pkgconfigdir}/libutf8proc.pc
134 %if %{with static_libs}
136 %defattr(644,root,root,755)
137 %{_libdir}/libutf8proc.a