]> git.pld-linux.org Git - packages/crossmingw32-gettext.git/blame - crossmingw32-gettext.spec
- updated to 0.19.7
[packages/crossmingw32-gettext.git] / crossmingw32-gettext.spec
CommitLineData
97f38208 1%define realname gettext
bc5a7e54
JB
2Summary: gettext libraries - cross MinGW32 version
3Summary(pl.UTF-8): Biblioteki gettext - wersja skrośna dla MinGW32
fb17fcec 4Name: crossmingw32-%{realname}
ba384118 5Version: 0.19.7
c4cc2e6d 6Release: 1
fb17fcec 7License: LGPL v2+
c9e435aa 8Group: Development/Libraries
ac281e9d 9Source0: http://ftp.gnu.org/gnu/gettext/%{realname}-%{version}.tar.lz
ba384118 10# Source0-md5: 0008c0ac4958eb9749362fbac4bdf750
608b2743
JB
11Patch0: %{realname}-libintl_by_gcj.patch
12Patch1: %{name}-kill_tools.patch
e86b7230 13URL: http://www.gnu.org/software/gettext/
608b2743 14BuildRequires: autoconf >= 2.62
478762d8 15BuildRequires: automake >= 1:1.13
e5e5fbcf 16BuildRequires: crossmingw32-gcc
db148317 17BuildRequires: crossmingw32-gcc-c++
e5e5fbcf 18BuildRequires: crossmingw32-libiconv
478762d8 19BuildRequires: libtool >= 2:2
ac281e9d 20BuildRequires: lzip
478762d8 21BuildRequires: sed >= 4.0
65675030 22BuildRequires: tar >= 1:1.22
b3175891 23BuildRequires: texinfo
59d0034b
JB
24Requires: crossmingw32-libiconv
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
e86b7230 26
27%define no_install_post_strip 1
28
29%define target i386-mingw32
30%define target_platform i386-pc-mingw32
db148317 31
59d0034b
JB
32%define _sysprefix /usr
33%define _prefix %{_sysprefix}/%{target}
80f32cc3 34%define _libdir %{_prefix}/lib
db148317 35%define _pkgconfigdir %{_prefix}/lib/pkgconfig
c9e435aa 36%define _dlldir /usr/share/wine/windows/system
e86b7230 37%define __cc %{target}-gcc
38%define __cxx %{target}-g++
97f38208 39%define _ssp_cflags %{nil}
e86b7230 40
608b2743
JB
41%ifnarch %{ix86}
42# arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
43%define optflags -O2
44%endif
45# -z options are invalid for mingw linker
46%define filterout_ld -Wl,-z,.*
47
e86b7230 48%description
bc5a7e54 49gettext libraries - cross MinGW32 version.
e5e5fbcf 50
8f9ab6bc 51%description -l pl.UTF-8
bc5a7e54 52Biblioteki gettext - wersja skrośna dla MinGW32.
e86b7230 53
c9e435aa 54%package static
bc5a7e54
JB
55Summary: Static gettext libraries (cross MinGW32 version)
56Summary(pl.UTF-8): Statyczne biblioteki gettext (wersja skrośna MinGW32)
c9e435aa
JB
57Group: Development/Libraries
58Requires: %{name} = %{version}-%{release}
59
60%description static
bc5a7e54 61Static gettext libraries (cross MinGW32 version).
c9e435aa
JB
62
63%description static -l pl.UTF-8
bc5a7e54 64Statyczne biblioteki gettext (wersja skrośna MinGW32).
c9e435aa
JB
65
66%package dll
67Summary: DLL gettext libraries for Windows
68Summary(pl.UTF-8): Biblioteki DLL gettext dla Windows
69Group: Applications/Emulators
d17eea6e 70Requires: crossmingw32-libiconv-dll
c9e435aa
JB
71Requires: wine
72
73%description dll
74DLL gettext libraries for Windows.
75
76%description dll -l pl.UTF-8
77Biblioteki DLL gettext dla Windows.
78
e86b7230 79%prep
fb17fcec 80%setup -q -n %{realname}-%{version}
3cf55ad9 81%patch0 -p1
6a3f6222 82%patch1 -p1
e86b7230 83
478762d8
JB
84%{__sed} -i \
85 -e 's@m4_esyscmd(\[build-aux/git-version-gen \.tarball-version\])@[%{version}]@' \
86 configure.ac
87%{__sed} -i \
88 -e 's@m4_esyscmd(\[\.\./build-aux/git-version-gen \.\./\.tarball-version\])@[%{version}]@' \
89 gettext-runtime/configure.ac \
90 gettext-tools/configure.ac
91
e86b7230 92%build
e86b7230 93%{__libtoolize}
608b2743 94cd gettext-runtime
5afd9185 95%{__libtoolize}
608b2743 96%{__aclocal} -I m4 -I ../m4 -I gnulib-m4
6a3f6222 97%{__autoconf}
5afd9185
ŁK
98%{__autoheader}
99%{__automake}
100cd libasprintf
608b2743 101%{__aclocal} -I ../../m4 -I ../m4 -I gnulib-m4
5afd9185
ŁK
102%{__autoconf}
103%{__autoheader}
104%{__automake}
608b2743
JB
105cd ../../gettext-tools
106%{__aclocal} -I m4 -I ../gettext-runtime/m4 -I ../m4 -I gnulib-m4 -I libgrep/gnulib-m4 -I libgettextpo/gnulib-m4
107%{__autoconf}
108%{__autoheader}
109%{__automake}
110cd ..
111%{__aclocal} -I m4
5afd9185 112%{__autoconf}
6a3f6222 113%{__automake}
e86b7230 114%configure \
115 --target=%{target} \
9738850f 116 --host=%{target} \
f9b2d210 117 --disable-csharp \
608b2743 118 --enable-static \
2116e22e
JB
119 --without-bzip2 \
120 --without-git \
121 --with-xz
9738850f 122
608b2743 123%{__make}
e86b7230 124
125%install
126rm -rf $RPM_BUILD_ROOT
e86b7230 127
128%{__make} install \
129 DESTDIR=$RPM_BUILD_ROOT
130
c9e435aa
JB
131install -d $RPM_BUILD_ROOT%{_dlldir}
132mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
133
59d0034b 134%if 0%{!?debug:1}
c9e435aa 135%{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
59d0034b
JB
136%{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
137%endif
c9e435aa 138
e5f47d69
JB
139%{__rm} $RPM_BUILD_ROOT%{_bindir}/{{envsubst,gettext,ngettext}.exe,gettext.sh}
140%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{doc,gettext,locale,man}
141%{__rm} -r $RPM_BUILD_ROOT%{_infodir}
c9e435aa 142
e86b7230 143%clean
144rm -rf $RPM_BUILD_ROOT
145
146%files
e5e5fbcf 147%defattr(644,root,root,755)
0449639a 148%{_libdir}/libintl.dll.a
7063962d 149%{_libdir}/libintl.la
7063962d 150%{_libdir}/libasprintf.dll.a
4c54fa9e 151%{_libdir}/libasprintf.la
608b2743
JB
152%{_includedir}/autosprintf.h
153%{_includedir}/libintl.h
c9e435aa
JB
154
155%files static
156%defattr(644,root,root,755)
157%{_libdir}/libintl.a
158%{_libdir}/libasprintf.a
159
160%files dll
161%defattr(644,root,root,755)
162%{_dlldir}/libintl-8.dll
163%{_dlldir}/libasprintf-0.dll
This page took 0.045263 seconds and 4 git commands to generate.