]>
Commit | Line | Data |
---|---|---|
efe04086 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
4 | ||
9aa6ecc2 JB |
5 | Summary: utf8proc library for NetSurf |
6 | Summary(pl.UTF-8): Biblioteka utf8proc dla projektu NetSurf | |
efe04086 | 7 | Name: libutf8proc |
c1afebdb | 8 | Version: 2.4.0 |
f3230e55 | 9 | Release: 1 |
efe04086 WF |
10 | License: MIT |
11 | Group: Libraries | |
f3230e55 | 12 | Source0: http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-1-src.tar.gz |
c1afebdb | 13 | # Source0-md5: 1beb803edde514c4cdd88707c0f6830b |
f8274d04 | 14 | Patch0: %{name}-build.patch |
efe04086 | 15 | URL: http://www.netsurf-browser.org/projects/libutf8proc/ |
f3230e55 | 16 | BuildRequires: netsurf-buildsystem >= 1.7 |
efe04086 WF |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
9aa6ecc2 | 20 | This is the Public Software Group utf8proc library [1] repackaged as a |
efe04086 WF |
21 | conveniance library for NetSurf. Previously this library was simply |
22 | copied into the NetSurf sources. | |
23 | ||
c1afebdb JB |
24 | This takes the Unicode 12.1 capable version 2.4.0 of the library and |
25 | converts it to the NetSurf build system. | |
efe04086 WF |
26 | |
27 | All the Makefiles and changes are licenced as per the utf8proc | |
28 | source using the MIT "expat" licence. | |
29 | ||
30 | [1] http://www.public-software-group.org/utf8proc | |
31 | ||
9aa6ecc2 JB |
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ł | |
36 | NetSurfa. | |
37 | ||
c1afebdb JB |
38 | Pakiet zawiera wersję 2.4.0 biblioteki z obsługą Unicode 12.1 |
39 | przekształconą do systemu budowania NetSurfa. | |
9aa6ecc2 JB |
40 | |
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". | |
43 | ||
44 | [1] http://www.public-software-group.org/utf8proc | |
45 | ||
efe04086 WF |
46 | %package devel |
47 | Summary: libutf8proc library headers | |
48 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libutf8proc | |
49 | Group: Development/Libraries | |
50 | Requires: %{name} = %{version}-%{release} | |
51 | ||
52 | %description devel | |
53 | This package contains the include files and other resources you can | |
54 | use to incorporate libutf8proc into applications. | |
55 | ||
56 | %description devel -l pl.UTF-8 | |
9aa6ecc2 JB |
57 | Pliki nagłówkowe pozwalające na używanie biblioteki libutf8proc w |
58 | swoich programach. | |
efe04086 WF |
59 | |
60 | %package static | |
61 | Summary: libutf8proc static library | |
62 | Summary(pl.UTF-8): Statyczna biblioteka libutf8proc | |
63 | Group: Development/Libraries | |
64 | Requires: %{name}-devel = %{version}-%{release} | |
65 | ||
66 | %description static | |
67 | This is package with static libutf8proc library. | |
68 | ||
69 | %description static -l pl.UTF-8 | |
70 | Statyczna biblioteka libutf8proc. | |
71 | ||
72 | %prep | |
f3230e55 | 73 | %setup -q -n %{name}-%{version}-1 |
f8274d04 | 74 | %patch0 -p1 |
efe04086 WF |
75 | |
76 | %build | |
37f2e25b | 77 | export AR="%{__ar}" |
efe04086 WF |
78 | export CC="%{__cc}" |
79 | export CFLAGS="%{rpmcflags}" | |
80 | export LDFLAGS="%{rpmldflags}" | |
81 | ||
82 | %{__make} \ | |
83 | Q= \ | |
84 | PREFIX=%{_prefix} \ | |
85 | COMPONENT_TYPE=lib-shared | |
86 | ||
87 | %if %{with static_libs} | |
88 | %{__make} \ | |
89 | Q= \ | |
90 | PREFIX=%{_prefix} \ | |
91 | COMPONENT_TYPE=lib-static | |
92 | %endif | |
93 | ||
94 | %install | |
b3194d01 JB |
95 | rm -rf $RPM_BUILD_ROOT |
96 | ||
37f2e25b WF |
97 | export AR="%{__ar}" |
98 | export CC="%{__cc}" | |
99 | export CFLAGS="%{rpmcflags}" | |
100 | export LDFLAGS="%{rpmldflags}" | |
101 | ||
efe04086 WF |
102 | %{__make} install \ |
103 | PREFIX=%{_prefix} \ | |
104 | LIBDIR=%{_lib} \ | |
105 | COMPONENT_TYPE=lib-shared \ | |
106 | DESTDIR=$RPM_BUILD_ROOT | |
107 | ||
108 | %if %{with static_libs} | |
109 | %{__make} install \ | |
110 | PREFIX=%{_prefix} \ | |
111 | LIBDIR=%{_lib} \ | |
112 | COMPONENT_TYPE=lib-static \ | |
113 | DESTDIR=$RPM_BUILD_ROOT | |
114 | %endif | |
115 | ||
116 | %clean | |
117 | rm -rf $RPM_BUILD_ROOT | |
118 | ||
119 | %post -p /sbin/ldconfig | |
120 | %postun -p /sbin/ldconfig | |
121 | ||
122 | %files | |
123 | %defattr(644,root,root,755) | |
e8c4d1ca | 124 | %doc LICENSE.md NEWS.md README README.md |
efe04086 | 125 | %attr(755,root,root) %{_libdir}/libutf8proc.so.*.*.* |
f3230e55 | 126 | %attr(755,root,root) %ghost %{_libdir}/libutf8proc.so.2 |
efe04086 WF |
127 | |
128 | %files devel | |
129 | %defattr(644,root,root,755) | |
130 | %attr(755,root,root) %{_libdir}/libutf8proc.so | |
f8274d04 | 131 | %{_includedir}/utf8proc.h |
efe04086 WF |
132 | %{_pkgconfigdir}/libutf8proc.pc |
133 | ||
134 | %if %{with static_libs} | |
135 | %files static | |
136 | %defattr(644,root,root,755) | |
137 | %{_libdir}/libutf8proc.a | |
138 | %endif |