]> git.pld-linux.org Git - packages/crossmingw32-fribidi.git/blob - crossmingw32-fribidi.spec
- updated to 1.0.10
[packages/crossmingw32-fribidi.git] / crossmingw32-fribidi.spec
1 %define         realname   fribidi
2 Summary:        GNU FriBidi - library implementing the Unicode BiDi algorithm - cross MinGW32 version
3 Summary(pl.UTF-8):      GNU FriBidi - biblioteka implementująca algorytm Unicode BiDi - wersja skrośna dla MinGW32
4 Name:           crossmingw32-%{realname}
5 Version:        1.0.10
6 Release:        1
7 License:        LGPL v2.1+
8 Group:          Development/Libraries
9 #Source0Download: https://github.com/fribidi/fribidi/releases
10 Source0:        https://github.com/fribidi/fribidi/releases/download/v%{version}/%{realname}-%{version}.tar.xz
11 # Source0-md5:  97c87da9930e8e70fbfc8e2bcd031554
12 URL:            https://fribidi.org/
13 BuildRequires:  autoconf >= 2.64
14 BuildRequires:  automake >= 1:1.11.1
15 BuildRequires:  crossmingw32-gcc
16 BuildRequires:  libtool >= 2:2.2
17 BuildRequires:  pkgconfig >= 1:0.15
18 BuildRequires:  tar >= 1:1.22
19 BuildRequires:  xz
20 Requires:       crossmingw32-runtime
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %define         no_install_post_strip   1
24
25 %define         target                  i386-mingw32
26 %define         target_platform         i386-pc-mingw32
27
28 %define         _sysprefix              /usr
29 %define         _prefix                 %{_sysprefix}/%{target}
30 %define         _libdir                 %{_prefix}/lib
31 %define         _pkgconfigdir           %{_prefix}/lib/pkgconfig
32 %define         _dlldir                 /usr/share/wine/windows/system
33 %define         __cc                    %{target}-gcc
34 %define         __cxx                   %{target}-g++
35 %define         __pkgconfig_provides    %{nil}
36 %define         __pkgconfig_requires    %{nil}
37
38 %ifnarch %{ix86}
39 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
40 %define         optflags        -O2
41 %endif
42 # -z options are invalid for mingw linker, most of -f options are Linux-specific
43 %define         filterout_ld    -Wl,-z,.*
44 %define         filterout_c     -f[-a-z0-9=]*
45
46 %description
47 GNU FriBidi is a free Implementation of the Unicode BiDi algorithm.
48
49 This package contains the cross version for Win32.
50
51 %description -l pl.UTF-8
52 GNU FriBidi to wolnodostępna implementacja algorytmu Unicode BiDi.
53
54 Paket ten zawiera wersję skrośną dla Win32.
55
56 %package static
57 Summary:        Static FriBidi library (cross MinGW32 version)
58 Summary(pl.UTF-8):      Statyczna biblioteka FriBidi (wersja skrośna MinGW32)
59 Group:          Development/Libraries
60 Requires:       %{name} = %{version}-%{release}
61
62 %description static
63 Static FriBidi library (cross MinGW32 version).
64
65 %description static -l pl.UTF-8
66 Statyczna biblioteka FriBidi (wersja skrośna MinGW32).
67
68 %package dll
69 Summary:        DLL FriBidi library for Windows
70 Summary(pl.UTF-8):      Biblioteka DLL FriBidi dla Windows
71 Group:          Applications/Emulators
72 Requires:       wine
73
74 %description dll
75 DLL FriBidi library for Windows.
76
77 %description dll -l pl.UTF-8
78 Biblioteka DLL FriBidi dla Windows.
79
80 %prep
81 %setup -q -n %{realname}-%{version}
82
83 %build
84 export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
85 %{__libtoolize}
86 %{__aclocal} -I m4
87 %{__autoconf}
88 %{__autoheader}
89 %{__automake}
90 %configure \
91         --target=%{target} \
92         --host=%{target} \
93         --disable-silent-rules \
94         --enable-static
95
96 %{__make}
97
98 %install
99 rm -rf $RPM_BUILD_ROOT
100
101 %{__make} install \
102         DESTDIR=$RPM_BUILD_ROOT
103
104 install -d $RPM_BUILD_ROOT%{_dlldir}
105 %{__mv} $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
106
107 %if 0%{!?debug:1}
108 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
109 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
110 %endif
111
112 %{__rm} -r $RPM_BUILD_ROOT%{_mandir}/man3
113 # runtime
114 %{__rm} $RPM_BUILD_ROOT%{_bindir}/*.exe
115
116 %clean
117 rm -rf $RPM_BUILD_ROOT
118
119 %files
120 %defattr(644,root,root,755)
121 %doc AUTHORS ChangeLog NEWS README THANKS TODO
122 %{_libdir}/libfribidi.dll.a
123 %{_libdir}/libfribidi.la
124 %{_includedir}/fribidi
125 %{_pkgconfigdir}/fribidi.pc
126
127 %files static
128 %defattr(644,root,root,755)
129 %{_libdir}/libfribidi.a
130
131 %files dll
132 %defattr(644,root,root,755)
133 %{_dlldir}/libfribidi-0.dll
This page took 0.085514 seconds and 3 git commands to generate.