]> git.pld-linux.org Git - packages/fontconfig.git/blobdiff - fontconfig.spec
- fixed pt_BR stuff
[packages/fontconfig.git] / fontconfig.spec
index 431cd53d9e644b4d4581034e5023292827b5e622..f992cd0f0a4491ccbe98de6cf4b6df37f5214672 100644 (file)
@@ -1,44 +1,84 @@
-
-%define fcname         fcpackage
-%define fcversion      2_1
-
-Summary:       Font configuration and customization library
-Summary(pl):   Biblioteka do konfigurowania fontów
+#
+# Conditional build
+%bcond_with    bytecode        # use bytecode hinting instead of autohinting by default
+#
+Summary:       Font configuration and customization tools
+Summary(pl):   Narzêdzia do konfigurowania fontów
+Summary(pt_BR):        Ferramentas para configuração e customização do acesso a fontes
 Name:          fontconfig
-Version:       1.0.1
-Release:       7
+Version:       2.3.1
+Release:       1
 Epoch:         1
 License:       MIT
 Group:         Libraries
-Source0:       http://fontconfig.org/release/%{fcname}.%{fcversion}.tar.gz
-Patch0:                %{name}-date.patch
-Patch1:                %{name}-blacklist.patch
-Patch2:                %{name}-defaultconfig.patch
-Patch3:                %{name}-fontdir.patch
+Source0:       http://fontconfig.org/release/%{name}-%{version}.tar.gz
+# Source0-md5: d5e42a27ad2f22bc5ec45f15533fc5d1
+Patch0:                %{name}-blacklist.patch
+Patch1:                %{name}-autohint.patch
+Patch2:                %{name}-autohint2.patch
 URL:           http://fontconfig.org/
 BuildRequires: autoconf
 BuildRequires: automake
+BuildRequires: docbook-utils >= 0.6.13-3
+BuildRequires: docbook-dtd41-sgml
 BuildRequires: ed
 BuildRequires: expat-devel
-BuildRequires: freetype-devel
+BuildRequires: freetype-devel >= 2.1.5
 BuildRequires: libtool
-Requires(post): /sbin/ldconfig
+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.
 
+This package contains tools and documentation.
+
 %description -l pl
-Fontconfig jest biblioteka przeznaczon± do lokalizowania fontów w
+Fontconfig jest bibliotek± przeznaczon± do lokalizowania fontów w
 systemie i wybierania ich w zale¿no¶ci od potrzeb aplikacji.
 
-%package devel
+Paket ten zawiera programy narzêdziowe i dokumentacjê.
+
+%description -l pt_BR
+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(pl):   Biblioteka do konfigurowania fontów
+Summary(pt_BR):        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
+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
+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):   Biblioteka do konfigurowania fontów - pliki dla programistów
+Summary(pt_BR):        Biblioteca para configuração e customização do acesso a fontes - arquivos de desenvolvimento
 Group:         Development/Libraries
-Requires:      %{name} = %{version}
-Requires:      freetype-devel
+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
@@ -48,60 +88,103 @@ 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
+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
+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):   Statyczna biblioteka do konfigurowania fontów
+Summary(pt_BR):        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
+
+%description static
+This package contains static version of fontconfig library.
+
+%description static -l pl
+Ten pakiet zawiera statyczn± wersjê biblioteki fontconfig.
+
+%description static -l pt_BR
+Este pacote contém a biblioteca estática do fontconfig
+
 %prep
-%setup -q -n %{fcname}.%{fcversion}
+%setup -q
 %patch0 -p1
-cd %{name}
+%if %{with bytecode}
 %patch1 -p1
+%else
 %patch2 -p1
-%patch3 -p1
+%endif
 
 %build
-cd %{name}
+%{__libtoolize}
+%{__aclocal}
 %{__autoconf}
-%configure
-%{__make} CC=%{__cc}
+%{__autoheader}
+%{__automake}
+%configure \
+       --disable-docs
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_mandir}/man1
+install -d $RPM_BUILD_ROOT%{_mandir}/man{1,3,5}
 
-cd %{name}
 %{__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
+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
-/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)
-%doc %{name}/{AUTHORS,README}
+%doc AUTHORS COPYING ChangeLog README README.confd
+%attr(755,root,root) %{_bindir}/fc-*
+%{_mandir}/man1/*.1*
+%{_mandir}/man5/*.5*
+
+%files libs
+%defattr(644,root,root,755)
 %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
-%attr(755,root,root) %{_bindir}/fc-*
+%dir %{_sysconfdir}/fonts/conf.d
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fonts/conf.d/*.conf
 %attr(755,root,root) %{_libdir}/lib*.so.*.*
-%{_mandir}/man1/*
 
 %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}/lib*.so
+%{_libdir}/lib*.la
 %{_includedir}/fontconfig
-%{_libdir}/lib*.so
 %{_pkgconfigdir}/fontconfig.pc
+%{_mandir}/man3/*.3*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/lib*.a
This page took 0.464525 seconds and 4 git commands to generate.