[Jpackage-commits] rpms/free/cal10n cal10n-fix-maven.patch, NONE, 1.1 cal10n-jpp-depmap.xml, NONE, 1.1 cal10n.spec, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Fri Dec 17 22:09:50 CET 2010


Update of /home/projects/jpackage/cvs/rpms/free/cal10n
In directory ryu.zarb.org:/tmp/ubvavTX0lt/rpms/free/cal10n

Added Files:
	cal10n-fix-maven.patch cal10n-jpp-depmap.xml cal10n.spec 
Log Message:
0.7.4-5.jpp6

--- NEW FILE: cal10n-jpp-depmap.xml ---
<dependencies>
 <dependency>
   <maven>
     <groupId>org.mortbay.jetty</groupId>
     <artifactId>servlet-api</artifactId>
     <version>2.5-20081211</version>
   </maven>
   <jpp>
     <groupId>JPP</groupId>
     <artifactId>servlet_2_5_api</artifactId>
     <version>2.5</version>
   </jpp>
 </dependency>
 <dependency>
   <maven>
     <groupId>com.thoughtworks.qdox</groupId>
     <artifactId>qdox</artifactId>
     <version>1.6.3</version>
   </maven>
   <jpp>
     <groupId>JPP</groupId>
     <artifactId>qdox</artifactId>
     <version>1.12</version>
   </jpp>
 </dependency>
</dependencies>

--- NEW FILE: cal10n.spec ---
Name:           cal10n
Version:        0.7.4
Release:        5%{?dist}
Epoch:          0
Summary:        Compiler assisted localization library (CAL10N)
Group:          Development/Libraries
License:        MIT
URL:            http://cal10n.qos.ch/
Source0:        http://cal10n.qos.ch/dist/cal10n-%{version}.tar.gz
Source1:        %{name}-jpp-depmap.xml
Patch0:         %{name}-fix-maven.patch
Requires(post): jpackage-utils >= 1.7.3
Requires(postun): jpackage-utils >= 1.7.3
Requires:       jpackage-utils
BuildRequires:  apache-commons-parent >= 0:9
BuildRequires:  junit4
BuildRequires:  java-devel >= 0:1.6.0
BuildRequires:  maven2
BuildRequires:  maven2-plugin-assembly
BuildRequires:  maven2-plugin-compiler
BuildRequires:  maven2-plugin-install
BuildRequires:  maven2-plugin-jar
BuildRequires:  maven2-plugin-javadoc
BuildRequires:  maven2-plugin-plugin
BuildRequires:  maven2-plugin-resources
BuildRequires:  maven2-plugin-source
BuildRequires:  maven-doxia-sitetools
BuildRequires:  maven2-plugin-site
BuildRequires:  maven-surefire-maven-plugin
BuildRequires:  maven-surefire-provider-junit4
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root

%description
Compiler Assisted Localization, abbreviated as CAL10N (pronounced as "calion") 
is a java library for writing localized (internationalized) messages.
Features:
    * java compiler verifies message keys used in source code
    * tooling to detect errors in message keys
    * native2ascii tool made superfluous, as you can directly encode bundles 
      in the most convenient charset, per locale.
    * good performance (300 nanoseconds per key look-up)
    * automatic reloading of resource bundles upon change


%package javadoc
Group:          Documentation
Summary:        Javadoc for %{name}
Requires:       jpackage-utils

%description javadoc
API documentation for %{name}.

%package -n maven-cal10n-plugin
Summary:    CAL10N maven plugin
Group:      Development/Tools
Requires:   maven2
Requires:   %{name} = %{version}-%{release}

%description -n maven-cal10n-plugin
Maven plugin verifying that the codes defined in
an enum type match those in the corresponding resource bundles. 

%prep
%setup -q
find -type f -name "*.jar" | xargs -t rm
%patch0 -b .sav0

%build
%{_bindir}/mvn-jpp \
        -e \
        -Dmaven2.jpp.depmap.file=%{SOURCE1} \
        -Dmaven.test.failure.ignore=true \
        install javadoc:aggregate

%install
rm -rf %{buildroot}

# jars
install -d -m 0755 %{buildroot}%{_javadir}/%{name}
install -p -m 644 cal10n-api/target/cal10n-api-%{version}.jar \
        %{buildroot}%{_javadir}/%{name}/cal10n-api-%{version}.jar
install -p -m 644 maven-cal10n-plugin/target/maven-cal10n-plugin-%{version}.jar \
        %{buildroot}%{_javadir}/%{name}/maven-cal10n-plugin-%{version}.jar
(cd %{buildroot}%{_javadir}/%{name} && for jar in *-%{version}*; do ln -s ${jar} ${jar/-%{version}/}; done)

%add_to_maven_depmap ch.qos.cal10n cal10n-parent %{version} JPP/%{name} cal10n-parent
%add_to_maven_depmap ch.qos.cal10n cal10n-api %{version} JPP/%{name} cal10n-api
%add_to_maven_depmap ch.qos.cal10n maven-cal10n-plugin %{version} JPP/%{name} maven-cal10n-plugin

# poms
install -d -m 755 %{buildroot}%{_datadir}/maven2/poms
install -pm 644 pom.xml \
    %{buildroot}%{_datadir}/maven2/poms/JPP.%{name}-%{name}-parent.pom
install -pm 644 cal10n-api/pom.xml \
    %{buildroot}%{_datadir}/maven2/poms/JPP.%{name}-%{name}-api.pom
install -pm 644 maven-cal10n-plugin/pom.xml \
    %{buildroot}%{_datadir}/maven2/poms/JPP.%{name}-maven-cal10n-plugin.pom

# javadoc
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}

%post
%update_maven_depmap

%postun
%update_maven_depmap

%files
%defattr(0644,root,root,0755)
%dir %{_javadir}*/%{name}
%{_javadir}*/%{name}/cal10n-api.jar
%{_javadir}*/%{name}/cal10n-api-%{version}.jar
%{_datadir}/maven2/poms/JPP.%{name}-%{name}-parent.pom
%{_datadir}/maven2/poms/JPP.%{name}-%{name}-api.pom
%{_mavendepmapfragdir}/%{name}

%files -n maven-cal10n-plugin
%defattr(0644,root,root,0755)
%{_javadir}/%{name}/maven-cal10n-plugin-%{version}.jar
%{_javadir}/%{name}/maven-cal10n-plugin.jar
%{_datadir}/maven2/poms/JPP.%{name}-maven-cal10n-plugin.pom

%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}

%changelog
* Fri Dec 17 2010 David Walluck <dwalluck at redhat.com> 0:0.7.4-5
- release (based on fc release 4)

--- NEW FILE: cal10n-fix-maven.patch ---
--- maven-cal10n-plugin/pom.xml.sav	2010-07-05 20:10:06.000000000 +0300
+++ maven-cal10n-plugin/pom.xml	2010-07-19 13:40:18.509985832 +0300
@@ -32,6 +32,10 @@
       <artifactId>maven-artifact-manager</artifactId>
       <version>2.0.4</version>
     </dependency>
+    <dependency>                                                                                                                          
+      <groupId>org.apache.maven</groupId>                                                                                                 
+      <artifactId>maven-artifact</artifactId>                                                                                             
+    </dependency>
 
     <dependency>
       <groupId>ch.qos.cal10n</groupId>




More information about the JPackage-commits mailing list