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