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