/[packages]/cauldron/aalto-xml/current/SPECS/aalto-xml.spec
ViewVC logotype

Annotation of /cauldron/aalto-xml/current/SPECS/aalto-xml.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 345164 - (hide annotations) (download)
Fri Jan 11 02:01:08 2013 UTC (11 years, 6 months ago) by umeabot
File size: 2944 byte(s)
Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild
1 gil 162411 %define with_maven 1
2 dmorgan 162999
3 gil 162411 Name: aalto-xml
4     Version: 0.9.7
5 umeabot 345164 Release: %mkrel 3
6 gil 162411 Summary: Ultra-high performance non-blocking XML processor (Stax API + extensions)
7     Group: Development/Java
8     License: ASL 2.0
9     Url: https://github.com/FasterXML/aalto-xml
10     # mkdir -p aalto-xml-0.9.7
11     # git clone git://github.com/FasterXML/aalto-xml.git
12     # cd aalto-xml
13     # git archive aalto-xml-0.9.7 | tar -x -C ../aalto-xml-0.9.7
14     # cd ..
15     # tar czf aalto-xml-0.9.7-src-git.tar.gz aalto-xml-0.9.7
16     Source0: aalto-xml-0.9.7-src-git.tar.gz
17     Source1: aalto-xml-0.9.7-OSGi-MANIFEST.MF
18    
19     BuildRequires: java-devel
20     BuildRequires: jpackage-utils
21     BuildRequires: sonatype-oss-parent
22    
23     %if !%with_maven
24     BuildRequires: ant
25     BuildRequires: junit
26     BuildRequires: bea-stax-api
27     %else
28     BuildRequires: junit4
29     BuildRequires: maven-compiler-plugin
30     BuildRequires: maven-gpg-plugin
31     BuildRequires: maven-javadoc-plugin
32     BuildRequires: maven-plugin-bundle
33     BuildRequires: maven-release-plugin
34     BuildRequires: maven-source-plugin
35     BuildRequires: maven-surefire-plugin
36 dmorgan 163000 BuildRequires: maven-surefire-provider-junit4
37 gil 162411 %endif
38     BuildRequires: woodstox
39    
40     Requires: woodstox
41    
42     Requires: jpackage-utils
43     Requires(post): jpackage-utils
44     Requires(postun): jpackage-utils
45     Requires: java
46     BuildArch: noarch
47    
48     %description
49     Ultra-high performance non-blocking XML processor (Stax/Stax2,
50     SAX/SAX2).
51    
52     %package javadoc
53     Summary: Javadocs for %{name}
54     Group: Development/Java
55     Requires: jpackage-utils
56    
57     %description javadoc
58     This package contains the API documentation for %{name}.
59    
60     %prep
61     %setup -q
62    
63     find . -iname '*.jar' -delete
64     find . -iname '*.class' -delete
65     %if !%with_maven
66     ln -sf $(build-classpath junit) lib/test/junit-3.8.1.jar
67     # lib/test/stax2test-3.1.1.jar
68     ln -sf $(build-classpath woodstox-stax2-api) lib/stax2-api-3.1.1.jar
69     ln -sf $(build-classpath bea-stax-api) lib/stax-api-1.0.1.jar
70     sed -i "s|0.9.5|%{version}|" build.xml
71     # FIXME mkdir -p build/classes/META-INF
72     # cp -pr src/main/resources/* build/classes/META-INF
73     %endif
74    
75     %build
76    
77     %if !%with_maven
78     # ant jars javadoc test
79     # mkdir -p META-INF
80     # cp -p %{SOURCE1} META-INF/MANIFEST.MF
81     # touch META-INF/MANIFEST.MF
82     # zip -u build/aalto-gpl-%{version}.jar META-INF/MANIFEST.MF
83     %else
84     mvn-rpmbuild -e \
85     install javadoc:javadoc
86     %endif
87    
88     %install
89     [ %{buildroot} != / ] && rm -rf %{buildroot}
90    
91     mkdir -p %{buildroot}%{_javadir}
92     install -pm 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
93    
94     mkdir -p %{buildroot}%{_mavenpomdir}
95     install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
96     %add_maven_depmap JPP-%{name}.pom %{name}.jar
97    
98     mkdir -p %{buildroot}%{_javadocdir}/%{name}
99     cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
100    
101     %post
102     %update_maven_depmap
103    
104     %preun
105     %update_maven_depmap
106    
107     %files
108     %{_javadir}/%{name}.jar
109     %{_mavenpomdir}/*
110     %{_mavendepmapfragdir}/*
111     %doc README release-notes/*
112    
113     %files javadoc
114 dmorgan 162999 %{_javadocdir}/%{name}

  ViewVC Help
Powered by ViewVC 1.1.30