]> git.pld-linux.org Git - packages/crossmingw32-gettext.git/blob - crossmingw32-gettext.spec
96b9fcac1cff0794f1f60e971234f0ec3f81e06c
[packages/crossmingw32-gettext.git] / crossmingw32-gettext.spec
1 #
2 # Conditional build:
3 %bcond_without  asprintf        # without libasprintf (in C++)
4 #
5 %define         realname                gettext
6 Summary:        gettext libraries - cross mingw32 version
7 Summary(pl):    Biblioteki gettext - wersja skro¶na dla mingw32
8 Name:           crossmingw32-%{realname}
9 Version:        0.16.1
10 Release:        1
11 License:        LGPL
12 Group:          Libraries
13 Source0:        ftp://ftp.gnu.org/gnu/gettext/%{realname}-%{version}.tar.gz
14 # Source0-md5:  3d9ad24301c6d6b17ec30704a13fe127
15 Patch0:         %{realname}-info.patch
16 Patch1:         %{realname}-killkillkill.patch
17 Patch2:         %{name}.patch
18 URL:            http://www.gnu.org/software/gettext/
19 BuildRequires:  autoconf >= 2.60
20 BuildRequires:  automake >= 1:1.10
21 BuildRequires:  crossmingw32-gcc
22 %{?with_asprintf:BuildRequires: crossmingw32-gcc-c++}
23 BuildRequires:  crossmingw32-libiconv
24 BuildRequires:  libtool
25 BuildRequires:  texinfo
26 Requires:       crossmingw32-libiconv
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %define         no_install_post_strip   1
30
31 %define         target                  i386-mingw32
32 %define         target_platform         i386-pc-mingw32
33 %define         _sysprefix              /usr
34 %define         _prefix                 %{_sysprefix}/%{target}
35
36 %define         __cc                    %{target}-gcc
37 %define         __cxx                   %{target}-g++
38
39 %description
40 gettext libraries - cross mingw32 version.
41
42 %description -l pl
43 Biblioteki gettext - wersja skro¶na dla mingw32.
44
45 %prep
46 %setup -q -n %{realname}-%{version}
47 %patch0 -p1
48 %patch1 -p1
49 %patch2 -p1
50
51 %build
52 %{__libtoolize}
53 %{__aclocal}
54 %{__autoconf}
55 %{__automake}
56 cd autoconf-lib-link
57 %{__aclocal} -I m4 -I ../m4
58 %{__autoconf}
59 %{__automake}
60 cd ../gettext-runtime
61 %{__aclocal} -I m4 -I gnulib-m4 -I ../autoconf-lib-link/m4 -I ../m4
62 %{__autoconf}
63 %{__automake}
64 cd ..
65
66 %configure \
67         AR="%{target}-ar" \
68         RANLIB="%{target}-ranlib" \
69         --target=%{target} \
70         --host=%{target_platform} \
71         --disable-csharp \
72         --disable-static
73 %{__make}
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77
78 %{__make} install \
79         DESTDIR=$RPM_BUILD_ROOT
80
81 %if 0%{!?debug:1}
82 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_bindir}/*.dll
83 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
84 %endif
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %files
90 %defattr(644,root,root,755)
91 %{_bindir}/libintl-8.dll
92 %{_libdir}/libintl.dll.a
93 %{_libdir}/libintl.la
94 %if %{with asprintf}
95 %{_bindir}/libasprintf-0.dll
96 %{_libdir}/libasprintf.dll.a
97 %{_libdir}/libasprintf.la
98 %endif
99 %{_includedir}/*.h
This page took 0.053801 seconds and 2 git commands to generate.