00b6b135d5cdb2950a697af2ec77f8c1a132bfdc
[external/libidn.git] / packaging / libidn.spec
1 Name:       libidn
2 Summary:    Internationalized Domain Name support library
3 Version:    1.15
4 Release:    6
5 Group:      System/Libraries
6 License:    LGPLv2.1+
7 URL:        http://www.gnu.org/software/libidn/
8 Source0:    http://ftp.gnu.org/gnu/libidn/%{name}-%{version}.tar.gz
9 Source1001: packaging/libidn.manifest 
10 Requires(post): /sbin/ldconfig
11 Requires(postun): /sbin/ldconfig
12 BuildRequires:  pkgconfig
13 BuildRequires:  gettext-tools
14 BuildRequires:  libtool
15 BuildRequires:  autoconf
16
17 %description
18 GNU Libidn is an implementation of the Stringprep, Punycode and
19 IDNA specifications defined by the IETF Internationalized Domain
20 Names (IDN) working group, used for internationalized domain
21 names.
22
23
24
25 %package devel
26 Summary:    Development files for the libidn library
27 Group:      Development/Libraries
28 Requires:   %{name} = %{version}-%{release}
29 Requires:   glibc-devel
30
31 %description devel
32 This package includes header files and libraries necessary for
33 developing programs which use the GNU libidn library.
34
35
36
37 %prep
38 %setup -q -n %{name}-%{version}
39
40
41 %build
42 cp %{SOURCE1001} .
43
44 %configure --disable-static \
45     --disable-csharp \
46     --disable-java \
47     --with-pic
48
49 make %{?jobs:-j%jobs}
50
51 %install
52 rm -rf %{buildroot}
53 %make_install 
54
55 rm -f $RPM_BUILD_ROOT/%_infodir/dir
56 rm -f %{buildroot}%{_libdir}/libidn.la
57 rm -f  $RPM_BUILD_ROOT%_infodir/libidn-components.png
58 rm -f %{buildroot}%{_bindir}/idn
59 %find_lang libidn
60
61 %remove_docs 
62
63 %post -p /sbin/ldconfig
64
65 %postun -p /sbin/ldconfig
66
67 %files -f libidn.lang
68 %manifest libidn.manifest
69 %defattr(-,root,root,-)
70 %dir %{_datadir}/emacs
71 %dir %{_datadir}/emacs/site-lisp
72 %{_datadir}/emacs/site-lisp/idna.el
73 %{_datadir}/emacs/site-lisp/punycode.el
74 %{_libdir}/libidn.so.*
75
76 %files devel
77 %manifest libidn.manifest
78 %defattr(-,root,root,-)
79 %{_libdir}/libidn.so
80 %{_includedir}/*.h
81 %{_libdir}/pkgconfig/libidn.pc
82