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