]> git.pld-linux.org Git - packages/crossmingw32-gettext.git/blame - crossmingw32-gettext.spec
- updated for 0.17 (just a few fixes/unifications)
[packages/crossmingw32-gettext.git] / crossmingw32-gettext.spec
CommitLineData
e5e5fbcf 1Summary: gettext libraries - cross mingw32 version
615485e8 2Summary(pl.UTF-8): Biblioteki gettext - wersja skrośna dla mingw32
db148317 3%define _realname gettext
4Name: crossmingw32-%{_realname}
56f9329a 5Version: 0.16.1
e86b7230 6Release: 1
7License: LGPL
c9e435aa 8Group: Development/Libraries
db148317 9Source0: ftp://ftp.gnu.org/gnu/gettext/%{_realname}-%{version}.tar.gz
56f9329a 10# Source0-md5: 3d9ad24301c6d6b17ec30704a13fe127
db148317 11Patch0: %{_realname}-info.patch
12Patch1: %{_realname}-killkillkill.patch
f9b2d210 13Patch2: %{name}.patch
db9d0dcf 14Patch3: %{_realname}-localename.patch
e86b7230 15URL: http://www.gnu.org/software/gettext/
024b6753
JB
16BuildRequires: autoconf >= 2.60
17BuildRequires: automake >= 1:1.10
e5e5fbcf 18BuildRequires: crossmingw32-gcc
db148317 19BuildRequires: crossmingw32-gcc-c++
e5e5fbcf 20BuildRequires: crossmingw32-libiconv
e86b7230 21BuildRequires: libtool
b3175891 22BuildRequires: texinfo
59d0034b
JB
23Requires: crossmingw32-libiconv
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
e86b7230 25
26%define no_install_post_strip 1
27
28%define target i386-mingw32
29%define target_platform i386-pc-mingw32
db148317 30%define arch %{_prefix}/%{target}
db148317 31
59d0034b
JB
32%define _sysprefix /usr
33%define _prefix %{_sysprefix}/%{target}
db148317 34%define _pkgconfigdir %{_prefix}/lib/pkgconfig
c9e435aa 35%define _dlldir /usr/share/wine/windows/system
e86b7230 36%define __cc %{target}-gcc
37%define __cxx %{target}-g++
38
39%description
e5e5fbcf
JB
40gettext libraries - cross mingw32 version.
41
8f9ab6bc
JR
42%description -l pl.UTF-8
43Biblioteki gettext - wersja skrośna dla mingw32.
e86b7230 44
c9e435aa
JB
45%package static
46Summary: Static gettext libraries (cross mingw32 version)
47Summary(pl.UTF-8): Statyczne biblioteki gettext (wersja skrośna mingw32)
48Group: Development/Libraries
49Requires: %{name} = %{version}-%{release}
50
51%description static
52Static gettext libraries (cross mingw32 version).
53
54%description static -l pl.UTF-8
55Statyczne biblioteki gettext (wersja skrośna mingw32).
56
57%package dll
58Summary: DLL gettext libraries for Windows
59Summary(pl.UTF-8): Biblioteki DLL gettext dla Windows
60Group: Applications/Emulators
d17eea6e 61Requires: crossmingw32-libiconv-dll
c9e435aa
JB
62Requires: wine
63
64%description dll
65DLL gettext libraries for Windows.
66
67%description dll -l pl.UTF-8
68Biblioteki DLL gettext dla Windows.
69
e86b7230 70%prep
db148317 71%setup -q -n %{_realname}-%{version}
3cf55ad9 72%patch0 -p1
6a3f6222 73%patch1 -p1
74%patch2 -p1
db9d0dcf 75%patch3 -p1
e86b7230 76
77%build
e86b7230 78%{__libtoolize}
6a3f6222 79%{__aclocal}
e86b7230 80%{__autoconf}
6a3f6222 81%{__automake}
f9b2d210 82cd autoconf-lib-link
221fdc2c 83%{__aclocal} -I m4 -I ../m4
f9b2d210
JB
84%{__autoconf}
85%{__automake}
86cd ../gettext-runtime
4047acdd 87%{__aclocal} -I m4 -I gnulib-m4 -I ../autoconf-lib-link/m4 -I ../m4
6a3f6222 88%{__autoconf}
89%{__automake}
59d0034b 90cd ..
e86b7230 91
92%configure \
93 --target=%{target} \
9738850f 94 --host=%{target} \
f9b2d210 95 --disable-csharp \
9738850f 96 --enable-static
97
e86b7230 98%{__make}
99
100%install
101rm -rf $RPM_BUILD_ROOT
e86b7230 102
103%{__make} install \
104 DESTDIR=$RPM_BUILD_ROOT
105
c9e435aa
JB
106install -d $RPM_BUILD_ROOT%{_dlldir}
107mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
108
59d0034b 109%if 0%{!?debug:1}
c9e435aa 110%{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
59d0034b
JB
111%{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
112%endif
c9e435aa
JB
113
114rm -f $RPM_BUILD_ROOT%{_libdir}/charset.alias
115rm -rf $RPM_BUILD_ROOT%{_datadir}/{aclocal,doc,gettext,locale,man}
116rm -rf $RPM_BUILD_ROOT%{_infodir}
117
e86b7230 118%clean
119rm -rf $RPM_BUILD_ROOT
120
121%files
e5e5fbcf 122%defattr(644,root,root,755)
0449639a 123%{_libdir}/libintl.dll.a
7063962d 124%{_libdir}/libintl.la
7063962d 125%{_libdir}/libasprintf.dll.a
4c54fa9e 126%{_libdir}/libasprintf.la
c9e435aa
JB
127%{_includedir}/*.h
128
129%files static
130%defattr(644,root,root,755)
131%{_libdir}/libintl.a
132%{_libdir}/libasprintf.a
133
134%files dll
135%defattr(644,root,root,755)
136%{_dlldir}/libintl-8.dll
137%{_dlldir}/libasprintf-0.dll
This page took 0.09286 seconds and 4 git commands to generate.