]> git.pld-linux.org Git - packages/crossmingw32-fontconfig.git/blob - crossmingw32-fontconfig.spec
1361b14e151d5277fdc01b1872cd95ab2c6f4ecb
[packages/crossmingw32-fontconfig.git] / crossmingw32-fontconfig.spec
1 %define         realname   fontconfig
2 Summary:        Font configuration and customization tools - cross MinGW32 versoin
3 Summary(pl.UTF-8):      Narzędzia do konfigurowania fontów - wersja skrośna dla MinGW32
4 Name:           crossmingw32-%{realname}
5 Version:        2.10.91
6 Release:        1
7 License:        MIT
8 Group:          Development/Libraries
9 Source0:        http://fontconfig.org/release/%{realname}-%{version}.tar.bz2
10 # Source0-md5:  c795bb39fab3a656e5dff8bad6a199f6
11 Patch0:         %{realname}-blacklist.patch
12 Patch1:         %{realname}-bitstream-cyberbit.patch
13 Patch2:         %{realname}-mkstemp.patch
14 URL:            http://fontconfig.org/
15 BuildRequires:  autoconf >= 2.61
16 BuildRequires:  automake
17 BuildRequires:  crossmingw32-expat
18 BuildRequires:  crossmingw32-freetype >= 2.1.5
19 BuildRequires:  crossmingw32-gcc
20 BuildRequires:  libtool
21 BuildRequires:  pkgconfig >= 1:0.15
22 Requires:       crossmingw32-expat
23 Requires:       crossmingw32-freetype >= 2.1.5
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %define         no_install_post_strip   1
27
28 %define         target                  i386-mingw32
29 %define         target_platform         i386-pc-mingw32
30
31 %define         _sysprefix              /usr
32 %define         _prefix                 %{_sysprefix}/%{target}
33 %define         _libdir                 %{_prefix}/lib
34 %define         _pkgconfigdir           %{_prefix}/lib/pkgconfig
35 %define         _dlldir                 /usr/share/wine/windows/system
36 %define         __cc                    %{target}-gcc
37 %define         __cxx                   %{target}-g++
38
39 %ifnarch %{ix86}
40 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
41 %define         optflags        -O2
42 %endif
43 # -z options are invalid for mingw linker, most of -f options are Linux-specific
44 %define         filterout_ld    -Wl,-z,.*
45 %define         filterout_c     -f[-a-z0-9=]*
46
47 %description
48 Fontconfig is designed to locate fonts within the system and select
49 them according to requirements specified by applications.
50
51 This package contains the cross version for Win32.
52
53 %description -l pl.UTF-8
54 Fontconfig jest biblioteką przeznaczoną do lokalizowania fontów w
55 systemie i wybierania ich w zależności od potrzeb aplikacji.
56
57 Paket ten zawiera wersję skrośną dla Win32.
58
59 %package static
60 Summary:        Static freetype library (cross MinGW32 version)
61 Summary(pl.UTF-8):      Statyczna biblioteka freetype (wersja skrośna MinGW32)
62 Group:          Development/Libraries
63 Requires:       %{name} = %{version}-%{release}
64
65 %description static
66 Static freetype library (cross MinGW32 version).
67
68 %description static -l pl.UTF-8
69 Statyczna biblioteka freetype (wersja skrośna MinGW32).
70
71 %package dll
72 Summary:        DLL freetype library for Windows
73 Summary(pl.UTF-8):      Biblioteka DLL freetype dla Windows
74 Group:          Applications/Emulators
75 Requires:       crossmingw32-expat-dll
76 Requires:       crossmingw32-freetype-dll >= 2.1.5
77 Requires:       wine
78
79 %description dll
80 DLL freetype library for Windows.
81
82 %description dll -l pl.UTF-8
83 Biblioteka DLL freetype dla Windows.
84
85 %prep
86 %setup -q -n %{realname}-%{version}
87 %patch0 -p1
88 %patch1 -p1
89 %patch2 -p1
90
91 %build
92 export PKG_CONFIG_LIBDIR=%{_prefix}/lib/pkgconfig
93 %{__libtoolize}
94 %{__aclocal} -I m4
95 %{__autoconf}
96 %{__autoheader}
97 %{__automake}
98 %configure \
99         --target=%{target} \
100         --host=%{target} \
101         --with-arch=%{target} \
102         --with-freetype-config="pkg-config freetype2" \
103         --disable-docs \
104         --disable-silent-rules
105
106 %{__make}
107
108 %install
109 rm -rf $RPM_BUILD_ROOT
110
111 %{__make} -j1 install \
112         DESTDIR=$RPM_BUILD_ROOT
113
114 install -d $RPM_BUILD_ROOT%{_dlldir}
115 mv -f $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
116
117 %if 0%{!?debug:1}
118 %{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
119 %{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
120 %endif
121
122 # runtime
123 %{__rm} -r $RPM_BUILD_ROOT/etc/fonts \
124         $RPM_BUILD_ROOT%{_datadir}/{fontconfig,xml/fontconfig}
125
126 %clean
127 rm -rf $RPM_BUILD_ROOT
128
129 %files
130 %defattr(644,root,root,755)
131 %doc AUTHORS COPYING ChangeLog README
132 %{_libdir}/libfontconfig.dll.a
133 %{_libdir}/libfontconfig.la
134 %{_libdir}/fontconfig.def
135 %dir %{_includedir}/fontconfig
136 %{_includedir}/fontconfig/*.h
137 %{_pkgconfigdir}/fontconfig.pc
138
139 %files static
140 %defattr(644,root,root,755)
141 %{_libdir}/libfontconfig.a
142
143 %files dll
144 %defattr(644,root,root,755)
145 %{_dlldir}/libfontconfig-*.dll
This page took 0.259995 seconds and 2 git commands to generate.