Sophie

Sophie

distrib > Fedora > 13 > x86_64 > by-pkgid > 3bcd8569a67e4e5f076720bf84c17a0c > files > 4

signpost-core-1.2.1.1-4.fc13.src.rpm

Name:		signpost-core
Version:	1.2.1.1
Release:	4%{?dist}
Summary:	A simple, light-weight, and modular OAuth client library for the Java platform

Group:		Development/Libraries
License:	ASL 2.0
URL:		http://code.google.com/p/oauth-signpost/
Source0:	%{name}-%{version}.tar.gz
Source1:	build.xml
Source2:	%{name}-generate-tarball.sh
# Source built using the following commands : ./signpost-core-generate-tarball.sh 1.2.1.1
# tarball is built using "git clone https://github.com/kaeppler/signpost.git" and checkout with version parameter

BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:	noarch 
BuildRequires:	jpackage-utils
BuildRequires:	java-devel >= 1:1.5.0
BuildRequires:	ant
BuildRequires:	commons-codec
Requires:	jpackage-utils
Requires:	java >= 1:1.5.0

%description
Signpost is the easy and intuitive solution for signing HTTP messages on the 
Java platform in conformance with the OAuth Core 1.0a standard. 
Signpost follows a modular and flexible design, allowing you to combine it with
different HTTP messaging layers

%package javadoc
Summary:	Javadoc for %{name}
Group:		Documentation
Requires:       %{name} = %{version}-%{release}
Requires:	jpackage-utils

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}
cp %SOURCE1 .

# Remove pre-built JAR and class files
find -name '*.jar' -exec rm -f '{}' \;
find -name '*.class' -exec rm -f '{}' \;

# Add depencies 
mkdir lib
build-jar-repository -s -p lib commons-codec


%build
ant javadoc
ant

%install
rm -rf %{buildroot}
mkdir -p  %{buildroot}%{_javadir}

install -p -m 644 build/jar/%{name}.jar %{buildroot}%{_javadir}/%{name}.jar

# javadoc
mkdir -p %{buildroot}%{_javadocdir}/%{name}
cp -rp javadoc/*  \
  %{buildroot}%{_javadocdir}/%{name}

%clean
rm -rf %{buildroot}


%files
%defattr(-,root,root,-)
%doc
%{_javadir}/%{name}.jar


%files javadoc
%defattr(-,root,root,-)
%{_javadocdir}/%{name}


%changelog
* Tue Jan 25 2011 Cédric OLIVIER <cedric.olivier@free.fr> 1.2.1.1-4
- Add fully dependency in javadoc subpackage

* Sun Jan 16 2011 Cédric OLIVIER <cedric.olivier@free.fr> 1.2.1.1-3
- Remove unnedded clean section
- Remove unneeded requires in javadoc section

* Sun Jan 16 2011 Cédric OLIVIER <cedric.olivier@free.fr> 1.2.1.1-2
- According to Java packaging guidelines version removed from jar file name 

* Sat Jan 15 2011 Cédric OLIVIER <cedric.olivier@free.fr> 1.2.1.1-1
- First release