]> git.pld-linux.org Git - packages/crossmingw32-libunistring.git/blame - crossmingw32-libunistring.spec
- new, based on libunistring.spec
[packages/crossmingw32-libunistring.git] / crossmingw32-libunistring.spec
CommitLineData
66d412c6
JB
1Summary: Unicode string library - MinGW32 cross version
2Summary(pl.UTF-8): Biblioteka do obsługi łańcuchów unikodowych - wersja skrośna dla MinGW32
3%define realname libunistring
4Name: crossmingw32-%{realname}
5Version: 0.9.3
6Release: 1
7License: LGPL v3+
8Group: Libraries
9Source0: http://ftp.gnu.org/gnu/libunistring/%{realname}-%{version}.tar.gz
10# Source0-md5: db8eca3b64163abadf8c40e5cecc261f
11URL: http://gnu.org/software/libunistring/
12BuildRequires: crossmingw32-gcc
13Requires: crossmingw32-runtime
14BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16%define no_install_post_strip 1
17
18%define target i386-mingw32
19%define target_platform i386-pc-mingw32
20
21%define _sysprefix /usr
22%define _prefix %{_sysprefix}/%{target}
23%define _libdir %{_prefix}/lib
24%define _dlldir /usr/share/wine/windows/system
25%define __cc %{target}-gcc
26%define __cxx %{target}-g++
27
28%ifnarch %{ix86}
29# arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
30%define optflags -O2
31%endif
32# -z options are invalid for mingw linker
33%define filterout_ld -Wl,-z,.*
34
35%description
36This library provides functions for manipulating Unicode strings and
37for manipulating C strings according to the Unicode standard.
38
39This package contains the cross version for Win32.
40
41%description -l pl.UTF-8
42Ta biblioteka udostępnia funkcje do obsługi łańcuchów unikodowych oraz
43do obsługi łańcuchów znaków C zgodnie ze standardem Unicode.
44
45Ten pakiet zawiera wersję skrośną dla Win32.
46
47%package static
48Summary: Static unistring library (cross MinGW32 version)
49Summary(pl.UTF-8): Statyczna biblioteka unistring (wersja skrośna MinGW32)
50Group: Development/Libraries
51Requires: %{name} = %{version}-%{release}
52
53%description static
54Static unistring library (cross MinGW32 version).
55
56%description static -l pl.UTF-8
57Statyczna biblioteka unistring (wersja skrośna MinGW32).
58
59%package dll
60Summary: DLL unistring library for Windows
61Summary(pl.UTF-8): Biblioteka DLL unistring dla Windows
62Group: Applications/Emulators
63Requires: wine
64
65%description dll
66Header files for unistring library.
67
68%description dll -l pl.UTF-8
69Pliki nagłówkowe biblioteki unistring.
70
71%prep
72%setup -q -n %{realname}-%{version}
73
74%build
75%configure \
76 --target=%{target} \
77 --host=%{target}
78
79%{__make}
80
81%install
82rm -rf $RPM_BUILD_ROOT
83
84%{__make} install \
85 DESTDIR=$RPM_BUILD_ROOT
86
87install -d $RPM_BUILD_ROOT%{_dlldir}
88mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
89
90%{__rm} -r $RPM_BUILD_ROOT%{_infodir} $RPM_BUILD_ROOT%{_prefix}/share/doc/libunistring
91
92%if 0%{!?debug:1}
93%{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
94%{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
95%endif
96
97%clean
98rm -rf $RPM_BUILD_ROOT
99
100%files
101%defattr(644,root,root,755)
102%doc AUTHORS BUGS ChangeLog NEWS README THANKS
103%attr(755,root,root) %{_libdir}/libunistring.dll.a
104%{_libdir}/libunistring.la
105%{_includedir}/unistring
106%{_includedir}/uni*.h
107
108%files static
109%defattr(644,root,root,755)
110%{_libdir}/libunistring.a
111
112%files dll
113%defattr(644,root,root,755)
114%{_dlldir}/libunistring-*.dll
This page took 0.083678 seconds and 4 git commands to generate.