]> git.pld-linux.org Git - packages/fontconfig.git/blobdiff - fontconfig.spec
- up to 2.7.3
[packages/fontconfig.git] / fontconfig.spec
index a99d13044e87cb5c53eef0a186d82538c85ecad9..5b50f89a1283b8fd17ed785a3639e8268f853d51 100644 (file)
@@ -1,40 +1,85 @@
-
-%define fcname         fcpackage
-%define fcversion      2_0
-
-Summary:       Font configuration and customization library
-Summary(pl):   Biblioteka do konfigurowania fontów
+#
+# Conditional build
+%bcond_without static_libs     # don't build static library
+#
+Summary:       Font configuration and customization tools
+Summary(pl.UTF-8):     Narzędzia do konfigurowania fontów
+Summary(pt_BR.UTF-8):  Ferramentas para configuração e customização do acesso a fontes
 Name:          fontconfig
 Name:          fontconfig
-Version:       1.0.1
-Release:       3
+Version:       2.7.3
+Release:       1
 Epoch:         1
 License:       MIT
 Group:         Libraries
 Epoch:         1
 License:       MIT
 Group:         Libraries
-Source0:       http://fontconfig.org/release/%{fcname}.%{fcversion}.tar.gz
-Patch0:                %{name}-date.patch
+Source0:       http://fontconfig.org/release/%{name}-%{version}.tar.gz
+# Source0-md5: 747d2c691c66b563c8e8c1784ce8d014
+Source1:       %{name}-lcd-filter.conf
+Patch0:                %{name}-blacklist.patch
+Patch1:                %{name}-bitstream-cyberbit.patch
 URL:           http://fontconfig.org/
 BuildRequires: autoconf
 BuildRequires: automake
 URL:           http://fontconfig.org/
 BuildRequires: autoconf
 BuildRequires: automake
+BuildRequires: docbook-dtd41-sgml
+BuildRequires: docbook-utils >= 0.6.13-3
 BuildRequires: ed
 BuildRequires: expat-devel
 BuildRequires: ed
 BuildRequires: expat-devel
-BuildRequires: freetype-devel
+BuildRequires: freetype-devel >= 2.1.5
 BuildRequires: libtool
 BuildRequires: libtool
+BuildRequires: pkgconfig
+Requires:      %{name}-libs = %{epoch}:%{version}-%{release}
+Requires:      freetype >= 2.1.5
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 Fontconfig is designed to locate fonts within the system and select
 them according to requirements specified by applications.
 
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %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.
+This package contains tools and documentation.
 
 
-%package devel
+%description -l pl.UTF-8
+Fontconfig jest biblioteką przeznaczoną do lokalizowania fontów w
+systemie i wybierania ich w zależności od potrzeb aplikacji.
+
+Paket ten zawiera programy narzędziowe i dokumentację.
+
+%description -l pt_BR.UTF-8
+Fontconfig é uma biblioteca para configuração e customização do acesso
+a fontes.
+
+Este pacote contém as ferramentas e documentação.
+
+%package libs
 Summary:       Font configuration and customization library
 Summary:       Font configuration and customization library
-Summary(pl):   Biblioteka do konfigurowania fontów
+Summary(pl.UTF-8):     Biblioteka do konfigurowania fontów
+Summary(pt_BR.UTF-8):  Biblioteca para configuração e customização do acesso a fontes
 Group:         Development/Libraries
 Group:         Development/Libraries
-Requires:      %{name} = %{version}
-Requires:      freetype-devel
+Requires:      freetype >= 2.1.5
+Provides:      XFree86-fontconfig
+Obsoletes:     XFree86-fontconfig
+Conflicts:     fontconfig <= 1:2.2.98-1
+
+%description libs
+Fontconfig is designed to locate fonts within the system and select
+them according to requirements specified by applications.
+
+%description libs -l pl.UTF-8
+Fontconfig jest biblioteką przeznaczoną do lokalizowania fontów w
+systemie i wybierania ich w zależności od potrzeb aplikacji.
+
+%description libs -l pt_BR.UTF-8
+Fontconfig é uma biblioteca para configuração e customização do acesso
+a fontes.
+
+%package devel
+Summary:       Font configuration and customization library - development files
+Summary(pl.UTF-8):     Biblioteka do konfigurowania fontów - pliki dla programistów
+Summary(pt_BR.UTF-8):  Biblioteca para configuração e customização do acesso a fontes - arquivos de desenvolvimento
+Group:         Development/Libraries
+Requires:      %{name}-libs = %{epoch}:%{version}-%{release}
+Requires:      expat-devel
+Requires:      freetype-devel >= 2.1.5
+Provides:      XFree86-fontconfig-devel
+Obsoletes:     XFree86-fontconfig-devel
 
 %description devel
 Fontconfig is designed to locate fonts within the system and select
 
 %description devel
 Fontconfig is designed to locate fonts within the system and select
@@ -43,54 +88,114 @@ them according to requirements specified by applications.
 This package contains the header files needed to develop programs that
 use these fontconfig.
 
 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.
+%description devel -l pl.UTF-8
+Fontconfig jest biblioteką 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.
+
+%description devel -l pt_BR.UTF-8
+Fontconfig é uma biblioteca para configuração e customização do acesso
+a fontes.
+
+Este pacote contém arquivos de desenvolvimento necessários à criação
+de extensões baseadas na biblioteca fontconfig.
+
+%package static
+Summary:       Static font configuration and customization library
+Summary(pl.UTF-8):     Statyczna biblioteka do konfigurowania fontów
+Summary(pt_BR.UTF-8):  Biblioteca estática para configuração e customização do acesso a fontes
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{epoch}:%{version}-%{release}
+Provides:      XFree86-fontconfig-static
+Obsoletes:     XFree86-fontconfig-static
 
 
-Ten pakiet zawiera pliki nag³ówkowe potrzebne do kompilowania
-programów korzystaj±cych z biblioteki fontconfig.
+%description static
+This package contains static version of fontconfig library.
+
+%description static -l pl.UTF-8
+Ten pakiet zawiera statyczną wersję biblioteki fontconfig.
+
+%description static -l pt_BR.UTF-8
+Este pacote contém a biblioteca estática do fontconfig
 
 %prep
 
 %prep
-%setup -q -n %{fcname}.%{fcversion}
+%setup -q
 %patch0 -p1
 %patch0 -p1
+%patch1 -p1
 
 %build
 
 %build
-cd %{name}
+%{__libtoolize}
+%{__aclocal}
 %{__autoconf}
 %{__autoconf}
-%configure
+%{__autoheader}
+%{__automake}
+%configure \
+       --enable-docs \
+       %{!?with_static_libs:--disable-static}
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_mandir}/man1
+install -d $RPM_BUILD_ROOT{%{_mandir}/man{1,3,5},/var/cache/fontconfig}
 
 
-cd %{name}
 %{__make} install \
 %{__make} install \
-       DESTDIR=$RPM_BUILD_ROOT
+       DESTDIR=$RPM_BUILD_ROOT \
+       htmldoc_DATA= \
+       doc_DATA=
+install %{SOURCE1} \
+       $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.avail/10-lcd-filter.conf
 
 
-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
+cp -f conf.d/README README.confd
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post  -p /sbin/ldconfig
-%postun        -p /sbin/ldconfig
+%post
+umask 022
+HOME=/tmp %{_bindir}/fc-cache -f 2>/dev/null || :
+
+%post  libs -p /sbin/ldconfig
+%postun        libs -p /sbin/ldconfig
 
 %files
 %defattr(644,root,root,755)
 
 %files
 %defattr(644,root,root,755)
-%doc %{name}/{AUTHORS,README}
+%doc AUTHORS COPYING ChangeLog README README.confd
 %dir %{_sysconfdir}/fonts
 %dir %{_sysconfdir}/fonts
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/fonts/fonts.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fonts/fonts.conf
 %{_sysconfdir}/fonts/fonts.dtd
 %{_sysconfdir}/fonts/fonts.dtd
-%attr(755,root,root) %{_bindir}/fc-*
-%attr(755,root,root) %{_libdir}/lib*.so.*.*
-%{_mandir}/man1/*
+%dir %{_sysconfdir}/fonts/conf.avail
+%{_sysconfdir}/fonts/conf.avail/*.conf
+%dir %{_sysconfdir}/fonts/conf.d
+%{_sysconfdir}/fonts/conf.d/README
+%config(noreplace,missingok) %verify(not link md5 mtime size) %{_sysconfdir}/fonts/conf.d/*.conf
+%attr(755,root,root) %{_bindir}/fc-cache
+%attr(755,root,root) %{_bindir}/fc-cat
+%attr(755,root,root) %{_bindir}/fc-list
+%attr(755,root,root) %{_bindir}/fc-match
+%attr(755,root,root) %{_bindir}/fc-query
+%attr(755,root,root) %{_bindir}/fc-scan
+%{_mandir}/man1/fc-*.1*
+%{_mandir}/man5/fonts-conf.5*
+/var/cache/fontconfig
+
+%files libs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libfontconfig.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libfontconfig.so.1
 
 %files devel
 %defattr(644,root,root,755)
 
 %files devel
 %defattr(644,root,root,755)
-%doc %{name}/ChangeLog
-%attr(755,root,root) %{_bindir}/fontconfig-config
+%doc doc/fontconfig-devel/*.html
+%attr(755,root,root) %{_libdir}/libfontconfig.so
+%{_libdir}/libfontconfig.la
 %{_includedir}/fontconfig
 %{_includedir}/fontconfig
-%{_libdir}/lib*.so
 %{_pkgconfigdir}/fontconfig.pc
 %{_pkgconfigdir}/fontconfig.pc
+%{_mandir}/man3/Fc*.3*
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libfontconfig.a
+%endif
This page took 0.061141 seconds and 4 git commands to generate.