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