]> git.pld-linux.org Git - packages/libidn.git/blob - libidn.spec
- updated to 0.3.5 (new auto* used)
[packages/libidn.git] / libidn.spec
1 # TODO:
2 # - prepare package with web-files from contrib
3 #
4 Summary:        Internationalized string processing library
5 Summary(pl):    Biblioteka do przetwarzania umiêdzynarodowionych ³añcuchów
6 Name:           libidn
7 Version:        0.3.5
8 Release:        1
9 License:        LGPL v2.1
10 Group:          Libraries
11 Source0:        http://josefsson.org/libidn/releases/%{name}-%{version}.tar.gz
12 # Source0-md5:  916fb4b90e76edd5b6cb24a027399466
13 Patch0:         %{name}-info.patch
14 URL:            http://www.gnu.org/software/libidn/
15 BuildRequires:  autoconf >= 2.59
16 BuildRequires:  automake >= 1.8
17 BuildRequires:  libtool
18 BuildRequires:  texinfo
19 Requires(post,postun):  /sbin/ldconfig
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 GNU Libidn is an implementation of the Stringprep, Punycode and IDNA
24 specifications defined by the IETF Internationalized Domain Names
25 (IDN) working group, used for internationalized domain names.
26
27 %description -l pl
28 GNU Libidn to implementacja specyfikacji Stringprep, Punycode i IDNA
29 zdefiniowanych przez grupê robocz± IETF Internationalized Domain Names
30 (IDN), zajmuj±c± siê umiêdzynarodowionymi nazwami domen.
31
32 %package devel
33 Summary:        Header files for libidn library
34 Summary(pl):    Pliki nag³ówkowe biblioteki libidn
35 Group:          Development/Libraries
36 Requires:       %{name} = %{version}
37
38 %description devel
39 Header files for libidn library.
40
41 %description devel -l pl
42 Pliki nag³ówkowe biblioteki libidn.
43
44 %package static
45 Summary:        Static libidn library
46 Summary(pl):    Statyczna biblioteka libidn
47 Group:          Development/Libraries
48 Requires:       %{name}-devel = %{version}
49
50 %description static
51 Static libidn library.
52
53 %description static -l pl
54 Statyczna biblioteka libidn.
55
56 %prep
57 %setup -q
58 %patch0 -p1
59
60 # we don't have libtool 1.5a
61 %{__perl} -pi -e 's/AC_LIBTOOL_TAGS//' configure.ac
62 # incompatible with ksh
63 rm -f m4/libtool.m4
64
65 %build
66 # blegh, lt incompatible with ksh - must rebuild
67 %{__libtoolize}
68 %{__aclocal} -I m4
69 %{__autoconf}
70 %{__autoheader}
71 %{__automake}
72 %configure
73
74 %{__make}
75
76 %install
77 rm -rf $RPM_BUILD_ROOT
78
79 %{__make} install \
80         DESTDIR=$RPM_BUILD_ROOT
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85 %post
86 /sbin/ldconfig
87 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
88
89 %postun
90 /sbin/ldconfig
91 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
92
93 %files
94 %defattr(644,root,root,755)
95 %doc ChangeLog FAQ README THANKS TODO doc/libidn.html contrib
96 %attr(755,root,root) %{_bindir}/idn
97 %attr(755,root,root) %{_libdir}/libidn.so.*.*.*
98 %{_mandir}/man1/idn.1*
99 %{_infodir}/libidn.info*
100
101 %files devel
102 %defattr(644,root,root,755)
103 %attr(755,root,root) %{_libdir}/libidn.so
104 %{_libdir}/libidn.la
105 %{_includedir}/*.h
106 %{_pkgconfigdir}/libidn.pc
107 %{_mandir}/man3/*
108
109 %files static
110 %defattr(644,root,root,755)
111 %{_libdir}/libidn.a
This page took 0.054464 seconds and 4 git commands to generate.