Merge branch 'master' of ssh://jerboaa@pkgs.fedoraproject.org/cglib.git

Conflicts:
	cglib.spec
This commit is contained in:
Severin Gehwolf 2012-09-17 14:56:35 +02:00
commit 9f3147bbe7

View File

@ -1,8 +1,8 @@
Name: cglib Name: cglib
Version: 2.2 Version: 2.2
Release: 11%{?dist} Release: 13%{?dist}
Summary: Code Generation Library for Java Summary: Code Generation Library for Java
License: ASL 2.0 License: ASL 2.0 and BSD
Group: Development/Tools Group: Development/Tools
Url: http://cglib.sourceforge.net/ Url: http://cglib.sourceforge.net/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-src-%{version}.jar Source0: http://downloads.sourceforge.net/%{name}/%{name}-src-%{version}.jar
@ -21,10 +21,6 @@ BuildRequires: objectweb-asm
BuildRequires: unzip BuildRequires: unzip
BuildRequires: aqute-bnd BuildRequires: aqute-bnd
BuildArch: noarch BuildArch: noarch
Requires(post): jpackage-utils
Requires(postun): jpackage-utils
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
%description %description
cglib is a powerful, high performance and quality code generation library cglib is a powerful, high performance and quality code generation library
@ -52,38 +48,43 @@ java -Dcglib.bundle.version="%{version}" \
popd popd
%install %install
rm -rf $RPM_BUILD_ROOT install -d -m 755 %{buildroot}%{_javadir}
mkdir -p ${RPM_BUILD_ROOT}%{_javadocdir}/ install -d -m 755 %{buildroot}%{_mavenpomdir}
cp -r docs ${RPM_BUILD_ROOT}%{_javadocdir}/%{name}-%{version} install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
mkdir -p $RPM_BUILD_ROOT%{_javadir} mkdir -p %{buildroot}%{_mavenpomdir}
cp -p dist/%{name}-%{version}.bar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar cp %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
mkdir -p $RPM_BUILD_ROOT%{_mavenpomdir}
cp %{SOURCE1} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
%add_to_maven_depmap net.sf.cglib %{name} %{version} JPP %{name} %add_to_maven_depmap net.sf.cglib %{name} %{version} JPP %{name}
# yes, this is really *.bar - aqute bnd created it
install -p -m 644 dist/%{name}-%{version}.bar %{buildroot}%{_javadir}/%{name}.jar
install -p -m 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
%add_maven_depmap -a net.sf.cglib:cglib
%post cp -rp docs/* %{buildroot}%{_javadocdir}/%{name}
%update_maven_depmap
%postun
%update_maven_depmap
%files %files
%defattr(-,root,root,-)
%doc LICENSE NOTICE %doc LICENSE NOTICE
%{_javadir}/*.jar %{_javadir}/%{name}.jar
%{_mavenpomdir}/* %{_mavenpomdir}/JPP-%{name}.pom
%config(noreplace) %{_mavendepmapfragdir}/%{name} %{_mavendepmapfragdir}/%{name}
%files javadoc %files javadoc
%defattr(-,root,root,-) %doc LICENSE NOTICE
%{_javadocdir}/%{name}-%{version} %{_javadocdir}/%{name}
%changelog %changelog
* Tue Aug 14 2012 Severin Gehwolf <sgehwolf@redhat.com> 2.2-11 * Mon Sep 17 2012 Severin Gehwolf <sgehwolf@redhat.com> 2.2-13
- Use aqute bnd in order to generate OSGi metadata. - Use aqute bnd in order to generate OSGi metadata.
* Fri Aug 17 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.2-12
- Add additional depmap
* Thu Aug 16 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 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 <rel-eng@lists.fedoraproject.org> - 2.2-10 * Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild