- updated to 20150430: this release includes a few bug fixes,
performance enhancements, and refreshed icons. - download uthash when get-source.sh - fontforge --version now returns fontforge release version OBS-URL: https://build.opensuse.org/package/show/M17N/fontforge?expand=0&rev=52
This commit is contained in:
parent
8e6b5e3c4a
commit
03aeaea848
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c706593ca9d39921148163bade339c0784298e0bdc0f94edf4f169d8dc0c0fb1
|
||||
size 232714240
|
3
fontforge-20150430-repacked.tar.gz
Normal file
3
fontforge-20150430-repacked.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:684bfebe81cd52c89e566a45af623a2dfa0c7573b79951b2462c2079977e74ca
|
||||
size 42173044
|
32
fontforge-version.patch
Normal file
32
fontforge-version.patch
Normal file
@ -0,0 +1,32 @@
|
||||
Index: fontforge/start.c
|
||||
===================================================================
|
||||
--- fontforge/start.c.orig 2015-04-30 22:29:11.000000000 +0200
|
||||
+++ fontforge/start.c 2015-05-11 12:45:19.923253423 +0200
|
||||
@@ -133,9 +133,14 @@
|
||||
}
|
||||
|
||||
void doversion(const char *source_version_str) {
|
||||
+ /* not to be upstreamed ! */
|
||||
if ( source_version_str!=NULL )
|
||||
+ {
|
||||
printf( "fontforge %s\n", source_version_str );
|
||||
+ printf( "libfontforge %s\n", source_version_str );
|
||||
+ } else {
|
||||
printf( "libfontforge %d\n",
|
||||
FONTFORGE_VERSIONDATE_RAW );
|
||||
+ }
|
||||
exit(0);
|
||||
}
|
||||
Index: fontforgeexe/startnoui.c
|
||||
===================================================================
|
||||
--- fontforgeexe/startnoui.c.orig 2015-04-30 22:29:11.000000000 +0200
|
||||
+++ fontforgeexe/startnoui.c 2015-05-11 11:54:33.442771227 +0200
|
||||
@@ -116,7 +116,7 @@
|
||||
else if ( strcmp(pt,"-help")==0 )
|
||||
doscripthelp();
|
||||
else if ( strcmp(pt,"-version")==0 || strcmp(pt,"-v")==0 || strcmp(pt,"-V")==0 )
|
||||
- doversion(FONTFORGE_MODTIME_STR);
|
||||
+ doversion(source_version_str);
|
||||
}
|
||||
# if defined(_NO_PYTHON)
|
||||
ProcessNativeScript(argc, argv,stdin);
|
@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon May 11 08:36:20 UTC 2015 - pgajdos@suse.com
|
||||
|
||||
- updated to 20150430: this release includes a few bug fixes,
|
||||
performance enhancements, and refreshed icons.
|
||||
- download uthash when get-source.sh
|
||||
- fontforge --version now returns fontforge release version
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 1 13:17:09 UTC 2015 - coolo@suse.com
|
||||
|
||||
|
@ -17,18 +17,20 @@
|
||||
|
||||
|
||||
Name: fontforge
|
||||
Version: 20150330
|
||||
Version: 20150430
|
||||
Release: 0
|
||||
Summary: A Font Editor
|
||||
License: GPL-3.0+
|
||||
Group: Productivity/Graphics/Vector Editors
|
||||
Url: http://fontforge.org/
|
||||
# Source: https://github.com/fontforge/fontforge/releases/download/%{version}/fontforge-%{version}.tar.gz
|
||||
# Source: https://github.com/fontforge/fontforge/archive/%{version}.tar.gz
|
||||
# see bug 926061, fontforge-*-repacked.tar.gz does not contain fontforge-*/win/gold/libX11-*.noarch.rpm
|
||||
Source0: fontforge-%{version}-repacked.tar.gz
|
||||
Source1: get-source.sh
|
||||
# suse specific
|
||||
Patch0: propagate-creation-and-modification-times-to-ttf.patch
|
||||
# workardound for bug 930076, imho upstream should fix this
|
||||
Patch1: fontforge-version.patch
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: cairo-devel
|
||||
@ -95,7 +97,14 @@ to develop applications that use FontForge libraries.
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1
|
||||
sed -i 's/\r$//' doc/html/{Big5.txt,corpchar.txt}
|
||||
# workaround for bug 930076; we just need the _version_of_the_release_! (see also fontforge-version.patch) ---
|
||||
grep 'doversion(FONTFORGE_MODTIME_STR)' fontforgeexe/startnoui.c && \
|
||||
sed -i 's:FONTFORGE_MODTIME_STR:"%{version}":' fontforgeexe/startnoui.c
|
||||
grep 'doversion(FONTFORGE_MODTIME_STR)' fontforgeexe/startui.c && \
|
||||
sed -i 's:FONTFORGE_MODTIME_STR:"%{version}":' fontforgeexe/startui.c
|
||||
# ---
|
||||
|
||||
%build
|
||||
./bootstrap --force
|
||||
|
@ -12,13 +12,16 @@ if [ -z $VERSION ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
wget "https://github.com/fontforge/fontforge/releases/download/$VERSION/fontforge-$VERSION.tar.gz"
|
||||
tar xf fontforge-$VERSION.tar.gz
|
||||
cd fontforge-*
|
||||
wget "https://github.com/fontforge/fontforge/archive/$VERSION.tar.gz"
|
||||
tar xf $VERSION.tar.gz
|
||||
pushd fontforge-$VERSION
|
||||
# do not depend on git
|
||||
git clone https://github.com/troydhanson/uthash
|
||||
# remove not shippable files (bug 926061)
|
||||
rm win/gold/libX11-*.noarch.rpm
|
||||
./bootsrap --copy --force
|
||||
cd ..
|
||||
./bootstrap --copy --force
|
||||
popd
|
||||
tar czf fontforge-$VERSION-repacked.tar.gz fontforge-$VERSION
|
||||
rm -rf fontforge-$VERSION
|
||||
rm fontforge-$VERSION.tar.gz
|
||||
rm $VERSION.tar.gz
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user