/[packages]/cauldron/nifty-examples/current/SPECS/nifty-examples.spec
ViewVC logotype

Contents of /cauldron/nifty-examples/current/SPECS/nifty-examples.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 178958 - (show annotations) (download)
Thu Dec 8 14:48:25 2011 UTC (13 years, 7 months ago) by gil
File size: 3127 byte(s)
changend main class in nifty-examples-script
added BR/R jorbis
1 %global namedreltag -SNAPSHOT
2 %global namedversion %{version}%{?namedreltag}
3 Name: nifty-examples
4 Version: 1.3.1
5 Release: %mkrel 1
6 Summary: Nifty Examples
7 Group: Development/Java
8 License: BSD
9 Url: http://nifty-gui.lessvoid.com/
10 # svn export https://nifty-gui.svn.sourceforge.net/svnroot/nifty-gui/nifty-examples/trunk/ nifty-examples-1.3.1-SNAPSHOT
11 # tar czf nifty-examples-1.3.1-SNAPSHOT-src-svn.tar.gz nifty-examples-1.3.1-SNAPSHOT
12 Source0: nifty-examples-1.3.1-SNAPSHOT-src-svn.tar.gz
13 Source1: nifty-examples-script
14 BuildRequires: java-devel
15 BuildRequires: jpackage-utils
16
17 BuildRequires: junit
18 BuildRequires: nifty
19 BuildRequires: nifty-default-controls
20 BuildRequires: nifty-lwjgl-renderer
21 BuildRequires: nifty-openal-soundsystem
22 BuildRequires: nifty-style-black
23
24 BuildRequires: maven
25 BuildRequires: maven-assembly-plugin
26 BuildRequires: maven-compiler-plugin
27 BuildRequires: maven-eclipse-plugin
28 BuildRequires: maven-jar-plugin
29 BuildRequires: maven-project-info-reports-plugin
30 BuildRequires: maven-source-plugin
31 BuildRequires: maven-wagon
32
33 BuildRequires: lwjgl eventbus xpp3 jorbis
34
35 Requires: nifty
36 Requires: nifty-default-controls
37 Requires: nifty-lwjgl-renderer
38 Requires: nifty-openal-soundsystem
39 Requires: nifty-style-black
40 Requires: lwjgl eventbus xpp3 jorbis
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 Nifty Examples
50
51 %package javadoc
52 Group: Development/Java
53 Summary: Javadoc for %{name}
54
55 %description javadoc
56 This package contains javadoc for %{name}
57
58 %prep
59 %setup -q -n %{name}-%{namedversion}
60
61 rm -rf $(find . -name "*.jar")
62 rm -rf $(find . -name "*.class")
63
64 #sed -i "s|<mainClass>de.lessvoid.nifty.examples.helloworld.HelloWorldExample</mainClass>|<mainClass>de.lessvoid.nifty.examples.helloworld.HelloWorldExampleMain</mainClass>|" pom.xml
65
66 sed -i "s|<mainClass>de.lessvoid.nifty.examples.helloworld.HelloWorldExample</mainClass>|<mainClass>de.lessvoid.nifty.examples.all.AllExamplesMain</mainClass>|" pom.xml
67 sed -i "s|src/main/resources/helloworld/helloworld.xml|helloworld/helloworld.xml|" src/main/java/de/lessvoid/nifty/examples/helloworld/HelloWorldExampleMain.java
68 sed -i "s|src/main/resources/nifty-cursor.png|nifty-cursor.png|" src/main/java/de/lessvoid/nifty/examples/helloworld/HelloWorldExampleMain.java
69
70 %build
71
72 mvn-rpmbuild install javadoc:aggregate
73
74 %install
75 [ %{buildroot} != / ] && rm -rf %{buildroot}
76
77 install -d -m 0755 %{buildroot}%{_javadir}
78 install -m 644 target/%{name}-%{namedversion}.jar \
79 %{buildroot}%{_javadir}/%{name}.jar
80
81 install -d -m 755 %{buildroot}%{_mavenpomdir}
82 install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
83 %add_maven_depmap JPP-%{name}.pom %{name}.jar
84
85 install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
86 cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}/
87
88 %post
89 %update_maven_depmap
90
91 %postun
92 %update_maven_depmap
93
94 %files
95 %{_javadir}/%{name}.jar
96 %{_mavenpomdir}/*
97 %{_mavendepmapfragdir}/*
98
99 %files javadoc
100 %{_javadocdir}/%{name}

  ViewVC Help
Powered by ViewVC 1.1.30