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