summaryrefslogtreecommitdiff
path: root/packaging/libidn.spec
blob: 691e4d0d1af594ab39e658478e227b4ef7b88d38 (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
74
75
76
Name:       libidn
Summary:    Internationalized Domain Name support library
Version:    1.15
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

mkdir -p %{buildroot}/usr/share/license
cp COPYING.LIB %{buildroot}/usr/share/license/%{name}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files -f libidn.lang
%defattr(-,root,root,-)
%{_libdir}/libidn.so.*
/usr/share/license/%{name}

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