1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | |
---|
3 | Summary: Library to support IDNA2008 internationalized domain names |
---|
4 | Summary(ja): IDNA2008 国際化ドメイン名をサポートするためのライブラリ |
---|
5 | Name: libidn2 |
---|
6 | Version: 2.0.4 |
---|
7 | Release: 4%{?_dist_release} |
---|
8 | License: (GPLv2+ or LGPLv3+) and GPLv3+ |
---|
9 | Group: System Environment/Libraries |
---|
10 | URL: https://www.gnu.org/software/libidn/#libidn2 |
---|
11 | Source0: https://ftp.gnu.org/gnu/libidn/%{name}-%{version}.tar.gz |
---|
12 | Source1: https://ftp.gnu.org/gnu/libidn/%{name}-%{version}.tar.gz.sig |
---|
13 | Patch0: libidn2-2.0.0-rpath.patch |
---|
14 | Patch1: libidn2-2.0.4-std3-ascii-rules.patch |
---|
15 | BuildRequires: libunistring-devel |
---|
16 | Requires(post): /sbin/install-info, /sbin/ldconfig |
---|
17 | Requires(preun): /sbin/install-info |
---|
18 | Requires(postun): /sbin/ldconfig |
---|
19 | Provides: bundled(gnulib) |
---|
20 | |
---|
21 | Vendor: Project Vine |
---|
22 | Distribution: Vine Linux |
---|
23 | |
---|
24 | |
---|
25 | %description |
---|
26 | Libidn2 is an implementation of the IDNA2008 specifications in RFC |
---|
27 | 5890, 5891, 5892, 5893 and TR46 for internationalized domain names |
---|
28 | (IDN). It is a standalone library, without any dependency on libidn. |
---|
29 | |
---|
30 | %package devel |
---|
31 | Summary: Development files for libidn2 |
---|
32 | Summary(ja): libidn2 ライブラリの開発用ファイル |
---|
33 | Group: Development/Libraries |
---|
34 | Requires: %{name}%{?_isa} = %{version}-%{release}, pkgconfig |
---|
35 | |
---|
36 | %description devel |
---|
37 | The libidn2-devel package contains libraries and header files for |
---|
38 | developing applications that use libidn2. |
---|
39 | |
---|
40 | # compat32 |
---|
41 | %package -n compat32-%{name} |
---|
42 | Summary: Library to support IDNA2008 internationalized domain names |
---|
43 | Summary(ja): IDNA2008 国際化ドメイン名をサポートするためのライブラリ |
---|
44 | Group: System Environment/Libraries |
---|
45 | |
---|
46 | Requires: %{name} = %{version}-%{release} |
---|
47 | |
---|
48 | %description -n compat32-%{name} |
---|
49 | Libidn2 is an implementation of the IDNA2008 specifications in RFC |
---|
50 | 5890, 5891, 5892, 5893 and TR46 for internationalized domain names |
---|
51 | (IDN). It is a standalone library, without any dependency on libidn. |
---|
52 | |
---|
53 | %package -n compat32-%{name}-devel |
---|
54 | Summary: Development files for the libidn2 library |
---|
55 | Summary(ja): libidn2 ライブラリの開発用ファイル |
---|
56 | Group: Development/Libraries |
---|
57 | |
---|
58 | Requires: compat32-%{name} = %{version}-%{release} |
---|
59 | Requires: %{name}-devel = %{version}-%{release} |
---|
60 | |
---|
61 | %description -n compat32-%{name}-devel |
---|
62 | The libidn2-devel package contains libraries and header files for |
---|
63 | developing applications that use libidn2. |
---|
64 | |
---|
65 | %prep |
---|
66 | %setup -q |
---|
67 | %patch0 -p1 -b .rpath |
---|
68 | touch -c -r configure.rpath configure |
---|
69 | touch -c -r m4/libtool.m4.rpath m4/libtool.m4 |
---|
70 | %patch1 -p1 -b .std3-ascii-rules |
---|
71 | touch -c -r lib/idna.c.std3-ascii-rules lib/idna.c |
---|
72 | touch -c -r lib/lookup.c.std3-ascii-rules lib/lookup.c |
---|
73 | touch -c -r tests/test-lookup.c.std3-ascii-rules tests/test-lookup.c |
---|
74 | |
---|
75 | %build |
---|
76 | %configure --disable-static |
---|
77 | make %{?_smp_mflags} |
---|
78 | |
---|
79 | %install |
---|
80 | rm -rf $RPM_BUILD_ROOT |
---|
81 | make DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' install |
---|
82 | |
---|
83 | # Clean-up examples for documentation |
---|
84 | make %{?_smp_mflags} -C examples distclean |
---|
85 | rm -f examples/Makefile* |
---|
86 | |
---|
87 | # Don't install any libtool .la files |
---|
88 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
89 | |
---|
90 | # Some file cleanups |
---|
91 | rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir |
---|
92 | |
---|
93 | %check |
---|
94 | make %{?_smp_mflags} -C tests check |
---|
95 | |
---|
96 | %post |
---|
97 | /sbin/ldconfig |
---|
98 | /sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir || : |
---|
99 | |
---|
100 | %preun |
---|
101 | if [ $1 = 0 ]; then |
---|
102 | /sbin/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir || : |
---|
103 | fi |
---|
104 | |
---|
105 | %postun -p /sbin/ldconfig |
---|
106 | |
---|
107 | %if %{?build_compat32} |
---|
108 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
109 | |
---|
110 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
111 | %endif |
---|
112 | |
---|
113 | %files |
---|
114 | %defattr(-,root,root,-) |
---|
115 | %{!?_licensedir:%global license %%doc} |
---|
116 | %license COPYING COPYING.LESSERv3 COPYING.unicode COPYINGv2 |
---|
117 | %doc AUTHORS NEWS README.md |
---|
118 | %{_bindir}/idn2 |
---|
119 | %{_mandir}/man1/idn2.1* |
---|
120 | %{_libdir}/%{name}.so.* |
---|
121 | %{_infodir}/%{name}.info* |
---|
122 | |
---|
123 | %files devel |
---|
124 | %defattr(-,root,root,-) |
---|
125 | %doc doc/%{name}.html examples |
---|
126 | %{_libdir}/%{name}.so |
---|
127 | %{_libdir}/pkgconfig/%{name}.pc |
---|
128 | %{_includedir}/*.h |
---|
129 | %{_mandir}/man3/* |
---|
130 | %{_datadir}/gtk-doc/ |
---|
131 | |
---|
132 | %if %{?build_compat32} |
---|
133 | |
---|
134 | %files -n compat32-%{name} |
---|
135 | %defattr(-,root,root,-) |
---|
136 | %{_libdir}/%{name}.so.* |
---|
137 | |
---|
138 | %files -n compat32-%{name}-devel |
---|
139 | %defattr(-,root,root,-) |
---|
140 | %{_libdir}/%{name}.so |
---|
141 | %{_libdir}/pkgconfig/%{name}.pc |
---|
142 | |
---|
143 | %endif |
---|
144 | |
---|
145 | %changelog |
---|
146 | * Fri Feb 23 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.4-4 |
---|
147 | - initial build for Vine Linux. |
---|
148 | |
---|
149 | * Sun Feb 18 2018 Robert Scheck <robert@fedoraproject.org> 2.0.4-3 |
---|
150 | - Added upstream patch to fix STD3 ASCII rules (#1543021) |
---|
151 | |
---|
152 | * Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-2 |
---|
153 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild |
---|
154 | |
---|
155 | * Wed Aug 30 2017 Robert Scheck <robert@fedoraproject.org> 2.0.4-1 |
---|
156 | - Upgrade to 2.0.4 (#1486881, #1486882) |
---|
157 | |
---|
158 | * Tue Aug 01 2017 Robert Scheck <robert@fedoraproject.org> 2.0.3-1 |
---|
159 | - Upgrade to 2.0.3 (#1468608, #1474324) |
---|
160 | |
---|
161 | * Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-2 |
---|
162 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild |
---|
163 | |
---|
164 | * Sun Apr 30 2017 Robert Scheck <robert@fedoraproject.org> 2.0.2-1 |
---|
165 | - Upgrade to 2.0.2 (#1444712) |
---|
166 | |
---|
167 | * Thu Apr 06 2017 Robert Scheck <robert@fedoraproject.org> 2.0.0-1 |
---|
168 | - Upgrade to 2.0.0 (#1439727) |
---|
169 | |
---|
170 | * Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.16-2 |
---|
171 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild |
---|
172 | |
---|
173 | * Fri Jan 27 2017 Robert Scheck <robert@fedoraproject.org> 0.16-1 |
---|
174 | - Upgrade to 0.16 (#1416642) |
---|
175 | |
---|
176 | * Mon Nov 21 2016 Robert Scheck <robert@fedoraproject.org> 0.11-1 |
---|
177 | - Upgrade to 0.11 |
---|
178 | - Reflect dual-licensing of library in license tag (#1397021) |
---|
179 | |
---|
180 | * Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-4 |
---|
181 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild |
---|
182 | |
---|
183 | * Mon Dec 7 2015 Than Ngo <than@redhat.com> 0.10-2 |
---|
184 | - fix build failure related to missing automake-1.14 |
---|
185 | |
---|
186 | * Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-3 |
---|
187 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild |
---|
188 | |
---|
189 | * Sat Feb 21 2015 Till Maas <opensource@till.name> - 0.10-2 |
---|
190 | - Rebuilt for Fedora 23 Change |
---|
191 | https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code |
---|
192 | |
---|
193 | * Sun Oct 12 2014 Robert Scheck <robert@fedoraproject.org> 0.10-1 |
---|
194 | - Upgrade to 0.10 |
---|
195 | |
---|
196 | * Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8-7 |
---|
197 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild |
---|
198 | |
---|
199 | * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8-6 |
---|
200 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild |
---|
201 | |
---|
202 | * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8-5 |
---|
203 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild |
---|
204 | |
---|
205 | * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8-4 |
---|
206 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild |
---|
207 | |
---|
208 | * Fri Nov 16 2012 Robert Scheck <robert@fedoraproject.org> 0.8-3 |
---|
209 | - Added provide bundled(gnulib) as it's a copylib (#821769) |
---|
210 | |
---|
211 | * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8-2 |
---|
212 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild |
---|
213 | |
---|
214 | * Sun Jan 15 2012 Robert Scheck <robert@fedoraproject.org> 0.8-1 |
---|
215 | - Upgrade to 0.8 |
---|
216 | |
---|
217 | * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-2 |
---|
218 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
219 | |
---|
220 | * Sat Aug 13 2011 Robert Scheck <robert@fedoraproject.org> 0.7-1 |
---|
221 | - Upgrade to 0.7 |
---|
222 | |
---|
223 | * Sat Jun 04 2011 Robert Scheck <robert@fedoraproject.org> 0.6-1 |
---|
224 | - Upgrade to 0.6 |
---|
225 | |
---|
226 | * Wed May 18 2011 Robert Scheck <robert@fedoraproject.org> 0.5-1 |
---|
227 | - Upgrade to 0.5 |
---|
228 | |
---|
229 | * Mon May 16 2011 Robert Scheck <robert@fedoraproject.org> 0.4-1 |
---|
230 | - Upgrade to 0.4 |
---|
231 | |
---|
232 | * Sat May 07 2011 Robert Scheck <robert@fedoraproject.org> 0.3-1 |
---|
233 | - Upgrade to 0.3 |
---|
234 | - Initial spec file for Fedora and Red Hat Enterprise Linux |
---|