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