diff --git a/.devtoolset-4-cglib.metadata b/.devtoolset-4-cglib.metadata new file mode 100644 index 0000000..9d37fd3 --- /dev/null +++ b/.devtoolset-4-cglib.metadata @@ -0,0 +1 @@ +e651cbd93cb1c2155afdea6675c50e567f7ce91e SOURCES/cglib-src-3.1.jar diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..76b0919 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/cglib-src-3.1.jar 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/SOURCES/bnd.properties b/SOURCES/bnd.properties new file mode 100644 index 0000000..af50432 --- /dev/null +++ b/SOURCES/bnd.properties @@ -0,0 +1,3 @@ +Bundle-Name= Java code generation library +Bundle-SymbolicName= net.sf.cglib.core +Bundle-Version= ${cglib.bundle.version} \ No newline at end of file diff --git a/SOURCES/cglib-3.1.pom b/SOURCES/cglib-3.1.pom new file mode 100644 index 0000000..182fb2c --- /dev/null +++ b/SOURCES/cglib-3.1.pom @@ -0,0 +1,54 @@ + + + 4.0.0 + cglib + cglib + Code Generation Library + 3.1 + http://cglib.sourceforge.net/ + Code generation library + + + ASF 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + scm:cvs:pserver:anonymous@cglib.cvs.sourceforge.net:/cvsroot/cglib:cglib + http://cglib.cvs.sourceforge.net/cglib + + + + org.ow2.asm + asm + 4.2 + + + org.ow2.asm + asm-util + 4.2 + true + + + ant + ant + 1.6.2 + true + + + + + baliuka + Juozas Baliuka + + + herbyderby + Chris Nokleberg + + + sameb + Sam Berlin + + + diff --git a/SPECS/cglib.spec b/SPECS/cglib.spec new file mode 100644 index 0000000..214101c --- /dev/null +++ b/SPECS/cglib.spec @@ -0,0 +1,178 @@ +%{?scl:%scl_package cglib} +%{!?scl:%global pkg_name %{name}} +%{?java_common_find_provides_and_requires} + +%global baserelease 3 + +Name: %{?scl_prefix}cglib +Version: 3.1 +Release: 5.%{baserelease}%{?dist} +Summary: Code Generation Library for Java +License: ASL 2.0 and BSD +Group: Development/Tools +Url: http://cglib.sourceforge.net/ +Source0: http://downloads.sourceforge.net/%{pkg_name}/%{pkg_name}-src-%{version}.jar +Source1: http://mirrors.ibiblio.org/pub/mirrors/maven2/%{pkg_name}/%{pkg_name}/%{version}/%{pkg_name}-%{version}.pom +Source2: bnd.properties + + +Requires: %{?scl_prefix_java_common}objectweb-asm5 + +BuildRequires: %{?scl_prefix_java_common}ant +BuildRequires: %{?scl_prefix_java_common}jpackage-utils >= 0:1.5 + +BuildRequires: %{?scl_prefix_java_common}objectweb-asm5 +BuildRequires: unzip +BuildRequires: %{?scl_prefix_maven}aqute-bnd +Requires: %{?scl_prefix}runtime +BuildArch: noarch + +%description +cglib is a powerful, high performance and quality code generation library +for Java. It is used to extend Java classes and implements interfaces +at runtime. + +%package javadoc +Summary: Javadoc for %{pkg_name} +Group: Documentation + +%description javadoc +Documentation for the cglib code generation library. + +%prep +%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"} +set -e -x +%setup -n %{pkg_name}-%{version} -q -c %{pkg_name}-%{version} +cp -p %{SOURCE1} pom.xml +rm lib/*.jar +# Remove the repackaging step that includes other jars into the final thing +sed -i "//d" build.xml + +%pom_xpath_remove "pom:dependency[pom:artifactId = 'asm-util']/pom:optional" +sed -i -e 's/4\.2/5.0.3/' -e 's/groupId>ant/groupId>org.apache.ant/' pom.xml + +%mvn_file :cglib cglib +%mvn_alias :cglib "net.sf.cglib:cglib" "cglib:cglib-full" "cglib:cglib-nodep" "org.sonatype.sisu.inject:cglib" +%mvn_compat_version : 3 3.1 +%{?scl:EOF} + + +%build +%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"} +set -e -x +export OPT_JAR_LIST=objectweb-asm5 +ant jar javadoc +# Convert to OSGi bundle +pushd dist +java -Dcglib.bundle.version="%{version}" \ + -jar $(build-classpath aqute-bnd) wrap -output %{pkg_name}-%{version}.bar -properties %{SOURCE2} %{pkg_name}-%{version}.jar +popd + +mv dist/%{pkg_name}-%{version}.bar dist/%{pkg_name}-%{version}.jar +%mvn_artifact pom.xml dist/%{pkg_name}-%{version}.jar +%{?scl:EOF} + + +%install +%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"} +set -e -x +%mvn_install +install -d -m 755 %{buildroot}%{_javadocdir}/%{pkg_name} +cp -rp docs/* %{buildroot}%{_javadocdir}/%{pkg_name} +%{?scl:EOF} + + +%files -f .mfiles +%doc LICENSE NOTICE + +%files javadoc +%doc LICENSE NOTICE +%{_javadocdir}/%{pkg_name} + +%changelog +* Tue Feb 16 2016 Mat Booth - 3.1-5.3 +- Fix dep on ant + +* Tue Feb 16 2016 Mat Booth - 3.1-5.2 +- Build as a compat package to avoid conflicts + +* Fri Feb 12 2016 Mat Booth - 3.1-5.1 +- Import latest from Fedora + +* Mon Oct 20 2014 Mikolaj Izdebski - 3.1-5 +- Add alias for cglib:cglib-nodep + +* Sat Jun 07 2014 Fedora Release Engineering - 3.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Wed May 21 2014 Mikolaj Izdebski - 3.1-3 +- Use .mfiles generated during build + +* Tue Mar 04 2014 Stanislav Ochotnicky - 3.1-2 +- Use Requires: java-headless rebuild (#1067528) + +* Mon Jan 13 2014 Mikolaj Izdebski - 3.1-1 +- Update to upstream version 3.1 +- Remove patch for upstream bug 44 (fixed upstream) + +* Mon Nov 11 2013 Mikolaj Izdebski - 3.0-1 +- Update to upstream version 3.0 +- Add alias for org.sonatype.sisu.inject:cglib + +* Mon Aug 05 2013 Severin Gehwolf 2.2-17 +- Remove old call to %add_to_maven_depmap macro. +- Fixes RHBZ#992051. + +* Sat Aug 03 2013 Fedora Release Engineering - 2.2-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Wed Feb 13 2013 Fedora Release Engineering - 2.2-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Nov 1 2012 Mikolaj Izdebski - 2.2-14 +- Add additional maven depmap + +* Mon Sep 17 2012 Severin Gehwolf 2.2-13 +- Use aqute bnd in order to generate OSGi metadata. + +* Fri Aug 17 2012 Mikolaj Izdebski - 2.2-12 +- Add additional depmap + +* Thu Aug 16 2012 Mikolaj Izdebski - 2.2-11 +- Fix license tag +- Install LICENSE and NOTICE with javadoc package +- Convert versioned JARs to unversioned +- Preserve timestamp of POM file +- Update to current packaging guidelines + +* Wed Jul 18 2012 Fedora Release Engineering - 2.2-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Thu Jan 12 2012 Fedora Release Engineering - 2.2-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Feb 08 2011 Fedora Release Engineering - 2.2-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Fri Nov 26 2010 Stanislav Ochotnicky - 2.2-7 +- Add missing pom file (Resolves rhbz#655793) + +* Fri Nov 27 2009 Lubomir Rintel - 2.2-6 +- BR unzip to fix openSUSE build + +* Tue Dec 9 2008 Mary Ellen Foster - 2.2-5 +- Add dist to version +- Fix BuildRoot to follow the latest guidelines + +* Mon Nov 24 2008 Mary Ellen Foster - 2.2-4 +- Add a comment explaining the patch + +* Thu Nov 6 2008 Mary Ellen Foster - 2.2-3 +- Flag Maven depmap as "config" + +* Wed Nov 5 2008 Mary Ellen Foster - 2.2-2 +- Explicitly require Java > 1.6 because it won't compile with gcj +- Fix cosmetic issues in spec file + +* Tue Nov 4 2008 Mary Ellen Foster - 2.2-1 +- Initial package (based on previous JPP version)