]> git.pld-linux.org Git - packages/libutf8proc.git/blame - libutf8proc.spec
- updated to 2.4.0-1
[packages/libutf8proc.git] / libutf8proc.spec
CommitLineData
efe04086
WF
1#
2# Conditional build:
3%bcond_without static_libs # don't build static library
4
9aa6ecc2
JB
5Summary: utf8proc library for NetSurf
6Summary(pl.UTF-8): Biblioteka utf8proc dla projektu NetSurf
efe04086 7Name: libutf8proc
c1afebdb 8Version: 2.4.0
f3230e55 9Release: 1
efe04086
WF
10License: MIT
11Group: Libraries
f3230e55 12Source0: http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-1-src.tar.gz
c1afebdb 13# Source0-md5: 1beb803edde514c4cdd88707c0f6830b
f8274d04 14Patch0: %{name}-build.patch
efe04086 15URL: http://www.netsurf-browser.org/projects/libutf8proc/
f3230e55 16BuildRequires: netsurf-buildsystem >= 1.7
efe04086
WF
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
9aa6ecc2 20This is the Public Software Group utf8proc library [1] repackaged as a
efe04086
WF
21conveniance library for NetSurf. Previously this library was simply
22copied into the NetSurf sources.
23
c1afebdb
JB
24This takes the Unicode 12.1 capable version 2.4.0 of the library and
25converts it to the NetSurf build system.
efe04086
WF
26
27All the Makefiles and changes are licenced as per the utf8proc
28source using the MIT "expat" licence.
29
30[1] http://www.public-software-group.org/utf8proc
31
9aa6ecc2
JB
32%description -l pl.UTF-8
33Ten pakiet zawiera bibliotekę utf8proc [1] opublikowaną przez Public
34Software Group, przepakowaną jako bibliotekę pomocniczą dla projektu
35NetSuft. Wcześniej biblioteka była po prostu skopiowana do źródeł
36NetSurfa.
37
c1afebdb
JB
38Pakiet zawiera wersję 2.4.0 biblioteki z obsługą Unicode 12.1
39przekształconą do systemu budowania NetSurfa.
9aa6ecc2
JB
40
41Wszystkie 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
47Summary: libutf8proc library headers
48Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libutf8proc
49Group: Development/Libraries
50Requires: %{name} = %{version}-%{release}
51
52%description devel
53This package contains the include files and other resources you can
54use to incorporate libutf8proc into applications.
55
56%description devel -l pl.UTF-8
9aa6ecc2
JB
57Pliki nagłówkowe pozwalające na używanie biblioteki libutf8proc w
58swoich programach.
efe04086
WF
59
60%package static
61Summary: libutf8proc static library
62Summary(pl.UTF-8): Statyczna biblioteka libutf8proc
63Group: Development/Libraries
64Requires: %{name}-devel = %{version}-%{release}
65
66%description static
67This is package with static libutf8proc library.
68
69%description static -l pl.UTF-8
70Statyczna biblioteka libutf8proc.
71
72%prep
f3230e55 73%setup -q -n %{name}-%{version}-1
f8274d04 74%patch0 -p1
efe04086
WF
75
76%build
37f2e25b 77export AR="%{__ar}"
efe04086
WF
78export CC="%{__cc}"
79export CFLAGS="%{rpmcflags}"
80export 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
95rm -rf $RPM_BUILD_ROOT
96
37f2e25b
WF
97export AR="%{__ar}"
98export CC="%{__cc}"
99export CFLAGS="%{rpmcflags}"
100export 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
117rm -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
This page took 0.070505 seconds and 4 git commands to generate.