summaryrefslogtreecommitdiff
path: root/packaging/libidn.spec
blob: 8d433d0614bc18b1aaafc094d41caa1568a3487d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
Name:       libidn
Summary:    Internationalized Domain Name support library
Version:    1.23
Release:    0
Group:      System/Libraries
License:    LGPL-2.1+
URL:        http://www.gnu.org/software/libidn/
Source0:    http://ftp.gnu.org/gnu/libidn/%{name}-%{version}.tar.gz
Source1:    baselibs.conf
Source1001: libidn.manifest
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires:  pkgconfig
BuildRequires:  gettext-tools
BuildRequires:  libtool
BuildRequires:  autoconf

%description
GNU Libidn is an implementation of the Stringprep, Punycode and
IDNA specifications defined by the IETF Internationalized Domain
Names (IDN) working group, used for internationalized domain
names.


%package devel
Summary:    Development files for the libidn library
Group:      Development/Libraries
Requires:   %{name} = %{version}-%{release}
Requires:   glibc-devel

%description devel
This package includes header files and libraries necessary for
developing programs which use the GNU libidn library.


%prep
%setup -q


%build

%configure --disable-static \
    --disable-csharp \
    --disable-java \
    --with-pic

make "%{?_smp_mflags}"

%install
%make_install

rm -f %{buildroot}/%_infodir/dir
rm -f %{buildroot}%{_libdir}/libidn.la
rm -f %{buildroot}%_infodir/libidn-components.png
rm -f %{buildroot}%{_bindir}/idn
%find_lang libidn

%remove_docs

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files -f libidn.lang
%defattr(-,root,root,-)
%{_libdir}/libidn.so.*
%license COPYING.LIB

%files devel
%defattr(-,root,root,-)
%{_libdir}/libidn.so
%{_includedir}/*.h
%{_libdir}/pkgconfig/libidn.pc