Sophie

Sophie

distrib > Fedora > 16 > i386 > by-pkgid > d7507a5790b0b66a80ee37f91f3e9891 > files > 3

pcfi-2010.08.09-2.20111103gitbd245c9.fc16.src.rpm

%global commit bd245c9

Name:		pcfi
Version:	2010.08.09
Release:	2.20111103git%{commit}%{?dist}
Summary:	PDF Core Font Information

Group:		Applications/Publishing
License:	BSD
URL:		https://github.com/jukka/pcfi
# git://github.com/jukka/pcfi.git
# wget --content-disposition -N https://github.com/jukka/pcfi/tarball/master
Source0:	jukka-pcfi-pcfi-2010.08.09-2-g%{commit}.tar.gz
#Source0:	pcfi-2010.08.09.tar.gz
Source1:	http://opensource.adobe.com/wiki/display/cmap/License
BuildArch:	noarch
BuildRequires:	maven
BuildRequires:	maven-surefire-provider-junit
Requires:	jpackage-utils


%description
Collection of PDF core font information files downloaded from Adobe's
Developer Center and elsewhere. This collection contains font metrics for the
14 PDF core fonts, CMaps for the PDF CJK fonts and the Adobe Glyph List.   The
files are stored inside the com/adobe/pdf/pcfi directory. See the individual
files for exact licensing information.


%prep
%setup -q -n jukka-pcfi-%{commit}
sed -i 's/\r//' src/main/resources/META-INF/LICENSE.txt
cp %SOURCE1 .


%build
mvn-rpmbuild install


%install
mkdir -p $RPM_BUILD_ROOT%{_javadir}
cp -p target/%{name}-SNAPSHOT.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom

%add_maven_depmap JPP-%{name}.pom %{name}.jar


%files
%doc README.txt src/main/resources/META-INF/LICENSE.txt License
%{_mavenpomdir}/JPP-%{name}.pom
%{_mavendepmapfragdir}/%{name}
%{_javadir}/%{name}.jar


%changelog
* Thu Nov 3 2011 Orion Poplawski <orion@cora.nwra.com> - 2010.08.09-2.20111103gitbd245c9
- Use github upstream, build with maven
- Drop BuildRoot

* Thu Aug 11 2011 Orion Poplawski <orion@cora.nwra.com> - 2010.08.09-1
- Initial package