Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:p_conrad:java
freenet_ext
freenet_ext.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File freenet_ext.spec of Package freenet_ext
# # spec file for package freenet_ext # # Copyright (c) 2013 Peter Conrad # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: freenet_ext Version: 1364576711 Release: 1 License: BSD-2-Clause and BSD-3-Clause and GPL-2.0 Summary: External libraries required by freenet engine Url: https://github.com/freenet/contrib-staging Group: Development/Libraries/Java Source: contrib-staging-%{version}.tar.bz2 Source1: https://github.com/freenet/fred-official/raw/master/src/freenet/support/io/NativeThread.java Requires: libgmp10 BuildRequires: java-devel gcc-c++ gmp-devel ant %if 0%{?fedora} > 0 BuildRequires: java-devel >= 1.6.0 %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %description This package contains a bundle of libraries used by the freenet engine. See http://freenetproject.org/ for details. %prep %setup -q -n contrib-staging-%{version} %__grep -E '(^[p}]|static native)' "%{S:1}" >NativeThread/NativeThread.java %__sed -i 's/<javac /&target="1.5" /' onion-*/build.xml find . -name \*.so -o -name \*.dll -o -name \*.jnilib | xargs rm %__chmod 0644 onion-fec/onion_LICENSE %build %if 0%{?fedora} > 0 export JAVA_HOME=/etc/alternatives/java_sdk %endif %__make LDFLAGS= COPT="%{optflags}" -C onion-fec/src/csrc %{?_smp_mflags} %ifarch x86_64 %__cp onion-fec/src/csrc/*.so onion-fec/bin/lib/linux-%{_arch}/ %else %__cp onion-fec/src/csrc/*.so onion-fec/bin/lib/linux-x86/ %endif %__sed -i 's=-static -static-libgcc==' jcpuid/build.sh ( cd jcpuid; ./build.sh ) %__sed -i 's/-Wall/%{optflags}/' NativeBigInteger/build_jbigi.sh %__mkdir_p NativeBigInteger/bin/tmp ( cd NativeBigInteger/bin/tmp; sh ../../build_jbigi.sh dynamic ) %ifarch x86_64 %__mv NativeBigInteger/bin/tmp/libjbigi.so NativeBigInteger/lib/net/i2p/util/libjbigi-linux-%{_arch}.so %else %__mv NativeBigInteger/bin/tmp/libjbigi.so NativeBigInteger/lib/net/i2p/util/libjbigi-linux-pentium.so %endif %__sed -i 's/-Wall/%{optflags}/' NativeThread/Makefile javac -d NativeThread NativeThread/NativeThread.java %__make -C NativeThread CLASSPATH=. %ifarch x86_64 %__mv NativeThread/libNativeThread.so NativeThread/lib/freenet/support/io/libNativeThread-amd64.so %else %__mv NativeThread/libNativeThread.so NativeThread/lib/freenet/support/io/libNativeThread-i386.so %endif cd onion-common ant jars cd ../onion-fec ant jars cd ../freenet-ext ant build prepare-local %__rm build/freenet/node/ExtVersion.java jar cf freenet-ext.jar -C build . %install %__mkdir_p "%{buildroot}%{_javadir}" %__install -m 0644 freenet-ext/freenet-ext.jar "%{buildroot}%{_javadir}" %files %defattr(-,root,root,-) %doc onion-fec/onion_LICENSE %{_javadir}/freenet-ext.jar %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor