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