Sophie

Sophie

distrib > Mageia > cauldron > i586 > media > core-release-src > by-pkgid > 680867def7693a79b168b97fef63e6c1 > files > 6

josql-2.2-10.mga7.src.rpm

Name:          josql
Version:       2.2
Release:       %mkrel 10
Summary:       Library to apply SQL-like syntax to Java objects
Group:         Development/Java
License:       ASL 2.0
Url:           http://josql.sourceforge.net/
Source0:       http://sourceforge.net/projects/%{name}/files/%{name}/stable-%{version}/JoSQL-src-stable-%{version}.tar.gz
Source1:       josql-pom-template.xml
Source2:       josql.bnd
# use system javacc gentlyweb-utils and java apis
# fix javac target/source 1.5
Patch0:        %{name}-%{version}-build.patch
Patch1:        josql-2.2-doclint.patch

BuildRequires: java-devel
BuildRequires: java-javadoc
BuildRequires: javapackages-local

BuildRequires: ant
BuildRequires: aqute-bnd
BuildRequires: gentlyweb-utils
BuildRequires: javacc

# contrib-jar deps
# jasperreports
# velocity-tools
# gui-jar deps
# gentlyWEB
# jgoodies-looks -all -plastic -win
# jgoodies-forms

BuildArch:     noarch

%description
JoSQL (SQL for Java Objects) provides the ability for a developer to apply
a SQL statement to a collection of Java Objects. JoSQL provides the ability
to search, order and group ANY Java objects and should be applied when you
want to perform SQL-like queries on a collection of Java Objects.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n JoSQL-%{version}
find -name '*.jar' -delete
find -name '*.class' -delete

%patch0 -p0
%patch1 -p0

rm -rf 3rd-party-jars/*
# regenerate
#rm src/org/josql/parser/TokenMgrError.java
#rm src/org/josql/parser/ParseException.java
#rm src/org/josql/parser/Token.java
#rm src/org/josql/parser/JavaCharStream.java

sed -i 's/\r//' data/javadocsStyle.css

cp -p %{SOURCE1} pom.xml
sed -i "s|@version@|%{version}|" pom.xml

%build
# javacc (task) 6.x generate broken java files 
%ant createJar javadoc

bnd wrap -p %{SOURCE2} -o %{name}.jar -v %{version} JoSQL-%{version}.jar

%install
%mvn_file net.sf.%{name}:%{name} %{name} JoSQL
%mvn_artifact pom.xml %{name}.jar
%mvn_alias net.sf.%{name}:%{name} net.sourceforge.%{name}:%{name}
%mvn_install -J docs

%files -f .mfiles
%doc README
%license LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE-2.0.txt


%changelog
* Thu Sep 20 2018 umeabot <umeabot> 2.2-10.mga7
  (not released yet)
+ Revision: 1279091
- Mageia 7 Mass Rebuild

* Thu Oct 05 2017 daviddavid <daviddavid> 2.2-9.mga7
+ Revision: 1168928
- add OSGi support (sync with fc27)
- disable javacc support
+ neoclust <neoclust>
- Second rebuild of the java stack

* Mon Feb 29 2016 daviddavid <daviddavid> 2.2-7.mga6
+ Revision: 980812
- First rebuild of the java stack
- sync package josql with fedora
+ umeabot <umeabot>
- Mageia 6 Mass Rebuild

* Sun Jan 18 2015 daviddavid <daviddavid> 2.2-6.mga5
+ Revision: 811349
- use .mfiles generated during build

* Wed Oct 15 2014 umeabot <umeabot> 2.2-5.mga5
+ Revision: 743647
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 2.2-4.mga5
+ Revision: 680849
- Mageia 5 Mass Rebuild

* Sun May 11 2014 dmorgan <dmorgan> 2.2-3.mga5
+ Revision: 622031
- imported package josql


* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 2.2-3
- Use Requires: java-headless rebuild (#1067528)

* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Fri May 18 2012 gil cattaneo <puntogil@libero.it> 2.2-1
- initial rpm