rpms/bouncycastle-mail/devel bouncycastle-mail.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 Oct 7 19:38:07 UTC 2008


Author: oget

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

Modified Files:
	.cvsignore sources 
Added Files:
	bouncycastle-mail.spec import.log 
Log Message:
* Mon Oct 6 2008 Orcan Ogetbil <orcanbahri at yahoo.com> - 1.41-3
- Added "Provides: bcmail == %%{version}-%%{release}"
- Added "Requires: bouncycastle == %%{version}"

* Sun Oct  5 2008 Orcan Ogetbil <orcanbahri at yahoo.com> - 1.41-2
- Some minor fixes/improvements in the spec file
- Improved Summary/Description
- License is MIT

* Thu Oct  2 2008 Orcan Ogetbil <orcanbahri at yahoo.com> - 1.41-1
- Initial Release
- Spec file stolen from bouncycastle-1.41-1 and modified for bcmail




--- NEW FILE bouncycastle-mail.spec ---
%define with_gcj %{!?_without_gcj:1}%{?_without_gcj:0}
%define archivever  jdk16-141

Summary:          S/MIME and CMS libraries for Bouncy Castle
Name:             bouncycastle-mail
Version:          1.41
Release:          3%{?dist}
Group:            System Environment/Libraries
License:          MIT
URL:              http://www.bouncycastle.org/
Source0:          http://www.bouncycastle.org/download/bcmail-%{archivever}.tar.gz
BuildRoot:        %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires:         bouncycastle == %{version}
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 == %{version}
BuildRequires:    java-devel >= 1.7
BuildRequires:    javamail
BuildRequires:    jpackage-utils >= 1.5
BuildRequires:    junit4

Provides:         bcmail == %{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 S/MIME and CMS, 
for Bouncy Castle.

%prep
%setup -q -n bcmail-%{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 junit4 bcprov javamail)
  javac -target 1.5 `find . -type f -name "*.java"`
  jarfile="../bcmail-%{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 mail
install -dm 755 $RPM_BUILD_ROOT%{_javadir}
install -pm 644 bcmail-%{version}.jar \
  $RPM_BUILD_ROOT%{_javadir}/bcmail-%{version}.jar
pushd $RPM_BUILD_ROOT%{_javadir}
  ln -sf bcmail-%{version}.jar bcmail.jar
popd
%if %{with_gcj}
install -dm 755 $RPM_BUILD_ROOT%{_javadir}/gcj-endorsed
pushd $RPM_BUILD_ROOT%{_javadir}/gcj-endorsed
  ln -sf ../bcmail-%{version}.jar bcmail-%{version}.jar
popd
  %{_bindir}/aot-compile-rpm
%endif

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

%postun
%if %{with_gcj}
  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}/bcmail.jar
%{_javadir}/bcmail-%{version}.jar
%if %{with_gcj}
  %{_javadir}/gcj-endorsed/bcmail-%{version}.jar
  %{_libdir}/gcj/%{name}
%endif

%changelog
* Mon Oct 6 2008 Orcan Ogetbil <orcanbahri at yahoo.com> - 1.41-3
- Added "Provides: bcmail == %%{version}-%%{release}"
- Added "Requires: bouncycastle == %%{version}"

* Sun Oct  5 2008 Orcan Ogetbil <orcanbahri at yahoo.com> - 1.41-2
- Some minor fixes/improvements in the spec file
- Improved Summary/Description
- License is MIT

* Thu Oct  2 2008 Orcan Ogetbil <orcanbahri at yahoo.com> - 1.41-1
- Initial Release
- Spec file stolen from bouncycastle-1.41-1 and modified for bcmail


--- NEW FILE import.log ---
bouncycastle-mail-1_41-3_fc10:HEAD:bouncycastle-mail-1.41-3.fc10.src.rpm:1223408241


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/bouncycastle-mail/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	7 Oct 2008 17:37:08 -0000	1.1
+++ .cvsignore	7 Oct 2008 19:37:36 -0000	1.2
@@ -0,0 +1 @@
+bcmail-jdk16-141.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/bouncycastle-mail/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	7 Oct 2008 17:37:08 -0000	1.1
+++ sources	7 Oct 2008 19:37:36 -0000	1.2
@@ -0,0 +1 @@
+df7865bbbc737cece6445219c565e9a8  bcmail-jdk16-141.tar.gz




More information about the scm-commits mailing list