]> git.pld-linux.org Git - packages/fontconfig.git/blobdiff - fontconfig.spec
- tabs in preamble
[packages/fontconfig.git] / fontconfig.spec
index 2f9cf664c561ef1bd69fe125e829f4b4b579e04f..f1bd57b78e2dc883d52cf42ca75a4f40260a35a1 100644 (file)
@@ -1,20 +1,21 @@
-%bcond_with    bytecode # enables bytecode hinting by default
-Summary:       Font configuration and customization library
-Summary(pl):   Biblioteka do konfigurowania fontów
-Summary(pt_BR):        Fontconfig é uma biblioteca para configuração e customização do acesso a fontes
+#
+# Conditional build
+%bcond_with    bytecode        # use bytecode hinting instead of autohinting by default
+%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:       2.2.93
+Version:       2.4.2
 Release:       1
 Epoch:         1
 License:       MIT
 Group:         Libraries
 Release:       1
 Epoch:         1
 License:       MIT
 Group:         Libraries
-# Source0:     http://fontconfig.org/release/%{name}-%{version}.tar.gz
-Source0:       http://pdx.freedesktop.org/~fontconfig/release/%{name}-%{version}.tar.gz
-# Source0-md5: 82bafe9691095ec9348449b785bd0744
+Source0:       http://fontconfig.org/release/%{name}-%{version}.tar.gz
+# Source0-md5: f035852f521b54677f2b5c9e2f6d54a4
 Patch0:                %{name}-blacklist.patch
 Patch0:                %{name}-blacklist.patch
-Patch1:                %{name}-date.patch
-Patch2:                %{name}-autohint.patch
-Patch3:                %{name}-autohint2.patch
+Patch1:                %{name}-autohint.patch
 URL:           http://fontconfig.org/
 BuildRequires: autoconf
 BuildRequires: automake
 URL:           http://fontconfig.org/
 BuildRequires: autoconf
 BuildRequires: automake
@@ -24,30 +25,57 @@ BuildRequires:      ed
 BuildRequires: expat-devel
 BuildRequires: freetype-devel >= 2.1.5
 BuildRequires: libtool
 BuildRequires: expat-devel
 BuildRequires: freetype-devel >= 2.1.5
 BuildRequires: libtool
-Requires(post):        /sbin/ldconfig
+BuildRequires: pkgconfig
+Requires:      %{name}-libs = %{epoch}:%{version}-%{release}
 Requires:      freetype >= 2.1.5
 Requires:      freetype >= 2.1.5
-Provides:      XFree86-fontconfig
-Obsoletes:     XFree86-fontconfig
 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.
+
+%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
-Fontconfig é uma biblioteca para configuração e customização do acesso
+%description -l pt_BR.UTF-8
+Fontconfig é uma biblioteca para configuração e customização do acesso
 a fontes.
 
 a fontes.
 
-%package devel
+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(pt_BR):        Fontconfig é uma biblioteca para configuração e customização do acesso a fontes
+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
+Requires:      freetype >= 2.1.5
+Provides:      XFree86-fontconfig
+Conflicts:     fontconfig <= 1:2.2.98-1
+Obsoletes:     XFree86-fontconfig
+
+%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
 Group:         Development/Libraries
-Requires:      %{name} = %{epoch}:%{version}-%{release}
+Requires:      %{name}-libs = %{epoch}:%{version}-%{release}
 Requires:      expat-devel
 Requires:      freetype-devel >= 2.1.5
 Provides:      XFree86-fontconfig-devel
 Requires:      expat-devel
 Requires:      freetype-devel >= 2.1.5
 Provides:      XFree86-fontconfig-devel
@@ -60,20 +88,24 @@ 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.
+Ten pakiet zawiera pliki nagłówkowe potrzebne do kompilowania
+programów korzystających z biblioteki fontconfig.
 
 
-%description devel -l pt_BR
-Fontconfig é uma biblioteca para configuração e customização do acesso
+%description devel -l pt_BR.UTF-8
+Fontconfig é uma biblioteca para configuração e customização do acesso
 a fontes.
 
 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
 %package static
 Summary:       Static font configuration and customization library
-Summary(pl):   Statyczna biblioteka do konfigurowania fontów
+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
 Group:         Development/Libraries
 Requires:      %{name}-devel = %{epoch}:%{version}-%{release}
 Provides:      XFree86-fontconfig-static
@@ -82,18 +114,19 @@ Obsoletes: XFree86-fontconfig-static
 %description static
 This package contains static version of fontconfig library.
 
 %description static
 This package contains static version of fontconfig library.
 
-%description static -l pl
-Ten pakiet zawiera statyczn± wersjê biblioteki fontconfig.
+%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
 %setup -q
 %patch0 -p1
 
 %prep
 %setup -q
 %patch0 -p1
-%patch1 -p1
 %if %{with bytecode}
 %if %{with bytecode}
-%patch2 -p1
-%else
-%patch3 -p1
+%patch1 -p1
 %endif
 %endif
+
 %build
 %{__libtoolize}
 %{__aclocal}
 %build
 %{__libtoolize}
 %{__aclocal}
@@ -101,12 +134,13 @@ Ten pakiet zawiera statyczn
 %{__autoheader}
 %{__automake}
 %configure \
 %{__autoheader}
 %{__automake}
 %configure \
-       --disable-docs
+       --disable-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}/man{1,3,5}
+install -d $RPM_BUILD_ROOT{%{_mandir}/man{1,3,5},/var/cache/fontconfig}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
@@ -114,26 +148,37 @@ install -d $RPM_BUILD_ROOT%{_mandir}/man{1,3,5}
 install doc/*.3 $RPM_BUILD_ROOT%{_mandir}/man3
 install doc/*.5 $RPM_BUILD_ROOT%{_mandir}/man5
 
 install doc/*.3 $RPM_BUILD_ROOT%{_mandir}/man3
 install doc/*.5 $RPM_BUILD_ROOT%{_mandir}/man5
 
+cp -f conf.d/README README.confd
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
-/sbin/ldconfig
-HOME=/root %{_bindir}/fc-cache -f 2>/dev/null
+umask 022
+HOME=/tmp %{_bindir}/fc-cache -f 2>/dev/null || :
 
 
-%postun -p /sbin/ldconfig
+%post  libs -p /sbin/ldconfig
+%postun        libs -p /sbin/ldconfig
 
 %files
 %defattr(644,root,root,755)
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS COPYING ChangeLog README
-%dir %{_sysconfdir}/fonts
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/fonts/fonts.conf
-%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/fonts/local.conf
-%{_sysconfdir}/fonts/fonts.dtd
+%doc AUTHORS COPYING ChangeLog README README.confd
 %attr(755,root,root) %{_bindir}/fc-*
 %attr(755,root,root) %{_bindir}/fc-*
-%attr(755,root,root) %{_libdir}/lib*.so.*.*
 %{_mandir}/man1/*.1*
 %{_mandir}/man5/*.5*
 %{_mandir}/man1/*.1*
 %{_mandir}/man5/*.5*
+/var/cache/fontconfig
+
+%files libs
+%defattr(644,root,root,755)
+%dir %{_sysconfdir}/fonts
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fonts/fonts.conf
+%{_sysconfdir}/fonts/fonts.dtd
+%dir %{_sysconfdir}/fonts/conf.avail
+%{_sysconfdir}/fonts/conf.avail/*.conf
+%{_sysconfdir}/fonts/conf.avail/README
+%dir %{_sysconfdir}/fonts/conf.d
+%config(noreplace,missingok) %verify(not link md5 mtime size) %{_sysconfdir}/fonts/conf.d/*.conf
+%attr(755,root,root) %{_libdir}/lib*.so.*.*
 
 %files devel
 %defattr(644,root,root,755)
 
 %files devel
 %defattr(644,root,root,755)
@@ -144,6 +189,8 @@ HOME=/root %{_bindir}/fc-cache -f 2>/dev/null
 %{_pkgconfigdir}/fontconfig.pc
 %{_mandir}/man3/*.3*
 
 %{_pkgconfigdir}/fontconfig.pc
 %{_mandir}/man3/*.3*
 
+%if %{with static_libs}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/lib*.a
+%endif
This page took 0.041459 seconds and 4 git commands to generate.