]>
Commit | Line | Data |
---|---|---|
95c82a1c JB |
1 | Summary: Free software implementation of IDNA2008 |
2 | Summary(pl.UTF-8): Wolnodostępna implementacja IDNA2008 | |
3 | Name: libidn2 | |
13b136aa JB |
4 | Version: 0.16 |
5 | Release: 1 | |
5fc826e7 | 6 | License: LGPL v3+ or GPL v2+ (library), GPL v3+ (utilities) |
95c82a1c JB |
7 | Group: Libraries |
8 | Source0: http://alpha.gnu.org/gnu/libidn/%{name}-%{version}.tar.gz | |
13b136aa | 9 | # Source0-md5: bc4c2f777016011b613affbd55e2ff83 |
95c82a1c JB |
10 | Patch0: %{name}-info.patch |
11 | URL: http://www.gnu.org/software/libidn/ | |
12 | BuildRequires: autoconf >= 2.61 | |
13 | BuildRequires: automake >= 1:1.10 | |
13b136aa | 14 | BuildRequires: gettext-tools >= 0.19.3 |
95c82a1c JB |
15 | BuildRequires: gtk-doc >= 1.1 |
16 | BuildRequires: help2man | |
17 | BuildRequires: libtool >= 2:2.0 | |
18 | BuildRequires: rpmbuild(macros) >= 1.98 | |
19 | BuildRequires: texinfo >= 4.7 | |
20 | Requires(post,postun): /sbin/ldconfig | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | Libidn2 is a free software implementation of internationalized domain | |
25 | names (IDNA2008). | |
26 | ||
27 | %description -l pl.UTF-8 | |
28 | Libidn2 to wolnodostępna implementacja specyfikacji | |
29 | umiędzynarodowionych nazw domen (IDNA2008). | |
30 | ||
31 | %package devel | |
32 | Summary: Header files for libidn2 library | |
33 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libidn2 | |
34 | License: LGPL v2.1+ | |
35 | Group: Development/Libraries | |
36 | Requires: %{name} = %{version}-%{release} | |
37 | ||
38 | %description devel | |
39 | Header files for libidn2 library. | |
40 | ||
41 | %description devel -l pl.UTF-8 | |
42 | Pliki nagłówkowe biblioteki libidn2. | |
43 | ||
44 | %package static | |
45 | Summary: Static libidn2 library | |
46 | Summary(pl.UTF-8): Statyczna biblioteka libidn2 | |
47 | License: LGPL v2.1+ | |
48 | Group: Development/Libraries | |
49 | Requires: %{name}-devel = %{version}-%{release} | |
50 | ||
51 | %description static | |
52 | Static libidn2 library. | |
53 | ||
54 | %description static -l pl.UTF-8 | |
55 | Statyczna biblioteka libidn2. | |
56 | ||
57 | %prep | |
58 | %setup -q | |
59 | %patch0 -p1 | |
60 | ||
61 | %build | |
13b136aa | 62 | %{__gettextize} |
95c82a1c | 63 | %{__libtoolize} |
13b136aa | 64 | %{__aclocal} -I m4 |
95c82a1c JB |
65 | %{__autoconf} |
66 | %{__autoheader} | |
67 | %{__automake} | |
68 | %configure \ | |
69 | --with-html-dir=%{_gtkdocdir} | |
70 | ||
71 | %{__make} | |
72 | ||
73 | %install | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %{__make} install \ | |
77 | DESTDIR=$RPM_BUILD_ROOT | |
78 | ||
95c82a1c JB |
79 | %clean |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
82 | %post | |
83 | /sbin/ldconfig | |
84 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
85 | ||
86 | %postun | |
87 | /sbin/ldconfig | |
88 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
89 | ||
90 | %files | |
91 | %defattr(644,root,root,755) | |
13b136aa | 92 | %doc AUTHORS COPYING ChangeLog NEWS README |
95c82a1c | 93 | %attr(755,root,root) %{_bindir}/idn2 |
95c82a1c JB |
94 | %attr(755,root,root) %{_libdir}/libidn2.so.*.*.* |
95 | %attr(755,root,root) %ghost %{_libdir}/libidn2.so.0 | |
96 | %{_mandir}/man1/idn2.1* | |
97 | %{_infodir}/libidn2.info* | |
98 | ||
99 | %files devel | |
100 | %defattr(644,root,root,755) | |
101 | %attr(755,root,root) %{_libdir}/libidn2.so | |
102 | %{_libdir}/libidn2.la | |
103 | %{_includedir}/idn2.h | |
104 | %{_mandir}/man3/idn2_*.3* | |
105 | %{_gtkdocdir}/libidn2 | |
106 | ||
107 | %files static | |
108 | %defattr(644,root,root,755) | |
109 | %{_libdir}/libidn2.a |