Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:p_conrad
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: 20090423 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-official Group: Development/Libraries/Java Source: contrib-official-%{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-junit %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-official-%{version} grep -E '(^[p}]|static native)' "%{S:1}" >NativeThread/NativeThread.java %if 0%{?suse_version} > 0 && 0%{?suse_version} < 1200 %__sed -i 's/<javac /&target="1.5" /' fec/common/build.xml */build.xml %endif find . -name \*.so -o -name \*.dll | xargs rm %__mv bdb/LICENSE LICENSE.bdb %__chmod 0644 fec/onion_LICENSE %build %if 0%{?fedora} > 0 export JAVA_HOME=/etc/alternatives/java_sdk %endif %__make LDFLAGS= COPT="%{optflags}" -C fec/src/csrc %{?_smp_mflags} %__cp fec/src/csrc/*.so fec/lib/linux-%{_arch}/ %__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 ) %__mv NativeBigInteger/bin/tmp/libjbigi.so NativeBigInteger/lib/net/i2p/util/libjbigi-linux-%{_arch}.so %__sed -i 's/-Wall/%{optflags}/' NativeThread/Makefile javac -d NativeThread NativeThread/NativeThread.java make -C NativeThread CLASSPATH=. %if %{_arch} == "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 %__ln_s bdb wrapper cd freenet_ext %__sed -i 's=,wrapper,=,=;/zipfileset.*wrapper/d' build.xml ant %install %__mkdir_p "%{buildroot}%{_javadir}" %__install -m 0644 freenet_ext/freenet-ext.jar "%{buildroot}%{_javadir}" %files %defattr(-,root,root,-) %doc fec/onion_LICENSE LICENSE.bdb %{_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