rpms/bouncycastle-tsp/devel bouncycastle-tsp.spec, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Orcan Ogetbil oget at fedoraproject.org
Tue Jun 23 02:33:52 UTC 2009


Author: oget

Update of /cvs/pkgs/rpms/bouncycastle-tsp/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv10563/devel

Modified Files:
	.cvsignore sources 
Added Files:
	bouncycastle-tsp.spec import.log 
Log Message:
* Sun Jun 21 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 1.43-2
- Minor cleanup in the spec file

* Tue Jun 16 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 1.43-1
- Initial build (Spec file stolen from bouncycastle-mail and modified for bctsp)



--- NEW FILE bouncycastle-tsp.spec ---
%global with_gcj %{!?_with_gcj:0}%{?_with_gcj:1}
%global archivever  jdk16-143

Summary:          TSP libraries for Bouncy Castle
Name:             bouncycastle-tsp
Version:          1.43
Release:          2%{?dist}
Group:            System Environment/Libraries
License:          MIT
URL:              http://www.bouncycastle.org/
Source0:          http://www.bouncycastle.org/download/bctsp-%{archivever}.tar.gz
BuildRoot:        %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:    jpackage-utils >= 1.5
Requires:         jpackage-utils >= 1.5
%if %{with_gcj}
Requires:         java-1.5.0-gcj
Requires(post):   java-gcj-compat
Requires(postun): java-gcj-compat
BuildRequires:    java-gcj-compat-devel
%else
BuildArch:        noarch
%endif
BuildRequires:    bouncycastle-mail = %{version}
Requires:         bouncycastle-mail = %{version}
BuildRequires:    java-devel >= 1.7
Requires:         java >= 1.7
BuildRequires:    junit4
Requires:         junit4

Provides:         bctsp = %{version}-%{release}

%description
Bouncy Castle consists of a lightweight cryptography API and is a provider 
for the Java Cryptography Extension and the Java Cryptography Architecture.
This library package offers additional classes, in particuar 
generators/processors for Time Stamp Protocol (TSP), for Bouncy Castle.

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

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

%prep
%setup -q -n bctsp-%{archivever}
mkdir src
unzip -qq src.zip -d src/
# Remove provided binaries
find . -type f -name "*.class" -exec rm -f {} \;
find . -type f -name "*.jar" -exec rm -f {} \;

%build
pushd src
  export CLASSPATH=$(build-classpath bcprov bcmail junit4)
  javac -target 1.5 `find . -type f -name "*.java"`
  jarfile="../bctsp-%{version}.jar"
  files="`find . -type f -name "*.class"`"
  test ! -d classes && mf="" \
    || mf="`find classes/ -type f -name "*.mf" 2>/dev/null`"
  test -n "$mf" && jar cvfm $jarfile $mf $files \
    || jar cvf $jarfile $files
popd

%install
rm -rf $RPM_BUILD_ROOT

# install bouncy castle tsp
install -dm 755 $RPM_BUILD_ROOT%{_javadir}
install -pm 644 bctsp-%{version}.jar \
  $RPM_BUILD_ROOT%{_javadir}/bctsp-%{version}.jar
pushd $RPM_BUILD_ROOT%{_javadir}
  ln -sf bctsp-%{version}.jar bctsp.jar
popd
%if %{with_gcj}
install -dm 755 $RPM_BUILD_ROOT%{_javadir}/gcj-endorsed
pushd $RPM_BUILD_ROOT%{_javadir}/gcj-endorsed
  ln -sf ../bctsp-%{version}.jar bctsp-%{version}.jar
popd
  %{_bindir}/aot-compile-rpm
%endif

# javadoc
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
cp -pr docs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}

%if %{with_gcj}
%post
  if [ -x %{_bindir}/rebuild-gcj-db ]; then
    %{_bindir}/rebuild-gcj-db
  fi
%endif

%if %{with_gcj}
%postun
  if [ -x %{_bindir}/rebuild-gcj-db ]; then
    %{_bindir}/rebuild-gcj-db
  fi
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc *.html
%{_javadir}/bctsp.jar
%{_javadir}/bctsp-%{version}.jar
%if %{with_gcj}
  %{_javadir}/gcj-endorsed/bctsp-%{version}.jar
  %{_libdir}/gcj/%{name}/
%endif

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

%changelog
* Sun Jun 21 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 1.43-2
- Minor cleanup in the spec file

* Tue Jun 16 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 1.43-1
- Initial build (Spec file stolen from bouncycastle-mail and modified for bctsp)


--- NEW FILE import.log ---
bouncycastle-tsp-1_43-2_fc11:HEAD:bouncycastle-tsp-1.43-2.fc11.src.rpm:1245724383


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/bouncycastle-tsp/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	23 Jun 2009 02:27:35 -0000	1.1
+++ .cvsignore	23 Jun 2009 02:33:22 -0000	1.2
@@ -0,0 +1 @@
+bctsp-jdk16-143.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/bouncycastle-tsp/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	23 Jun 2009 02:27:35 -0000	1.1
+++ sources	23 Jun 2009 02:33:22 -0000	1.2
@@ -0,0 +1 @@
+cfaf28e26edf36ff017fa9f35938952b  bctsp-jdk16-143.tar.gz




More information about the fedora-extras-commits mailing list