Projects
Mega:24.09
snappy-java
_service:tar_scm:snappy-java.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:snappy-java.spec of Package snappy-java
%global debug_package %nil Name: snappy-java Version: 1.1.10.5 Release: 1 Summary: Fast compressor/decompresser License: ASL 2.0 URL: http://xerial.org/snappy-java/ Source0: https://github.com/xerial/snappy-java/archive/v%{version}/%{name}-%{version}.tar.gz Source1: https://repo1.maven.org/maven2/org/xerial/snappy/%{name}/%{version}/%{name}-%{version}.pom BuildRequires: make gcc-c++ libstdc++-static snappy-devel BuildRequires: maven-local mvn(com.sun:tools) mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.felix:org.osgi.core) Requires: snappy %description A Java port of the snappy, a fast compresser/decompresser written in C++. %package javadoc Summary: Javadoc for %{name} BuildArch: noarch %description javadoc This package contains the API documentation for %{name}. %prep %autosetup -p1 find -name "*.class" -print -delete find -name "*.jar" -print -delete rm -r ./*sbt* project find -name "*.jnilib" -print -delete find -name "*.dll" -print -delete find -name "*.so" -print -delete find -name "*.a" -print -delete find -name "*.h" -print -delete cp %{SOURCE1} pom.xml %pom_change_dep org.osgi: org.apache.felix::1.4.0 %pom_xpath_remove "pom:dependency[pom:scope = 'test']" %pom_add_plugin org.apache.felix:maven-bundle-plugin:2.5.4 . ' <extensions>true</extensions> <configuration> <instructions> <Bundle-Activator>org.xerial.snappy.SnappyBundleActivator</Bundle-Activator> <Bundle-ActivationPolicy>lazy</Bundle-ActivationPolicy> <Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName> <Bundle-Version>${project.version}</Bundle-Version> <Import-Package>org.osgi.framework,*</Import-Package> </instructions> </configuration> <executions> <execution> <id>bundle-manifest</id> <phase>process-classes</phase> <goals> <goal>manifest</goal> </goals> </execution> </executions>' %pom_add_plugin org.apache.maven.plugins:maven-compiler-plugin:3.0 . ' <configuration> <source>1.8</source> <target>1.8</target> </configuration>' chmod 644 NOTICE README.md for file in LICENSE NOTICE README.md; do sed -i.orig 's|\r||g' $file touch -r $file.orig $file rm $file.orig done %build CXXFLAGS="${CXXFLAGS:-%optflags}" export CXXFLAGS %mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8 %install %mvn_install %files -f .mfiles %doc README.md %license LICENSE NOTICE %files javadoc -f .mfiles-javadoc %license LICENSE NOTICE %changelog * Thu Mar 21 2024 yaoxin <yao_xin001@hoperun.com> - 1.1.10.5-1 - Upgrade to 1.1.10.5 * Tue Sep 26 2023 wangkai <13474090681@163.com> - 1.1.2.4-3 - Fix CVE-2023-43642 * Mon Jul 03 2023 wangkai <13474090681@163.com> - 1.1.2.4-2 - Fix CVE-2023-34455 and CVE-2023-34454 * Tue Jul 28 2020 leiju <leiju4@huawei.com> - 1.1.2.4-1 - Package init
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2