diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0047918 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/dain-snappy-e02f7c8.tar.gz diff --git a/.rh-maven35-dain-snappy.metadata b/.rh-maven35-dain-snappy.metadata new file mode 100644 index 0000000..3cff461 --- /dev/null +++ b/.rh-maven35-dain-snappy.metadata @@ -0,0 +1 @@ +3a52ab9b75eb97bada79601ac467562f75985071 SOURCES/dain-snappy-e02f7c8.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/dain-snappy.spec b/SPECS/dain-snappy.spec new file mode 100644 index 0000000..d534f8d --- /dev/null +++ b/SPECS/dain-snappy.spec @@ -0,0 +1,84 @@ +%{?scl:%scl_package dain-snappy} +%{!?scl:%global pkg_name %{name}} + +%global commit e02f7c887d666afbdd11763f3a6ba22e68f53f15 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +%bcond_with hadoop + +Name: %{?scl_prefix}dain-snappy +Version: 0.4 +Release: 3.2%{?dist} +Summary: Snappy compression library +License: ASL 2.0 and BSD +URL: https://github.com/dain/snappy +BuildArch: noarch + +Source0: https://github.com/dain/snappy/archive/%{commit}/%{pkg_name}-%{shortcommit}.tar.gz + +BuildRequires: %{?scl_prefix}maven-local +BuildRequires: %{?scl_prefix}mvn(com.google.guava:guava) +BuildRequires: %{?scl_prefix}mvn(org.apache.maven.plugins:maven-enforcer-plugin) +BuildRequires: %{?scl_prefix}mvn(org.apache.maven.plugins:maven-source-plugin) +BuildRequires: %{?scl_prefix}mvn(org.testng:testng) +BuildRequires: %{?scl_prefix}mvn(org.xerial.snappy:snappy-java) +%if %{with hadoop} +BuildRequires: mvn(org.apache.hadoop:hadoop-common) +%endif + +%description +This is a rewrite (port) of Snappy writen in pure Java. This +compression code produces a byte-for-byte exact copy of the output +created by the original C++ code, and extremely fast. + +%package javadoc +Summary: API documentation for %{pkg_name} + +%description javadoc +%{summary}. + +%prep +%setup -q -n snappy-%{commit} +%pom_remove_plugin :really-executable-jar-maven-plugin +%pom_remove_plugin :maven-javadoc-plugin +%pom_remove_plugin :maven-surefire-plugin + +%if %{with hadoop} +%pom_change_dep :hadoop-core :hadoop-common +%else +%pom_remove_dep :hadoop-core +find -name HadoopSnappyCodec.java -delete +find -name TestHadoopSnappyCodec.java -delete +%endif + +# Broken test - dain-snappy produces different output than original snappy +sed -i /@Test/d $(find -name SnappyTest.java) + +%build +%mvn_build + +%install +%mvn_install + +%files -f .mfiles +%doc README.md +%license license.txt notice.md + +%files javadoc -f .mfiles-javadoc +%license license.txt notice.md + +%changelog +* Thu Jun 22 2017 Michael Simacek - 0.4-3.2 +- Mass rebuild 2017-06-22 + +* Wed Jun 21 2017 Java Maintainers - 0.4-3.1 +- Automated package import and SCL-ization + +* Fri Feb 10 2017 Fedora Release Engineering - 0.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Jun 2 2016 Mikolaj Izdebski - 0.4-2 +- Conditionally build without Hadoop codec + +* Tue Apr 19 2016 Mikolaj Izdebski - 0.4-1 +- Initial packaging