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