Compare commits
10 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
0a66aee0e4 |
|||
|
|
6a934b9fdd | ||
|
f2598cf3bf |
|||
|
|
7db9aa4ae8 | ||
|
|
741196ad32 | ||
|
|
d131c16cc7 | ||
|
|
056a0d7e6f | ||
|
|
e7128c31d6 | ||
|
|
744e6e8b0e | ||
|
|
a82de3d6fa |
6 changed files with 1 additions and 205 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1 +0,0 @@
|
|||
/sfntly.tar.xz
|
||||
1
dead.package
Normal file
1
dead.package
Normal file
|
|
@ -0,0 +1 @@
|
|||
No time to update or make this working/building against current java packaging
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.google.typography.font.sfntly</groupId>
|
||||
<artifactId>sfntly</artifactId>
|
||||
<version>r214</version>
|
||||
<name>sfntly java</name>
|
||||
<description>A Library for Using, Editing, and Creating SFNT-based Fonts</description>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>The Apache Software License, Version 2.0</name>
|
||||
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.beust</groupId>
|
||||
<artifactId>jcommander</artifactId>
|
||||
<version>1.30</version>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.11</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.ibm.icu</groupId>
|
||||
<artifactId>icu4j</artifactId>
|
||||
<version>50.1</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
131
sfntly.spec
131
sfntly.spec
|
|
@ -1,131 +0,0 @@
|
|||
%global alphatag r214
|
||||
|
||||
Name: sfntly
|
||||
Version: 0
|
||||
Release: 0.6.%{alphatag}%{?dist}
|
||||
Summary: A Library for Using, Editing, and Creating SFNT-based Fonts
|
||||
License: ASL 2.0
|
||||
URL: http://code.google.com/p/sfntly/
|
||||
# Howto create a tarball archive
|
||||
# svn checkout -r 214 http://sfntly.googlecode.com/svn/trunk sfntly
|
||||
# rm -rf sfntly/.svn
|
||||
# find sfntly -name "*.class" -delete
|
||||
# find sfntly -name "*.jar" -delete
|
||||
# rm -rf sfntly/cpp sfntly/data
|
||||
# tar cJf sfntly.tar.xz sfntly
|
||||
Source0: %{name}.tar.xz
|
||||
Source1: %{name}-template-pom.xml
|
||||
Source2: sfnttool-template-pom.xml
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: jpackage-utils
|
||||
BuildRequires: java-devel
|
||||
BuildRequires: ant
|
||||
BuildRequires: icu4j, icu4j-charset
|
||||
BuildRequires: beust-jcommander
|
||||
BuildRequires: junit
|
||||
BuildRequires: ant-junit
|
||||
|
||||
Requires: icu4j
|
||||
Requires: icu4j-charset
|
||||
Requires: beust-jcommander
|
||||
|
||||
Requires: jpackage-utils
|
||||
Requires: java
|
||||
|
||||
%description
|
||||
sfntly is a Java library for using, editing, and creating sfnt
|
||||
container based fonts (e.g. OpenType, TrueType). This library
|
||||
was initially created by Google's Font Team.
|
||||
|
||||
The basic features of sfntly are the reading, editing,
|
||||
and writing of an sfnt container font.
|
||||
|
||||
|
||||
%package javadoc
|
||||
Summary: Javadoc for %{name}
|
||||
|
||||
%description javadoc
|
||||
This package contains the API documentation for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}
|
||||
|
||||
pushd java/src/com/google/typography/font/tools
|
||||
sed -i '/zipfileset/d' fontinfo/build.xml
|
||||
sed -i '/zipfileset/d' conversion/build.xml
|
||||
sed -i '/zipfileset/d' sfnttool/build.xml
|
||||
popd
|
||||
|
||||
sed -i '/zipfileset/d' java/src/com/google/typography/font/sfntly/sample/build.xml
|
||||
|
||||
sed -i "s|lib/icu4j-charset-4_8_1_1.jar:lib/icu4j-4_8_1_1.jar:lib/jcommander-1.27.jar:lib/junit-4.10.jar|$(build-classpath icu4j-charset):$(build-classpath icu4j):$(build-classpath beust-jcommander):$(build-classpath junit)|" \
|
||||
java/javadoc.xml
|
||||
|
||||
%build
|
||||
pushd java
|
||||
ant -Dlib.dir=%{_javadir}
|
||||
popd
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT%{_javadir}/%{name}
|
||||
cp -p java/dist/lib/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}.jar
|
||||
cp -p java/dist/tools/sfnttool/sfnttool.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/sfnttool.jar
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT%{_mavenpomdir}
|
||||
install -pm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-%{name}.pom
|
||||
%add_maven_depmap JPP.%{name}-%{name}.pom %{name}/%{name}.jar
|
||||
install -pm 644 %{SOURCE2} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-sfnttool.pom
|
||||
%add_maven_depmap JPP.%{name}-sfnttool.pom %{name}/sfnttool.jar
|
||||
|
||||
# Samples
|
||||
cp -p java/dist/sample/sflint/sflint.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/sflint.jar
|
||||
cp -p java/dist/sample/sfntdump/sfntdump.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/sfntdump.jar
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
||||
cp -rp java/build/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
||||
|
||||
%jpackage_script com.google.typography.font.tools.sfnttool.SfntTool "" "" %{name}/%{name}:%{name}/sfnttool:icu4j-charset:icu4j:beust-jcommander %{name} true
|
||||
|
||||
%check
|
||||
pushd java
|
||||
ant -Dlib.dir=%{_javadir} test
|
||||
popd
|
||||
|
||||
%files
|
||||
%doc java/COPYING
|
||||
%{_bindir}/sfntly
|
||||
%{_javadir}/%{name}
|
||||
%{_mavenpomdir}/*
|
||||
%{_mavendepmapfragdir}/*
|
||||
|
||||
%files javadoc
|
||||
%doc java/COPYING
|
||||
%{_javadocdir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Sat Sep 07 2013 Parag Nemade <pnemade AT redhat DOT com> - 0-0.6.r214
|
||||
- enable %check and add BR: ant-junit
|
||||
|
||||
* Fri Sep 06 2013 Parag Nemade <pnemade AT redhat DOT com> - 0-0.5.r214
|
||||
- Fixed the sfntly binary installation
|
||||
- added pom file for sfnttool. Thanks to gil again.
|
||||
|
||||
* Thu Sep 05 2013 Parag Nemade <pnemade AT redhat DOT com> - 0-0.4.r214
|
||||
- Added pom file
|
||||
|
||||
* Thu Sep 05 2013 Parag Nemade <pnemade AT redhat DOT com> - 0-0.3.r214
|
||||
- Removed Requires: jpackage-utils from javadoc sub package
|
||||
- Add suggestions from gil on #fedora-java channel
|
||||
|
||||
* Mon Aug 26 2013 Parag Nemade <pnemade AT redhat DOT com> - 0-0.2.r214
|
||||
- Added COPYING file.
|
||||
|
||||
* Fri Aug 23 2013 Parag Nemade <pnemade AT redhat DOT com> - 0-0.1.r214
|
||||
- Update to current svn revision 214
|
||||
|
||||
* Tue Feb 19 2013 Parag Nemade <pnemade AT redhat DOT com> - 0-0.1.r151
|
||||
- Update to current svn revision 151
|
||||
|
||||
* Tue Feb 12 2013 Parag Nemade <pnemade AT redhat DOT com> - 0-0.1.r125
|
||||
- Initial release
|
||||
|
|
@ -1,38 +0,0 @@
|
|||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.google.typography.font.sfntly</groupId>
|
||||
<artifactId>sfnttool</artifactId>
|
||||
<version>r214</version>
|
||||
<name>sfnttool java</name>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>The Apache Software License, Version 2.0</name>
|
||||
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.google.typography.font.sfntly</groupId>
|
||||
<artifactId>sfntly</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.beust</groupId>
|
||||
<artifactId>jcommander</artifactId>
|
||||
<version>1.30</version>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.11</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.ibm.icu</groupId>
|
||||
<artifactId>icu4j</artifactId>
|
||||
<version>50.1</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
1
sources
1
sources
|
|
@ -1 +0,0 @@
|
|||
ed33bd57da3d2351d4b2c73825da8265 sfntly.tar.xz
|
||||
Loading…
Add table
Add a link
Reference in a new issue