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