--- /dev/null
+
+%define fcname fcpackage
+%define fcversion 2_0
+
+Summary: Font configuration and customization library
+Summary(pl): Biblioteka do konfigurowania fontów
+Name: fontconfig
+Version: 2.0
+Release: 1
+License: MIT
+Group: X11/Libraries
+Source0: http://keithp.com/fonts/pub/%{fcname}.%{fcversion}.tar.gz
+URL: http://keithp.com/fonts
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libtool
+BuildRequires: freetype-devel
+BuildRequires: expat-devel
+BuildRequires: ed
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _prefix /usr/X11R6
+%define _mandir %{_prefix}/man
+
+%description
+Fontconfig is designed to locate fonts within the system and select
+them according to requirements specified by applications.
+
+%description -l pl
+Fontconfig jest biblioteka przeznaczon± do lokalizowania fontów w
+systemie i wybierania ich w zale¿no¶ci od potrzeb aplikacji.
+
+%package devel
+Summary: Font configuration and customization library
+Summary(pl): Biblioteka do konfigurowania fontów
+Group: X11/Development/Libraries
+Requires: %{name} = %{version}
+Requires: freetype-devel
+
+%description devel
+Fontconfig is designed to locate fonts within the system and select
+them according to requirements specified by applications.
+
+This package contains the header files needed to develop programs that
+use these fontconfig.
+
+%description devel -l pl
+Fontconfig jest biblioteka przeznaczon± do lokalizowania fontów w
+systemie i wybierania ich w zale¿no¶ci od potrzeb aplikacji.
+
+Ten pakiet zawiera pliki nag³ówkowe potrzebne do kompilowania
+programów korzystaj±cych z biblioteki fontconfig.
+
+%prep
+%setup -q -n %{fcname}.%{fcversion}/%{name}
+
+%build
+%{__autoconf}
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_mandir}/man1
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+install fc-cache/fc-cache.man $RPM_BUILD_ROOT%{_mandir}/man1/fc-cache.3
+install fc-list/fc-list.man $RPM_BUILD_ROOT%{_mandir}/man1/fc-list.3
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog README
+
+%dir %{_sysconfdir}/fonts
+%config %{_sysconfdir}/fonts/fonts.conf
+%{_sysconfdir}/fonts/fonts.dtd
+
+%attr(755,root,root) %{_bindir}/fc-*
+
+%attr(755,root,root) %{_libdir}/lib*.so.*.*
+
+%{_mandir}/man1/*
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/fontconfig-config
+%{_includedir}/fontconfig
+%{_pkgconfigdir}/fontconfig.pc