]> git.pld-linux.org Git - packages/crossmingw32-fontconfig.git/blame - crossmingw32-fontconfig.spec
- updated to 2.15.0
[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}
017e27e0
JB
5Version: 2.15.0
6Release: 1
6145ff55 7License: MIT
2279380a 8Group: Development/Libraries
42dd7eaa 9Source0: https://www.freedesktop.org/software/fontconfig/release/%{realname}-%{version}.tar.xz
017e27e0 10# Source0-md5: 5bb3a2829aecb22ae553c39099bd0d6a
5efa4a16 11Patch0: %{realname}-bitstream-cyberbit.patch
6145ff55 12URL: http://fontconfig.org/
017e27e0 13BuildRequires: autoconf >= 2.71
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 105 --disable-docs \
f8b07cf4
JB
106 --disable-silent-rules \
107 --enable-static
6145ff55 108
109%{__make}
110
111%install
112rm -rf $RPM_BUILD_ROOT
6145ff55 113
f8b07cf4 114# fc_cachedir=/dummy is to avoid creating ${DESTDIR}LOCAL_APPDATA_FONTCONFIG_CACHE dir
1ba03cbc 115%{__make} -j1 install \
f8b07cf4
JB
116 DESTDIR=$RPM_BUILD_ROOT \
117 fc_cachedir=/dummy
6145ff55 118
2279380a 119install -d $RPM_BUILD_ROOT%{_dlldir}
388f89f1 120%{__mv} $RPM_BUILD_ROOT%{_prefix}/bin/*.dll $RPM_BUILD_ROOT%{_dlldir}
2279380a
JB
121
122%if 0%{!?debug:1}
123%{target}-strip --strip-unneeded -R.comment -R.note $RPM_BUILD_ROOT%{_dlldir}/*.dll
124%{target}-strip -g -R.comment -R.note $RPM_BUILD_ROOT%{_libdir}/*.a
125%endif
126
2279380a 127# runtime
79c66389 128%{__rm} -r $RPM_BUILD_ROOT/etc/fonts \
388f89f1
JB
129 $RPM_BUILD_ROOT%{_datadir}/{fontconfig,locale,xml/fontconfig}
130%{__rm} $RPM_BUILD_ROOT%{_bindir}/fc-*.exe
131# if needed, use ITS data from native package
132%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/gettext/its
6145ff55 133
134%clean
135rm -rf $RPM_BUILD_ROOT
136
6145ff55 137%files
138%defattr(644,root,root,755)
017e27e0 139%doc AUTHORS COPYING ChangeLog NEWS README.md
2279380a
JB
140%{_libdir}/libfontconfig.dll.a
141%{_libdir}/libfontconfig.la
142%{_libdir}/fontconfig.def
9702f257 143%dir %{_includedir}/fontconfig
144%{_includedir}/fontconfig/*.h
6145ff55 145%{_pkgconfigdir}/fontconfig.pc
2279380a
JB
146
147%files static
148%defattr(644,root,root,755)
149%{_libdir}/libfontconfig.a
150
151%files dll
152%defattr(644,root,root,755)
153%{_dlldir}/libfontconfig-*.dll
This page took 0.18124 seconds and 4 git commands to generate.