- Rebase to Fedora native version 2.15.0.
[fedora-mingw.git] / libidn / mingw32-libidn.spec
1 %define __strip %{_mingw32_strip}
2 %define __objdump %{_mingw32_objdump}
3 %define _use_internal_dependency_generator 0
4 %define __find_requires %{_mingw32_findrequires}
5 %define __find_provides %{_mingw32_findprovides}
6
7 # Native Fedora package is ancient, 0.6.14, which doesn't even
8 # exist on the upstream servers any more.  I have gone for the
9 # latest version instead.
10
11 Name:           mingw32-libidn
12 Version:        1.9
13 Release:        1%{?dist}
14 Summary:        MinGW Windows Internationalized Domain Name support library
15
16 License:        LGPLv2+
17 Group:          Development/Libraries
18 URL:            http://www.gnu.org/software/libidn/
19 Source0:        http://josefsson.org/libidn/releases/libidn-%{version}.tar.gz
20 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
21
22 #Patch0:         libidn-0.6.14-aconf262.patch
23
24 BuildArch:      noarch
25
26 BuildRequires:  mingw32-filesystem >= 33
27 BuildRequires:  mingw32-gcc
28 BuildRequires:  mingw32-binutils
29 BuildRequires:  mingw32-gettext
30 BuildRequires:  mingw32-iconv
31 BuildRequires:  pkgconfig, gettext
32 #BuildRequires:  libtool, automake, autoconf
33
34
35 %description
36 GNU Libidn is an implementation of the Stringprep, Punycode and
37 IDNA specifications defined by the IETF Internationalized Domain
38 Names (IDN) working group, used for internationalized domain
39 names.
40
41
42 %prep
43 %setup -q -n libidn-%{version}
44 #%patch0 -p1 -b .aconf262
45 #autoreconf
46
47
48 %build
49 %{_mingw32_configure} --disable-csharp --disable-static
50 make %{?_smp_mflags}
51
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55 make DESTDIR=$RPM_BUILD_ROOT install
56
57 # Remove documentation which duplicates native Fedora package.
58 rm -r $RPM_BUILD_ROOT%{_mingw32_datadir}/emacs
59 rm -r $RPM_BUILD_ROOT%{_mingw32_infodir}
60 rm -r $RPM_BUILD_ROOT%{_mingw32_mandir}/man*
61
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66
67 %files
68 %defattr(-,root,root)
69 %{_mingw32_bindir}/idn.exe
70 %{_mingw32_bindir}/libidn-11.dll
71 %{_mingw32_libdir}/libidn.dll.a
72 %{_mingw32_libdir}/libidn.la
73 %{_mingw32_libdir}/pkgconfig/libidn.pc
74 %{_mingw32_includedir}/*.h
75 %{_mingw32_datadir}/locale/*/LC_MESSAGES/libidn.mo
76
77
78 %changelog
79 * Mon Nov 10 2008 Richard W.M. Jones <rjones@redhat.com> - 0.6.14-1
80 - Initial RPM release.