package created using the webbuild interface [release 20200307git-1mamba;Sat Mar 07 2020]
This commit is contained in:
parent
b2cccee667
commit
3141c03412
@ -1,2 +1,4 @@
|
||||
# sfntly
|
||||
|
||||
A library for Using, Editing, and Creating SFNT-based Fonts.
|
||||
|
||||
|
95
sfntly.spec
Normal file
95
sfntly.spec
Normal file
@ -0,0 +1,95 @@
|
||||
Name: sfntly
|
||||
Version: 20200307git
|
||||
Release: 1mamba
|
||||
Summary: A library for Using, Editing, and Creating SFNT-based Fonts
|
||||
Group: Applications/Publishing
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: https://github.com/googlefonts/sfntly
|
||||
## GITSOURCE https://github.com/googlefonts/sfntly.git master
|
||||
Source: https://github.com/googlefonts/sfntly.git/master/sfntly-%{version}.tar.bz2
|
||||
License: Apache License 2.0
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: glibc-devel
|
||||
BuildRequires: ldconfig
|
||||
BuildRequires: libgcc
|
||||
BuildRequires: libicu-devel
|
||||
BuildRequires: libstdc++6-devel
|
||||
## AUTOBUILDREQ-END
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
|
||||
%description
|
||||
A library for Using, Editing, and Creating SFNT-based Fonts.
|
||||
|
||||
%debug_package
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
cd cpp/ext
|
||||
unzip redist/gtest-*.zip
|
||||
mv gtest-* gtest
|
||||
|
||||
%build
|
||||
cd java
|
||||
|
||||
export ANT_OPTS="-Dfile.encoding=UTF-8"
|
||||
ant
|
||||
|
||||
cd ../cpp
|
||||
%cmake -d build \
|
||||
-DCMAKE_SKIP_RPATH=ON -DBUILD_SHARED_LIBS=ON
|
||||
|
||||
%make sfntly subsetter subtly subtly_subsetter subtly_merger subtly_debug chrome_subsetter
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
cd java/dist
|
||||
|
||||
install -Dm644 lib/sfntly.jar %{buildroot}%{_datadir}/java/sfntly/sfntly.jar
|
||||
install -Dm644 sample/sflint/sflint.jar %{buildroot}%{_datadir}/java/sfntly/sflint.jar
|
||||
install -Dm644 sample/sfntdump/sfntdump.jar %{buildroot}%{_datadir}/java/sfntly/sfntdump.jar
|
||||
install -Dm644 tools/fontinfo/fontinfo.jar %{buildroot}%{_datadir}/java/sfntly/fontinfo.jar
|
||||
install -Dm644 tools/sfnttool/sfnttool.jar %{buildroot}%{_datadir}/java/sfntly/sfnttool.jar
|
||||
|
||||
for tool in sflint sfntdump fontinfo sfnttool; do
|
||||
echo "#!/bin/sh" > "${tool}"
|
||||
echo "exec /usr/bin/java -jar '%{_datadir}/java/sfntly/${tool}.jar' \"\$@\"" >> "${tool}"
|
||||
install -Dm755 "${tool}" %{buildroot}%{_bindir}/${tool}
|
||||
done
|
||||
ln -s sfnttool %{buildroot}%{_bindir}/sfntly
|
||||
|
||||
cd ../../cpp/build/bin
|
||||
for f in *; do
|
||||
install -Dm755 ${f} %{buildroot}%{_bindir}/${f}
|
||||
done
|
||||
|
||||
cd ../lib
|
||||
for f in *; do
|
||||
install -Dm755 ${f} %{buildroot}%{_libdir}/${f}
|
||||
done
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/chrome_subsetter
|
||||
%{_bindir}/subsetter
|
||||
%{_bindir}/subtly_debug
|
||||
%{_bindir}/subtly_merger
|
||||
%{_bindir}/subtly_subsetter
|
||||
%{_bindir}/fontinfo
|
||||
%{_bindir}/sflint
|
||||
%{_bindir}/sfntdump
|
||||
%{_bindir}/sfntly
|
||||
%{_bindir}/sfnttool
|
||||
%dir %{_datadir}/java/sfntly
|
||||
%{_datadir}/java/sfntly/*.jar
|
||||
%{_libdir}/libsfntly.so
|
||||
%{_libdir}/libsubtly.so
|
||||
|
||||
%changelog
|
||||
* Sat Mar 07 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 20200307git-1mamba
|
||||
- package created using the webbuild interface
|
Loading…
Reference in New Issue
Block a user