]>
Commit | Line | Data |
---|---|---|
efe04086 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
4 | ||
5 | Summary: libutf8proc | |
6 | Summary(pl.UTF-8): Biblioteka libutf8proc | |
7 | Name: libutf8proc | |
8 | Version: 1.1.6 | |
9 | Release: 1 | |
10 | License: MIT | |
11 | Group: Libraries | |
12 | Source0: http://download.netsurf-browser.org/libs/releases/%{name}-%{version}-src.tar.gz | |
13 | # Source0-md5: 2782ab67e722f6f61ba263f9ef5b858c | |
14 | URL: http://www.netsurf-browser.org/projects/libutf8proc/ | |
15 | BuildRequires: netsurf-buildsystem >= 1.3 | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | This is the Public software group utf8proc library [1] repackaged as a | |
20 | conveniance library for NetSurf. Previously this library was simply | |
21 | copied into the NetSurf sources. | |
22 | ||
23 | This takes the unicode 5 capable version 1.1.6 of the library and | |
24 | converts it to the NetSurf build system. additional API has been added | |
25 | with a normalisation function but there are no data changes from | |
26 | upstream. | |
27 | ||
28 | All the Makefiles and changes are licenced as per the utf8proc | |
29 | source using the MIT "expat" licence. | |
30 | ||
31 | [1] http://www.public-software-group.org/utf8proc | |
32 | ||
33 | %package devel | |
34 | Summary: libutf8proc library headers | |
35 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libutf8proc | |
36 | Group: Development/Libraries | |
37 | Requires: %{name} = %{version}-%{release} | |
38 | ||
39 | %description devel | |
40 | This package contains the include files and other resources you can | |
41 | use to incorporate libutf8proc into applications. | |
42 | ||
43 | %description devel -l pl.UTF-8 | |
44 | Pliki nagłówkowe pozwalające na używanie biblioteki libutf8proc w swoich | |
45 | programach. | |
46 | ||
47 | %package static | |
48 | Summary: libutf8proc static library | |
49 | Summary(pl.UTF-8): Statyczna biblioteka libutf8proc | |
50 | Group: Development/Libraries | |
51 | Requires: %{name}-devel = %{version}-%{release} | |
52 | ||
53 | %description static | |
54 | This is package with static libutf8proc library. | |
55 | ||
56 | %description static -l pl.UTF-8 | |
57 | Statyczna biblioteka libutf8proc. | |
58 | ||
59 | %prep | |
60 | %setup -q | |
61 | ||
62 | %build | |
63 | export CC="%{__cc}" | |
64 | export CFLAGS="%{rpmcflags}" | |
65 | export 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 | |
80 | rm -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 | |
96 | rm -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 |