2024-10-05 17:49:38 +00:00
|
|
|
#
|
|
|
|
# spec file for package fastcsv
|
|
|
|
#
|
2025-01-15 12:17:08 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2024-10-05 17:49:38 +00:00
|
|
|
#
|
|
|
|
# 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 https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: fastcsv
|
2025-01-15 12:17:08 +00:00
|
|
|
Version: 3.4.0
|
2024-10-05 17:49:38 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: CSV library for Java that is fast, RFC-compliant and dependency-free
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
URL: https://%{name}.org/
|
|
|
|
Source0: https://github.com/osiegmar/FastCSV/archive/refs/tags/v%{version}.tar.gz
|
|
|
|
Source1: https://repo1.maven.org/maven2/de/siegmar/%{name}/%{version}/%{name}-%{version}.pom
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: maven-local
|
|
|
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
FastCSV is a high-performance CSV parser and writer for Java licensed under the
|
|
|
|
MIT open source license. It is designed to not only be fast and lightweight but
|
|
|
|
also to be compliant with the CSV specification RFC 4180.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: API documentation for %{name}
|
|
|
|
Group: Documentation/HTML
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
API documentation for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -n FastCSV-%{version}
|
|
|
|
|
|
|
|
cp %{SOURCE1} lib/pom.xml
|
|
|
|
|
|
|
|
%pom_xpath_inject pom:project '<packaging>bundle</packaging>' lib
|
|
|
|
|
|
|
|
%pom_add_plugin org.apache.felix:maven-bundle-plugin lib \
|
|
|
|
'<extensions>true</extensions>
|
|
|
|
<configuration>
|
|
|
|
<instructions>
|
|
|
|
<Bundle-SymbolicName>de.siegmar.fastcsv</Bundle-SymbolicName>
|
|
|
|
<_exportcontents>de.siegmar.fastcsv.reader.*, de.siegmar.fastcsv.writer.*</_exportcontents>
|
|
|
|
</instructions>
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>bundle-manifest</id>
|
|
|
|
<phase>process-classes</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>manifest</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>'
|
|
|
|
|
|
|
|
%{mvn_file} : %{name}
|
|
|
|
|
|
|
|
%build
|
2025-03-27 17:52:31 +00:00
|
|
|
pushd lib
|
2024-10-05 17:49:38 +00:00
|
|
|
%{mvn_build} -f -- \
|
2025-03-27 17:52:31 +00:00
|
|
|
-Dmaven.compiler.{source,target}=11
|
|
|
|
popd
|
2024-10-05 17:49:38 +00:00
|
|
|
|
|
|
|
%install
|
2025-03-27 17:52:31 +00:00
|
|
|
pushd lib
|
2024-10-05 17:49:38 +00:00
|
|
|
%mvn_install
|
|
|
|
%fdupes %{buildroot}%{_javadocdir}/%{name}
|
2025-03-27 17:52:31 +00:00
|
|
|
popd
|
2024-10-05 17:49:38 +00:00
|
|
|
|
2025-03-27 17:52:31 +00:00
|
|
|
%files -f lib/.mfiles
|
2024-10-05 17:49:38 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc {CHANGELOG,README}.md
|
|
|
|
|
2025-03-27 17:52:31 +00:00
|
|
|
%files javadoc -f lib/.mfiles-javadoc
|
2024-10-05 17:49:38 +00:00
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%changelog
|