This commit is contained in:
commit
5ac45db9ea
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
238
velocity-1.5.pom
Normal file
238
velocity-1.5.pom
Normal file
@ -0,0 +1,238 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.apache.velocity</groupId>
|
||||
<artifactId>velocity</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<name>Apache Velocity</name>
|
||||
<version>1.5</version>
|
||||
<description>Apache Velocity is a general purpose template engine.</description>
|
||||
<url>http://velocity.apache.org/engine/releases/velocity-1.5/</url>
|
||||
<issueManagement>
|
||||
<system>JIRA</system>
|
||||
<url>https://issues.apache.org/jira/browse/VELOCITY</url>
|
||||
</issueManagement>
|
||||
<inceptionYear>2000</inceptionYear>
|
||||
<developers>
|
||||
<developer>
|
||||
<id>wglass</id>
|
||||
<name>Will Glass-Husain</name>
|
||||
<email>wglass@forio.com</email>
|
||||
<organization>Forio Business Simulations</organization>
|
||||
<roles>
|
||||
<role>Java Developer</role>
|
||||
</roles>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>geirm</id>
|
||||
<name>Geir Magnusson Jr.</name>
|
||||
<email>geirm@optonline.net</email>
|
||||
<organization>Independent (DVSL Maven)</organization>
|
||||
<roles>
|
||||
<role>Java Developer</role>
|
||||
</roles>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>dlr</id>
|
||||
<name>Daniel Rall</name>
|
||||
<email>dlr@finemaltcoding.com</email>
|
||||
<organization>CollabNet, Inc.</organization>
|
||||
<roles>
|
||||
<role>Java Developer</role>
|
||||
</roles>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>henning</id>
|
||||
<name>Henning P. Schmiedehausen</name>
|
||||
<email>hps@intermeta.de</email>
|
||||
<organization>INTERMETA - Gesellschaft f??r Mehrwertdienste mbH</organization>
|
||||
<roles>
|
||||
<role>Java Developer</role>
|
||||
</roles>
|
||||
<timezone>2</timezone>
|
||||
</developer>
|
||||
<developer>
|
||||
<id>nbubna</id>
|
||||
<name>Nathan Bubna</name>
|
||||
<email>nathan@esha.com</email>
|
||||
<organization>ESHA Research</organization>
|
||||
<roles>
|
||||
<role>Java Developer</role>
|
||||
</roles>
|
||||
</developer>
|
||||
</developers>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>The Apache Software License, Version 2.0</name>
|
||||
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
<scm>
|
||||
<connection>scm:svn:http://svn.apache.org/repos/asf/velocity/engine/tags/Velocity_1.5</connection>
|
||||
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/velocity/engine/tags/Velocity_1.5</developerConnection>
|
||||
<url>http://svn.apache.org/viewvc/velocity/engine/tags/Velocity_1.5</url>
|
||||
</scm>
|
||||
<organization>
|
||||
<name>The Apache Software Foundation</name>
|
||||
<url>http://www.apache.org/</url>
|
||||
</organization>
|
||||
<build>
|
||||
<sourceDirectory>src/java</sourceDirectory>
|
||||
<testSourceDirectory>src/test</testSourceDirectory>
|
||||
<defaultGoal>install</defaultGoal>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-site-plugin</artifactId>
|
||||
<configuration>
|
||||
<inputEncoding>UTF-8</inputEncoding>
|
||||
<outputEncoding>UTF-8</outputEncoding>
|
||||
<xdocDirectory>${basedir}/xdocs/docs</xdocDirectory>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<repositories>
|
||||
<repository>
|
||||
<releases>
|
||||
<enabled>false</enabled>
|
||||
</releases>
|
||||
<id>apache.snapshots</id>
|
||||
<name>Apache Snapshot Repository</name>
|
||||
<url>http://people.apache.org/repo/m2-snapshot-repository</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>commons-collections</groupId>
|
||||
<artifactId>commons-collections</artifactId>
|
||||
<version>3.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-lang</groupId>
|
||||
<artifactId>commons-lang</artifactId>
|
||||
<version>2.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>oro</groupId>
|
||||
<artifactId>oro</artifactId>
|
||||
<version>2.0.8</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>jdom</groupId>
|
||||
<artifactId>jdom</artifactId>
|
||||
<version>1.0</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>log4j</groupId>
|
||||
<artifactId>log4j</artifactId>
|
||||
<version>1.2.12</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax.servlet</groupId>
|
||||
<artifactId>servlet-api</artifactId>
|
||||
<version>2.3</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>logkit</groupId>
|
||||
<artifactId>logkit</artifactId>
|
||||
<version>2.0</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ant</groupId>
|
||||
<artifactId>ant</artifactId>
|
||||
<version>1.6</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>werken-xpath</groupId>
|
||||
<artifactId>werken-xpath</artifactId>
|
||||
<version>0.9.4</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<reporting>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-project-info-reports-plugin</artifactId>
|
||||
<reportSets>
|
||||
<reportSet>
|
||||
<reports>
|
||||
<report>dependencies</report>
|
||||
<report>issue-tracking</report>
|
||||
<report>license</report>
|
||||
<report>summary</report>
|
||||
<report>scm</report>
|
||||
</reports>
|
||||
</reportSet>
|
||||
</reportSets>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-changes-plugin</artifactId>
|
||||
<configuration>
|
||||
<component>12311337</component>
|
||||
<filter>fixfor=12310253&fixfor=12312142&fixfor=12312057&sorter/field=issuekey&sorter/order=ASC</filter>
|
||||
<maxEntries>500</maxEntries>
|
||||
<teamlist>http://velocity.apache.org/who-we-are.html</teamlist>
|
||||
</configuration>
|
||||
<reportSets>
|
||||
<reportSet>
|
||||
<reports>
|
||||
<report>changes-report</report>
|
||||
<report>jira-report</report>
|
||||
</reports>
|
||||
</reportSet>
|
||||
</reportSets>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>taglist-maven-plugin</artifactId>
|
||||
<configuration>
|
||||
<tag>TODO</tag>
|
||||
<tag>FIXME</tag>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-jxr-plugin</artifactId>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<configuration>
|
||||
<links>
|
||||
<link>http://java.sun.com/j2se/1.4.2/docs/api</link>
|
||||
<link>http://jakarta.apache.org/oro/api</link>
|
||||
<link>http://jakarta.apache.org/commons/lang/api-release</link>
|
||||
<link>http://jakarta.apache.org/commons/collections/api-release</link>
|
||||
<link>http://www.jdom.org/docs/apidocs</link>
|
||||
<link>http://logging.apache.org/log4j/docs/api</link>
|
||||
<link>http://excalibur.apache.org/apidocs</link>
|
||||
<link>http://tomcat.apache.org/tomcat-4.1-doc/servletapi</link>
|
||||
</links>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-changelog-plugin</artifactId>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</reporting>
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>apache.releases</id>
|
||||
<name>Apache Release Distribution Repository</name>
|
||||
<url>scp://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository</url>
|
||||
</repository>
|
||||
<snapshotRepository>
|
||||
<id>apache.snapshots</id>
|
||||
<name>Apache Development Snapshot Repository</name>
|
||||
<url>scp://people.apache.org/www/people.apache.org/repo/m2-snapshot-repository</url>
|
||||
</snapshotRepository>
|
||||
<site>
|
||||
<id>velocity.apache.org</id>
|
||||
<url>scpexe://people.apache.org/www/velocity.apache.org/engine/releases/velocity-1.5/</url>
|
||||
</site>
|
||||
<status>deployed</status>
|
||||
</distributionManagement>
|
||||
</project>
|
3
velocity-1.5.tar.bz2
Normal file
3
velocity-1.5.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4341a22ceabd40aa74482d72f4af8aed4575936122da8525f655d374cc3eb89e
|
||||
size 4132673
|
12
velocity-build_xml.patch
Normal file
12
velocity-build_xml.patch
Normal file
@ -0,0 +1,12 @@
|
||||
--- build/build.xml.sav 2007-08-25 16:17:48.000000000 +0200
|
||||
+++ build/build.xml 2007-08-25 16:18:14.000000000 +0200
|
||||
@@ -139,7 +139,9 @@
|
||||
<!-- sets up the build environment (classpath and libs) -->
|
||||
<!-- =================================================================== -->
|
||||
<target name="build-prepare">
|
||||
+<!--
|
||||
<ant antfile="${velocity.build.dir}/download.xml" target="build-download" />
|
||||
+-->
|
||||
|
||||
<!-- Build classpath -->
|
||||
<path id="velocity.build.classpath">
|
5
velocity.changes
Normal file
5
velocity.changes
Normal file
@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 3 17:14:32 CEST 2009 - mvyskocil@suse.cz
|
||||
|
||||
- Initial SUSE packaging
|
||||
|
258
velocity.spec
Normal file
258
velocity.spec
Normal file
@ -0,0 +1,258 @@
|
||||
#
|
||||
# spec file for package velocity (Version 1.5)
|
||||
#
|
||||
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define section free
|
||||
|
||||
Name: velocity
|
||||
Version: 1.5
|
||||
Release: 1
|
||||
Summary: Java-based template engine
|
||||
License: Apache Software License
|
||||
Source0: http://www.apache.org/dist/velocity/engine/1.5/velocity-1.5.tar.bz2
|
||||
Source1: http://repo1.maven.org/maven2/velocity/velocity/1.5/velocity-1.5.pom
|
||||
Patch0: velocity-build_xml.patch
|
||||
Url: http://velocity.apache.org/
|
||||
Group: Development/Libraries/Java
|
||||
Requires: java >= 1.5.0
|
||||
Requires: excalibur-avalon-logkit
|
||||
Requires: jakarta-commons-collections
|
||||
Requires: jakarta-commons-lang
|
||||
Requires: jdom >= 1.0-1
|
||||
Requires: log4j >= 1.1
|
||||
#Requires: jakarta-oro
|
||||
Requires: oro
|
||||
# Use servletapi4 instead of servletapi5
|
||||
Requires: servletapi4
|
||||
Requires: werken-xpath
|
||||
BuildRequires: jpackage-utils >= 1.7.4
|
||||
BuildRequires: java-devel = 1.5.0
|
||||
BuildRequires: ant >= 1.6.5
|
||||
BuildRequires: ant-junit
|
||||
BuildRequires: antlr
|
||||
BuildRequires: junit
|
||||
BuildRequires: hsqldb
|
||||
BuildRequires: classworlds
|
||||
BuildRequires: excalibur-avalon-logkit
|
||||
BuildRequires: jakarta-commons-collections
|
||||
BuildRequires: jakarta-commons-lang
|
||||
BuildRequires: jdom >= 1.0-1
|
||||
BuildRequires: log4j >= 1.1
|
||||
BuildRequires: oro
|
||||
# Use servletapi4 instead of servletapi5
|
||||
BuildRequires: servletapi4
|
||||
BuildRequires: werken-xpath
|
||||
BuildRequires: fdupes
|
||||
Requires(post): jpackage-utils >= 1.7.4
|
||||
Requires(postun): jpackage-utils >= 1.7.4
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
Velocity is a Java-based template engine. It permits anyone to use the
|
||||
simple yet powerful template language to reference objects defined in
|
||||
Java code.
|
||||
When Velocity is used for web development, Web designers can work in
|
||||
parallel with Java programmers to develop web sites according to the
|
||||
Model-View-Controller (MVC) model, meaning that web page designers can
|
||||
focus solely on creating a site that looks good, and programmers can
|
||||
focus solely on writing top-notch code. Velocity separates Java code
|
||||
from the web pages, making the web site more maintainable over the long
|
||||
run and providing a viable alternative to Java Server Pages (JSPs) or
|
||||
PHP.
|
||||
Velocity's capabilities reach well beyond the realm of web sites; for
|
||||
example, it can generate SQL and PostScript and XML (see Anakia for more
|
||||
information on XML transformations) from templates. It can be used
|
||||
either as a standalone utility for generating source code and reports,
|
||||
or as an integrated component of other systems. Velocity also provides
|
||||
template services for the Turbine web application framework.
|
||||
Velocity+Turbine provides a template service that will allow web
|
||||
applications to be developed according to a true MVC model.
|
||||
|
||||
%package manual
|
||||
License: Apache Software License
|
||||
Summary: Manual for %{name}
|
||||
Group: Development/Libraries/Java
|
||||
|
||||
%description manual
|
||||
Velocity is a Java-based template engine. It permits anyone to use the
|
||||
simple yet powerful template language to reference objects defined in
|
||||
Java code.
|
||||
When Velocity is used for web development, Web designers can work in
|
||||
parallel with Java programmers to develop web sites according to the
|
||||
Model-View-Controller (MVC) model, meaning that web page designers can
|
||||
focus solely on creating a site that looks good, and programmers can
|
||||
focus solely on writing top-notch code. Velocity separates Java code
|
||||
from the web pages, making the web site more maintainable over the long
|
||||
run and providing a viable alternative to Java Server Pages (JSPs) or
|
||||
PHP.
|
||||
Velocity's capabilities reach well beyond the realm of web sites; for
|
||||
example, it can generate SQL and PostScript and XML (see Anakia for more
|
||||
information on XML transformations) from templates. It can be used
|
||||
either as a standalone utility for generating source code and reports,
|
||||
or as an integrated component of other systems. Velocity also provides
|
||||
template services for the Turbine web application framework.
|
||||
Velocity+Turbine provides a template service that will allow web
|
||||
applications to be developed according to a true MVC model.
|
||||
|
||||
%package javadoc
|
||||
License: Apache Software License
|
||||
Summary: Javadoc for %{name}
|
||||
Group: Development/Documentation
|
||||
Requires(post): %{__rm}
|
||||
Requires(post): /bin/ln
|
||||
Requires(postun): %{__rm}
|
||||
|
||||
%description javadoc
|
||||
Velocity is a Java-based template engine. It permits anyone to use the
|
||||
simple yet powerful template language to reference objects defined in
|
||||
Java code.
|
||||
When Velocity is used for web development, Web designers can work in
|
||||
parallel with Java programmers to develop web sites according to the
|
||||
Model-View-Controller (MVC) model, meaning that web page designers can
|
||||
focus solely on creating a site that looks good, and programmers can
|
||||
focus solely on writing top-notch code. Velocity separates Java code
|
||||
from the web pages, making the web site more maintainable over the long
|
||||
run and providing a viable alternative to Java Server Pages (JSPs) or
|
||||
PHP.
|
||||
Velocity's capabilities reach well beyond the realm of web sites; for
|
||||
example, it can generate SQL and PostScript and XML (see Anakia for more
|
||||
information on XML transformations) from templates. It can be used
|
||||
either as a standalone utility for generating source code and reports,
|
||||
or as an integrated component of other systems. Velocity also provides
|
||||
template services for the Turbine web application framework.
|
||||
Velocity+Turbine provides a template service that will allow web
|
||||
applications to be developed according to a true MVC model.
|
||||
|
||||
%package demo
|
||||
License: Apache Software License
|
||||
Summary: Demo for %{name}
|
||||
Group: Development/Libraries/Java
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description demo
|
||||
Velocity is a Java-based template engine. It permits anyone to use the
|
||||
simple yet powerful template language to reference objects defined in
|
||||
Java code.
|
||||
When Velocity is used for web development, Web designers can work in
|
||||
parallel with Java programmers to develop web sites according to the
|
||||
Model-View-Controller (MVC) model, meaning that web page designers can
|
||||
focus solely on creating a site that looks good, and programmers can
|
||||
focus solely on writing top-notch code. Velocity separates Java code
|
||||
from the web pages, making the web site more maintainable over the long
|
||||
run and providing a viable alternative to Java Server Pages (JSPs) or
|
||||
PHP.
|
||||
Velocity's capabilities reach well beyond the realm of web sites; for
|
||||
example, it can generate SQL and PostScript and XML (see Anakia for more
|
||||
information on XML transformations) from templates. It can be used
|
||||
either as a standalone utility for generating source code and reports,
|
||||
or as an integrated component of other systems. Velocity also provides
|
||||
template services for the Turbine web application framework.
|
||||
Velocity+Turbine provides a template service that will allow web
|
||||
applications to be developed according to a true MVC model.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}
|
||||
# Remove all binary libs used in compiling the package.
|
||||
# Note that velocity has some jar files containing macros under
|
||||
# examples and test that should not be removed.
|
||||
#find build -name '*.jar' -exec rm -f \{\} \;
|
||||
for j in $(find . -name "*.jar" | grep -v /test/); do
|
||||
mv $j $j.no
|
||||
done
|
||||
%patch0 -b .sav0
|
||||
#%patch99 -b .sav99
|
||||
|
||||
%build
|
||||
export JAVA_HOME=%{_jvmdir}/java-1.5.0
|
||||
# Use servletapi4 instead of servletapi5 in CLASSPATH
|
||||
mkdir -p bin/test-lib
|
||||
pushd bin/test-lib
|
||||
ln -sf $(build-classpath hsqldb)
|
||||
ln -sf $(build-classpath junit)
|
||||
popd
|
||||
mkdir -p bin/lib
|
||||
pushd bin/lib
|
||||
ln -sf $(build-classpath ant)
|
||||
ln -sf $(build-classpath antlr)
|
||||
ln -sf $(build-classpath excalibur/avalon-logkit)
|
||||
ln -sf $(build-classpath commons-collections)
|
||||
ln -sf $(build-classpath commons-lang)
|
||||
ln -sf $(build-classpath jdom)
|
||||
ln -sf $(build-classpath log4j)
|
||||
ln -sf $(build-classpath oro)
|
||||
ln -sf $(build-classpath servletapi4)
|
||||
ln -sf $(build-classpath werken-xpath)
|
||||
ln -sf $(build-classpath classworlds)
|
||||
popd
|
||||
export CLASSPATH=$(build-classpath jdom commons-collections commons-lang werken-xpath antlr)
|
||||
CLASSPATH=$CLASSPATH:$(pwd)/test/texen-classpath/test.jar
|
||||
export OPT_JAR_LIST="ant/ant-junit junit"
|
||||
#FIXME: tests failed on CommonsExtPropTestCase
|
||||
#but resulting files seems to be same
|
||||
ant \
|
||||
-buildfile build/build.xml \
|
||||
jar javadocs #test
|
||||
|
||||
%install
|
||||
# jars
|
||||
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
|
||||
install -p -m 644 bin/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
||||
%add_to_maven_depmap org.apache.velocity velocity %{version} JPP %{name}
|
||||
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
||||
# pom
|
||||
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
|
||||
install -pm 644 %{SOURCE1} \
|
||||
$RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom
|
||||
# javadoc
|
||||
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
||||
cp -pr docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
||||
rm -rf docs/api
|
||||
# data
|
||||
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}
|
||||
cp -pr convert examples test $RPM_BUILD_ROOT%{_datadir}/%{name}
|
||||
%fdupes -s %{buildroot}
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post
|
||||
%update_maven_depmap
|
||||
|
||||
%postun
|
||||
%update_maven_depmap
|
||||
|
||||
%files
|
||||
%defattr(0644,root,root,0755)
|
||||
%doc LICENSE NOTICE README.txt
|
||||
%{_javadir}/*.jar
|
||||
%{_datadir}/maven2/poms/*
|
||||
%config %{_mavendepmapfragdir}
|
||||
|
||||
%files manual
|
||||
%defattr(0644,root,root,0755)
|
||||
%doc docs/*
|
||||
|
||||
%files javadoc
|
||||
%defattr(0644,root,root,0755)
|
||||
%{_javadocdir}/%{name}-%{version}
|
||||
|
||||
%files demo
|
||||
%defattr(0644,root,root,0755)
|
||||
%{_datadir}/%{name}
|
||||
|
||||
%changelog
|
Loading…
x
Reference in New Issue
Block a user