ALT repositories
Last updated at Sat, 06 Jun 2020 00:49:50 +0000 | SRPMs: 15384
en ru
SRPMs in branches
hide window
  • 1.5-alt1_3jpp8
  • 1.1-alt1_2jpp8
  • 1.1-alt1_2jpp8
  • 1.0-alt1_0.3.svn1071189jpp7
  • 1.0-alt1_0.3.svn1071189jpp7
  • 1.0-alt1_0.3.svn1071189jpp7
  • 1.0-alt1_0.3.svn1071189jpp7
Group :: Development/Java
Source RPM: apache-commons-csv
Raw spec file

BuildRequires: /proc
BuildRequires: jpackage-compat
%global base_name csv
%global short_name commons-%{base_name}

Name: apache-%{short_name}
Version: 1.0
Release: alt1_0.3.svn1071189jpp7
Summary: Utilities to assist with handling of CSV files
License: ASL 2.0
Group: Development/Java
URL: http://commons.apache.org/sandbox/%{base_name}
# svn export -r 1071189 http://svn.apache.org/repos/asf/commons/sandbox/csv/trunk/ apache-commons-csv-1.0

# tar caf apache-commons-csv-1.0.tar.xz apache-commons-csv-1.0

Source0: %{name}-%{version}.tar.xz
BuildArch: noarch

BuildRequires: jpackage-utils
BuildRequires: junit4
BuildRequires: maven
BuildRequires: maven-surefire-provider-junit4
BuildRequires: apache-commons-parent

Requires: jpackage-utils
Requires(post):
jpackage-utils
Requires(postun):
jpackage-utils
Source44: import.info

%description
Commons CSV was started to unify a common and simple interface for
reading and writing CSV files under an ASL license.

%package javadoc
Summary: API documentation for %{name}
Group: Development/Java
Requires: jpackage-utils
BuildArch: noarch


%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q
sed -i 's/\r//' *.txt
sed -i 's:commons-sandbox-parent:commons-parent:' pom.xml

%build
mvn-rpmbuild install javadoc:javadoc

%install
# jars

install -d -m 755 %{buildroot}%{_javadir}
install -p -m 644 target/%{short_name}-%{version}-SNAPSHOT.jar %{buildroot}%{_javadir}/%{name}.jar
ln -sf %{name}.jar %{buildroot}%{_javadir}/%{short_name}.jar

# pom

install -d -m 755 %{buildroot}%{_mavenpomdir}
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{short_name}.pom
%add_to_maven_depmap org.apache.commons %{short_name} %{version} JPP %{short_name}

# following line is only for backwards compatibility. New packages

# should use proper groupid org.apache.commons

%add_to_maven_depmap %{short_name} %{short_name} %{version} JPP %{short_name}

# javadoc

install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}

%files
%doc LICENSE.txt NOTICE.txt
%{_javadir}/*.jar
%{_mavenpomdir}/JPP-%{short_name}.pom
%{_mavendepmapfragdir}/*

%files javadoc
%doc LICENSE.txt NOTICE.txt
%doc %{_javadocdir}/%{name}

%changelog
* Mon Sep 17 2012 Igor Vlasenko <viy at altlinux.ru> 1.0-alt1_0.3.svn1071189jpp7
- new version

 
The Geyser project is based on code from Prometheus2.0, which had been made available under the MIT License.