Blame SPECS/aqute-bndlib.spec

fc14d8
%global pkg_name aqute-bndlib
fc14d8
%{?scl:%scl_package %{pkg_name}}
fc14d8
%{?maven_find_provides_and_requires}
fc14d8
fc14d8
fc14d8
Name:           %{?scl_prefix}%{pkg_name}
fc14d8
Version:        1.50.0
2d0e30
Release:        8.12%{?dist}
fc14d8
Summary:        BND Library
fc14d8
License:        ASL 2.0
fc14d8
URL:            http://www.aQute.biz/Code/Bnd
fc14d8
fc14d8
Source0:        http://repo1.maven.org/maven2/biz/aQute/bndlib/1.50.0/bndlib-1.50.0.jar
fc14d8
Source1:        http://repo1.maven.org/maven2/biz/aQute/bndlib/1.50.0/bndlib-1.50.0.pom
fc14d8
2d0e30
# Fixes compatibility with Java 8
2d0e30
Patch0:         0001-Port-to-Java-8.patch
2d0e30
fc14d8
BuildArch:      noarch
fc14d8
fc14d8
BuildRequires:  %{?scl_prefix_java_common}javapackages-tools
fc14d8
BuildRequires:  %{?scl_prefix}maven-local
fc14d8
fc14d8
%description
fc14d8
The bnd tool helps you create and diagnose OSGi R4 bundles.
fc14d8
The key functions are:
fc14d8
- Show the manifest and JAR contents of a bundle
fc14d8
- Wrap a JAR so that it becomes a bundle
fc14d8
- Create a Bundle from a specification and a class path
fc14d8
- Verify the validity of the manifest entries
fc14d8
The tool is capable of acting as:
fc14d8
- Command line tool
fc14d8
- File format
fc14d8
- Directives
fc14d8
- Use of macros
fc14d8
fc14d8
%package javadoc
fc14d8
Summary:        Javadoc for %{pkg_name}
fc14d8
fc14d8
%description javadoc
fc14d8
API documentation for %{pkg_name}.
fc14d8
fc14d8
%prep
fc14d8
%setup -q -c -n %{pkg_name}-%{version}
fc14d8
%{?scl:scl enable %{scl} - <<"EOF"}
fc14d8
set -e -x
fc14d8
fc14d8
# fixing incomplete source directory structure
fc14d8
mkdir -p src/main/java target/classes
fc14d8
mv -f OSGI-OPT/src/* src/main/java/
fc14d8
2d0e30
%patch0 -p1
2d0e30
fc14d8
# removing bundled classess & junk
fc14d8
rm -rf OSGI-OPT
fc14d8
rm -rf META-INF
fc14d8
rm -rf src/main/java/aQute/bnd/test
fc14d8
find . -iname '*.class' -delete
fc14d8
find . -iname 'packageinfo' -delete
fc14d8
fc14d8
# recycling all data files
fc14d8
mv -f aQute target/classes
fc14d8
mv -f org target/classes
fc14d8
fc14d8
# for building with maven
fc14d8
cp %{SOURCE1} pom.xml
fc14d8
fc14d8
# CR+LF -> LF
fc14d8
sed -i "s|\r||g" LICENSE
fc14d8
fc14d8
%mvn_file : %{pkg_name}
fc14d8
%{?scl:EOF}
fc14d8
fc14d8
%build
fc14d8
%{?scl:scl enable %{scl} - <<"EOF"}
fc14d8
set -e -x
fc14d8
export LC_ALL=en_US.UTF-8
fc14d8
%mvn_build
fc14d8
%{?scl:EOF}
fc14d8
fc14d8
%install
fc14d8
%{?scl:scl enable %{scl} - <<"EOF"}
fc14d8
set -e -x
fc14d8
%mvn_install
fc14d8
%{?scl:EOF}
fc14d8
fc14d8
%files -f .mfiles
fc14d8
%doc LICENSE
fc14d8
fc14d8
%files javadoc -f .mfiles-javadoc
fc14d8
%doc LICENSE
fc14d8
fc14d8
%changelog
2d0e30
* Wed Dec 14 2016 Michael Simacek <msimacek@redhat.com> - 1.50.0-8.12
2d0e30
- Fix Java 8 compatibility
2d0e30
fc14d8
* Mon Feb 08 2016 Michal Srb <msrb@redhat.com> - 1.50.0-8.11
fc14d8
- Fix BR on maven-local & co.
fc14d8
fc14d8
* Mon Jan 11 2016 Michal Srb <msrb@redhat.com> - 1.50.0-8.10
fc14d8
- maven33 rebuild #2
fc14d8
fc14d8
* Sat Jan 09 2016 Michal Srb <msrb@redhat.com> - 1.50.0-8.9
fc14d8
- maven33 rebuild
fc14d8
fc14d8
* Tue Jan 13 2015 Michael Simacek <msimacek@redhat.com> - 1.50.0-8.8
fc14d8
- Mass rebuild 2015-01-13
fc14d8
fc14d8
* Tue Jan 06 2015 Michael Simacek <msimacek@redhat.com> - 1.50.0-8.7
fc14d8
- Mass rebuild 2015-01-06
fc14d8
fc14d8
* Mon May 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.50.0-8.6
fc14d8
- Mass rebuild 2014-05-26
fc14d8
fc14d8
* Wed Feb 19 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.50.0-8.5
fc14d8
- Mass rebuild 2014-02-19
fc14d8
fc14d8
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.50.0-8.4
fc14d8
- Mass rebuild 2014-02-18
fc14d8
fc14d8
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.50.0-8.3
fc14d8
- Remove requires on java
fc14d8
fc14d8
* Thu Feb 13 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.50.0-8.2
fc14d8
- Rebuild to regenerate auto-requires
fc14d8
fc14d8
* Tue Feb 11 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.50.0-8.1
fc14d8
- First maven30 software collection build
fc14d8
fc14d8
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.50.0-8
fc14d8
- Mass rebuild 2013-12-27
fc14d8
fc14d8
* Tue Aug 27 2013 Michal Srb <msrb@redhat.com> - 1.50.0-7
fc14d8
- Migrate away from mvn-rpmbuild (Resolves: #997449)
fc14d8
fc14d8
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.50.0-6
fc14d8
- Rebuild to regenerate API documentation
fc14d8
- Resolves: CVE-2013-1571
fc14d8
fc14d8
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.50.0-5
fc14d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
fc14d8
fc14d8
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.50.0-4
fc14d8
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
fc14d8
- Replace maven BuildRequires with maven-local
fc14d8
fc14d8
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.50.0-3
fc14d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
fc14d8
fc14d8
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.50.0-2
fc14d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
fc14d8
fc14d8
* Wed Dec 21 2011 Jaromir Capik <jcapik@redhat.com> - 1.50.0-1
fc14d8
- Update to 1.50.0
fc14d8
fc14d8
* Fri Dec 02 2011 Jaromir Capik <jcapik@redhat.com> - 1.43.0-2
fc14d8
- Missing non-class files added
fc14d8
fc14d8
* Thu Sep 15 2011 Jaromir Capik <jcapik@redhat.com> - 1.43.0-1
fc14d8
- Update to 1.43.0
fc14d8
- Spec file changes according to the latest guidelines
fc14d8
fc14d8
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:0.0.363-4
fc14d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
fc14d8
fc14d8
* Tue Nov 9 2010 Alexander Kurtakov <akurtako@redhat.com> 0:0.0.363-3
fc14d8
- BR java-devel >= 1.6.0.
fc14d8
fc14d8
* Tue Nov 9 2010 Alexander Kurtakov <akurtako@redhat.com> 0:0.0.363-2
fc14d8
- Fix FTBFS.
fc14d8
fc14d8
* Thu Sep 3 2009 Alexander Kurtakov <akurtako@redhat.com> 0:0.0.363-1
fc14d8
- Update to 0.0.363.
fc14d8
fc14d8
* Wed Aug 19 2009 Andrew Overholt <overholt@redhat.com> 0:0.0.203-4.3
fc14d8
- Add LICENSE
fc14d8
- Clean up Group tag
fc14d8
fc14d8
* Mon Aug 17 2009 Andrew Overholt <overholt@redhat.com> 0:0.0.203-4.2
fc14d8
- Remove gcj support
fc14d8
fc14d8
* Wed May 20 2009 Fernando Nasser <fnasser@redhat.com> 0:0.0.203-4.1
fc14d8
- Remove unedded BRs at Andrew Overholt's recommendation
fc14d8
- Changed libdir to /usr/lib* at 'ajax' suggestion on irc to avoid
fc14d8
  noarch on 64-bit arches problem
fc14d8
fc14d8
* Fri Mar 20 2009 Yong Yang <yyang@redhat.com> 0.0.203-4
fc14d8
- rebuild with new maven2 2.0.8 built in bootstrap mode
fc14d8
- merge from JPP-6
fc14d8
fc14d8
* Tue Jan 15 2009 David Walluck <dwalluck@redhat.com> 0:0.0.203-3
fc14d8
- fix build
fc14d8
fc14d8
* Thu Jan 15 2009 Yong Yang <yyang@redhat.com> 0.0.203-3jpp.1
fc14d8
- Imported from dbhole's maven 2.0.8 packages, initial building
fc14d8
fc14d8
* Tue Mar 11 2008 Deepak Bhole <dbhole@redhat.com> 0.0.203-2jpp.1
fc14d8
- Import from JPackage + change per Fedora requirements
fc14d8
fc14d8
* Thu Feb 14 2008 Ralph Apel <r.apel@r-apel.de> - 0:0.0.203-2jpp
fc14d8
- Add several non class files to jar
fc14d8
fc14d8
* Mon Jan 07 2008 Ralph Apel <r.apel@r-apel.de> - 0:0.0.203-1jpp
fc14d8
- First release