]> git.pld-linux.org Git - packages/libutf8proc.git/blame - libutf8proc.spec
- new
[packages/libutf8proc.git] / libutf8proc.spec
CommitLineData
efe04086
WF
1#
2# Conditional build:
3%bcond_without static_libs # don't build static library
4
5Summary: libutf8proc
6Summary(pl.UTF-8): Biblioteka libutf8proc
7Name: libutf8proc
8Version: 1.1.6
9Release: 1
10License: MIT
11Group: Libraries
12Source0: http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz
13# Source0-md5: 2782ab67e722f6f61ba263f9ef5b858c
14URL: http://www.netsurf-browser.org/projects/libutf8proc/
15BuildRequires: netsurf-buildsystem >= 1.3
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%description
19This is the Public software group utf8proc library [1] repackaged as a
20conveniance library for NetSurf. Previously this library was simply
21copied into the NetSurf sources.
22
23This takes the unicode 5 capable version 1.1.6 of the library and
24converts it to the NetSurf build system. additional API has been added
25with a normalisation function but there are no data changes from
26upstream.
27
28All the Makefiles and changes are licenced as per the utf8proc
29source using the MIT "expat" licence.
30
31[1] http://www.public-software-group.org/utf8proc
32
33%package devel
34Summary: libutf8proc library headers
35Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libutf8proc
36Group: Development/Libraries
37Requires: %{name} = %{version}-%{release}
38
39%description devel
40This package contains the include files and other resources you can
41use to incorporate libutf8proc into applications.
42
43%description devel -l pl.UTF-8
44Pliki nagłówkowe pozwalające na używanie biblioteki libutf8proc w swoich
45programach.
46
47%package static
48Summary: libutf8proc static library
49Summary(pl.UTF-8): Statyczna biblioteka libutf8proc
50Group: Development/Libraries
51Requires: %{name}-devel = %{version}-%{release}
52
53%description static
54This is package with static libutf8proc library.
55
56%description static -l pl.UTF-8
57Statyczna biblioteka libutf8proc.
58
59%prep
60%setup -q
61
62%build
63export CC="%{__cc}"
64export CFLAGS="%{rpmcflags}"
65export LDFLAGS="%{rpmldflags}"
66
67%{__make} \
68 Q= \
69 PREFIX=%{_prefix} \
70 COMPONENT_TYPE=lib-shared
71
72%if %{with static_libs}
73%{__make} \
74 Q= \
75 PREFIX=%{_prefix} \
76 COMPONENT_TYPE=lib-static
77%endif
78
79%install
80rm -rf $RPM_BUILD_ROOT
81%{__make} install \
82 PREFIX=%{_prefix} \
83 LIBDIR=%{_lib} \
84 COMPONENT_TYPE=lib-shared \
85 DESTDIR=$RPM_BUILD_ROOT
86
87%if %{with static_libs}
88%{__make} install \
89 PREFIX=%{_prefix} \
90 LIBDIR=%{_lib} \
91 COMPONENT_TYPE=lib-static \
92 DESTDIR=$RPM_BUILD_ROOT
93%endif
94
95%clean
96rm -rf $RPM_BUILD_ROOT
97
98%post -p /sbin/ldconfig
99%postun -p /sbin/ldconfig
100
101%files
102%defattr(644,root,root,755)
103%doc Changelog LICENSE
104%attr(755,root,root) %{_libdir}/libutf8proc.so.*.*.*
105%attr(755,root,root) %ghost %{_libdir}/libutf8proc.so.1
106
107%files devel
108%defattr(644,root,root,755)
109%attr(755,root,root) %{_libdir}/libutf8proc.so
110%{_includedir}/libutf8proc
111%{_pkgconfigdir}/libutf8proc.pc
112
113%if %{with static_libs}
114%files static
115%defattr(644,root,root,755)
116%{_libdir}/libutf8proc.a
117%endif
This page took 0.080761 seconds and 4 git commands to generate.