forked from pool/fontforge
Accepting request 86175 from M17N
- Make rpmlint more happy. - Apply packaging guidelines (remove redundant/obsolete tags/sections from specfile, etc.) OBS-URL: https://build.opensuse.org/request/show/86175 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/fontforge?expand=0&rev=22
This commit is contained in:
commit
dd051fa543
34
fontforge-python-module-name.diff
Normal file
34
fontforge-python-module-name.diff
Normal file
@ -0,0 +1,34 @@
|
||||
--- pyhook/setup.py.in 2011-10-03 09:42:46.000000000 +0200
|
||||
+++ pyhook/setup.py.in 2011-10-03 09:43:39.000000000 +0200
|
||||
@@ -4,16 +4,16 @@ from distutils.sysconfig import get_conf
|
||||
|
||||
if float(get_config_var('VERSION')) < 3:
|
||||
|
||||
- setup(name='fontforge',
|
||||
+ setup(name='python-fontforge',
|
||||
version='1.0',
|
||||
description='font manipulation module',
|
||||
author='George Williams',
|
||||
url='http://fontforge.sf.net/',
|
||||
- ext_modules=[Extension('fontforge',['fontforgepyhook.c'],
|
||||
+ ext_modules=[Extension('python-fontforge',['fontforgepyhook.c'],
|
||||
include_dirs=[@PYINCLUDE@],
|
||||
define_macros=[@PYDEFINES@],
|
||||
libraries=[@PYLIBS@]),
|
||||
- Extension('psMat',['psMatpyhook.c'],
|
||||
+ Extension('python-psMat',['psMatpyhook.c'],
|
||||
include_dirs=[@PYINCLUDE@],
|
||||
define_macros=[@PYDEFINES@],
|
||||
libraries=[@PYLIBS@])]
|
||||
@@ -28,8 +28,8 @@ else:
|
||||
so_ext = get_config_var('SO')
|
||||
py_libdir = get_python_lib(prefix = '@PYPREFIX@')
|
||||
libfontforge_so = join('@libdir@', 'libfontforge' + so_ext)
|
||||
- fontforge_so = join(py_libdir, 'fontforge' + so_ext)
|
||||
- psMat_so = join(py_libdir, 'psMat' + so_ext)
|
||||
+ fontforge_so = join(py_libdir, 'python-fontforge' + so_ext)
|
||||
+ psMat_so = join(py_libdir, 'python-psMat' + so_ext)
|
||||
|
||||
if hasattr(os, 'symlink'):
|
||||
link = 'sym'
|
||||
|
@ -1,3 +1,14 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 3 07:55:35 UTC 2011 - pgajdos@suse.com
|
||||
|
||||
- Make rpmlint more happy.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Sep 18 17:17:12 UTC 2011 - jengelh@medozas.de
|
||||
|
||||
- Apply packaging guidelines (remove redundant/obsolete
|
||||
tags/sections from specfile, etc.)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 16 14:38:39 CEST 2011 - pgajdos@suse.cz
|
||||
|
||||
|
@ -15,18 +15,16 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
|
||||
Name: fontforge
|
||||
BuildRequires: dos2unix freetype2-devel giflib-devel libpng-devel libtiff-devel libxml2-devel python-devel update-desktop-files xorg-x11-devel
|
||||
License: BSD3c(or similar)
|
||||
Group: Productivity/Graphics/Vector Editors
|
||||
AutoReqProv: on
|
||||
Obsoletes: PfaEdit
|
||||
Provides: PfaEdit
|
||||
Version: 20110222
|
||||
Release: 1
|
||||
Obsoletes: PfaEdit < 20110222
|
||||
Provides: PfaEdit = %{version}
|
||||
Url: http://fontforge.sourceforge.net/
|
||||
Source0: http://dfn.dl.sourceforge.net/sourceforge/fontforge/fontforge_full-%{version}.tar.bz2
|
||||
Source1: http://sourceforge.net/projects/fontforge/files/fontforge-docs/fontforge_htdocs-20110221.tar.bz2
|
||||
@ -41,6 +39,7 @@ Patch4: libpng14.diff
|
||||
# fontforge.py27.diff upstreamed from 20110222
|
||||
Patch5: fontforge.py27.diff
|
||||
Patch6: libpng14-dynamic.diff
|
||||
Patch7: fontforge-python-module-name.diff
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Summary: A Font Editor
|
||||
|
||||
@ -80,9 +79,10 @@ to develop applications that require these.
|
||||
%if %suse_version > 1120
|
||||
%patch6
|
||||
%endif
|
||||
%patch7
|
||||
mkdir docs
|
||||
tar jxvf %{S:1} -C docs
|
||||
tar jxvf %{S:2} -C docs
|
||||
tar -jxvf %{S:1} -C docs
|
||||
tar -jxvf %{S:2} -C docs
|
||||
chmod 644 docs/quadraticspline.gif
|
||||
dos2unix docs/ja/*html docs/ja/nonBMP/index.html docs/corpchar.txt docs/Big5.txt
|
||||
tar zxvf docs/cidmaps.tgz
|
||||
@ -97,20 +97,13 @@ export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
||||
# --with-multilayer
|
||||
%configure --disable-static --with-pic \
|
||||
--enable-pyextension
|
||||
%{__make} %{?jobs:-j%jobs}
|
||||
make %{?_smp_mflags}
|
||||
|
||||
pushd pyhook
|
||||
python setup.py build
|
||||
popd
|
||||
|
||||
%install
|
||||
# mkdir -p ${RPM_BUILD_ROOT}{%{_bindir},%{_libdir},%{_mandir}/man1,/usr/share/fontforge}
|
||||
# make -e bindir=$RPM_BUILD_ROOT/usr/bin \
|
||||
# sharedir=$RPM_BUILD_ROOT/usr/share/fontforge \
|
||||
# libdir=$RPM_BUILD_ROOT%{_libdir} \
|
||||
# mandir=$RPM_BUILD_ROOT%{_mandir} \
|
||||
# localedir=$RPM_BUILD_ROOT/usr/share/locale \
|
||||
# install
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
pushd $RPM_BUILD_ROOT/usr/bin
|
||||
ln -s fontforge pfaedit
|
||||
@ -130,9 +123,6 @@ python setup.py install \
|
||||
--record-rpm=%{name}-python.files
|
||||
popd
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
Loading…
Reference in New Issue
Block a user