]> git.pld-linux.org Git - packages/fonttools.git/blobdiff - fonttools.spec
- pl
[packages/fonttools.git] / fonttools.spec
index 6fca348723902e96781c4b1205d5f30c7ca33342..712c370c0f9dc63a21fbf40dfc11f5892cf7d815 100644 (file)
@@ -1,14 +1,17 @@
-Summary:       A tool to convert True/OpenType fonts to XML and back
+Summary:       A tool to convert TrueType/OpenType fonts to XML and back
+Summary(pl.UTF-8):     Narzędzie do konwersji fontów TrueType/OpenType do/z XML-a
 Name:          fonttools
 Version:       2.3
 Release:       1
 License:       BSD
 Group:         Development/Tools
-URL:           http://sourceforge.net/projects/fonttools/
 Source0:       http://downloads.sourceforge.net/fonttools/%{name}-%{version}.tar.gz
 # Source0-md5: 502cdf6662e1d075f1902fbd995eaace
+URL:           http://sourceforge.net/projects/fonttools/
 BuildRequires: python-devel
 BuildRequires: python-numpy
+BuildRequires: rpmbuild(macros) >= 1.219
+BuildRequires: sed >= 4.0
 Requires:      python-numpy
 Provides:      ttx = %{version}-%{release}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -19,46 +22,51 @@ It is written in Python and has a BSD-style, open-source license. TTX
 can dump TrueType and OpenType fonts to an XML-based text format and
 vice versa.
 
+%description -l pl.UTF-8
+TTX/FontTools to narzędzie do operacji na fontach TrueType i OpenType.
+Zostało napisane w Pythonie i ma otwartą licencję w stylu BSD. TTX
+potrafi wykonywać zrzuty fontów TrueType i OpenType do formatu
+tekstowego opartego na XML-u oraz dokonać operacji odwrotnej.
+
 %prep
 %setup -q
 
-sed -i.nobang '1 d' Lib/fontTools/ttx.py
+%{__sed} -i.nobang '1 d' Lib/fontTools/ttx.py
 chmod a-x LICENSE.txt
 
 %build
-CFLAGS="%{rpmcflags} %{rpmcppflags}" %{__python} setup.py build
-
+CFLAGS="%{rpmcflags} %{rpmcppflags}" \
+%{__python} setup.py build
 
 %install
 rm -rf $RPM_BUILD_ROOT
+
 %{__python} setup.py install \
        -O1 \
        --skip-build \
        --root $RPM_BUILD_ROOT
 
-rm -rf $RPM_BUILD_ROOT%{py_sitedir}/FontTools/fontTools/ttLib/test
-chmod 0755 $RPM_BUILD_ROOT%{py_sitedir}/FontTools/fontTools/misc/eexecOp.so
+%{__rm} -r $RPM_BUILD_ROOT%{py_sitedir}/FontTools/fontTools/ttLib/test
+chmod 755 $RPM_BUILD_ROOT%{py_sitedir}/FontTools/fontTools/misc/eexecOp.so
+%py_postclean
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc LICENSE.txt
-%doc Doc/ChangeLog Doc/changes.txt Doc/documentation.html
+%doc LICENSE.txt Doc/{ChangeLog,changes.txt,documentation.html}
+%attr(755,root,root) %{_bindir}/ttx
 %{py_sitedir}/FontTools.pth
 %dir %{py_sitedir}/FontTools
+%{py_sitedir}/FontTools/*.py[co]
 %dir %{py_sitedir}/FontTools/fontTools
-%dir %{py_sitedir}/FontTools/fontTools/encodings
+%{py_sitedir}/FontTools/fontTools/*.py[co]
+%{py_sitedir}/FontTools/fontTools/encodings
 %dir %{py_sitedir}/FontTools/fontTools/misc
-%dir %{py_sitedir}/FontTools/fontTools/pens
-%dir %{py_sitedir}/FontTools/fontTools/ttLib
-%dir %{py_sitedir}/FontTools/fontTools/ttLib/tables
-%{py_sitedir}/FontTools/*.py*
-%{py_sitedir}/FontTools/fontTools/*.py*
-%{py_sitedir}/FontTools/fontTools/*/*.py*
-%{py_sitedir}/FontTools/fontTools/*/*/*.py*
-%{py_sitedir}/FontTools/fontTools/misc/eexecOp.so
-%{py_sitedir}/FontTools/fonttools-%{version}-py?.?.egg-info
-%attr(755,root,root) %{_bindir}/ttx
+%{py_sitedir}/FontTools/fontTools/misc/*.py[co]
+%attr(755,root,root) %{py_sitedir}/FontTools/fontTools/misc/eexecOp.so
+%{py_sitedir}/FontTools/fontTools/pens
+%{py_sitedir}/FontTools/fontTools/ttLib
+%{py_sitedir}/FontTools/fonttools-%{version}-py*.egg-info
 %{_mandir}/man1/ttx.1*
This page took 0.09567 seconds and 4 git commands to generate.