]> git.pld-linux.org Git - packages/libutf8proc.git/blob - libutf8proc.spec
- rel 4; avoid includedir subdir (compatible with other distros)
[packages/libutf8proc.git] / libutf8proc.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static library
4
5 Summary:        utf8proc library for NetSurf
6 Summary(pl.UTF-8):      Biblioteka utf8proc dla projektu NetSurf
7 Name:           libutf8proc
8 Version:        1.3.1
9 Release:        4
10 License:        MIT
11 Group:          Libraries
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)
18
19 %description
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.
23
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
27 upstream.
28
29 All the Makefiles and changes are licenced as per the utf8proc
30 source using the MIT "expat" licence.
31
32 [1] http://www.public-software-group.org/utf8proc
33
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ł
38 NetSurfa.
39
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
43 wersji oryginalnej.
44
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".
47
48 [1] http://www.public-software-group.org/utf8proc
49
50 %package devel
51 Summary:        libutf8proc library headers
52 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libutf8proc
53 Group:          Development/Libraries
54 Requires:       %{name} = %{version}-%{release}
55
56 %description devel
57 This package contains the include files and other resources you can
58 use to incorporate libutf8proc into applications.
59
60 %description devel -l pl.UTF-8
61 Pliki nagłówkowe pozwalające na używanie biblioteki libutf8proc w
62 swoich programach.
63
64 %package static
65 Summary:        libutf8proc static library
66 Summary(pl.UTF-8):      Statyczna biblioteka libutf8proc
67 Group:          Development/Libraries
68 Requires:       %{name}-devel = %{version}-%{release}
69
70 %description static
71 This is package with static libutf8proc library.
72
73 %description static -l pl.UTF-8
74 Statyczna biblioteka libutf8proc.
75
76 %prep
77 %setup -q -n %{name}-%{version}-3
78 %patch0 -p1
79
80 %build
81 export AR="%{__ar}"
82 export CC="%{__cc}"
83 export CFLAGS="%{rpmcflags}"
84 export LDFLAGS="%{rpmldflags}"
85
86 %{__make} \
87         Q= \
88         PREFIX=%{_prefix} \
89         COMPONENT_TYPE=lib-shared
90
91 %if %{with static_libs}
92 %{__make} \
93         Q= \
94         PREFIX=%{_prefix} \
95         COMPONENT_TYPE=lib-static
96 %endif
97
98 %install
99 rm -rf $RPM_BUILD_ROOT
100
101 export AR="%{__ar}"
102 export CC="%{__cc}"
103 export CFLAGS="%{rpmcflags}"
104 export LDFLAGS="%{rpmldflags}"
105
106 %{__make} install \
107         PREFIX=%{_prefix} \
108         LIBDIR=%{_lib} \
109         COMPONENT_TYPE=lib-shared \
110         DESTDIR=$RPM_BUILD_ROOT
111
112 %if %{with static_libs}
113 %{__make} install \
114         PREFIX=%{_prefix} \
115         LIBDIR=%{_lib} \
116         COMPONENT_TYPE=lib-static \
117         DESTDIR=$RPM_BUILD_ROOT
118 %endif
119
120 %clean
121 rm -rf $RPM_BUILD_ROOT
122
123 %post   -p /sbin/ldconfig
124 %postun -p /sbin/ldconfig
125
126 %files
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
131
132 %files devel
133 %defattr(644,root,root,755)
134 %attr(755,root,root) %{_libdir}/libutf8proc.so
135 %{_includedir}/utf8proc.h
136 %{_pkgconfigdir}/libutf8proc.pc
137
138 %if %{with static_libs}
139 %files static
140 %defattr(644,root,root,755)
141 %{_libdir}/libutf8proc.a
142 %endif
This page took 0.085345 seconds and 3 git commands to generate.