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