]> git.pld-linux.org Git - packages/libutf8proc.git/blob - libutf8proc.spec
- updated to 2.4.0-1
[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:        2.4.0
9 Release:        1
10 License:        MIT
11 Group:          Libraries
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)
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 12.1 capable version 2.4.0 of the library and
25 converts it to the NetSurf build system.
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
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
38 Pakiet zawiera wersję 2.4.0 biblioteki z obsługą Unicode 12.1
39 przekształconą do systemu budowania NetSurfa.
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
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
57 Pliki nagłówkowe pozwalające na używanie biblioteki libutf8proc w
58 swoich programach.
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
73 %setup -q -n %{name}-%{version}-1
74 %patch0 -p1
75
76 %build
77 export AR="%{__ar}"
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
95 rm -rf $RPM_BUILD_ROOT
96
97 export AR="%{__ar}"
98 export CC="%{__cc}"
99 export CFLAGS="%{rpmcflags}"
100 export LDFLAGS="%{rpmldflags}"
101
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)
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
127
128 %files devel
129 %defattr(644,root,root,755)
130 %attr(755,root,root) %{_libdir}/libutf8proc.so
131 %{_includedir}/utf8proc.h
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.076532 seconds and 4 git commands to generate.