2009-05-11 02:33:57 +00:00
|
|
|
#
|
2013-09-11 11:39:00 +00:00
|
|
|
# spec file for package ini4j
|
2009-05-11 02:33:57 +00:00
|
|
|
#
|
2024-02-21 09:18:18 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2009-05-11 02:33:57 +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.
|
|
|
|
|
2022-03-02 12:20:38 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2009-05-11 02:33:57 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: ini4j
|
2024-03-21 11:20:24 +00:00
|
|
|
Version: 0.5.4
|
2013-09-11 11:39:00 +00:00
|
|
|
Release: 0
|
2009-05-11 02:33:57 +00:00
|
|
|
Summary: Java API for handling Windows ini file format
|
2011-12-06 17:19:26 +00:00
|
|
|
License: Apache-2.0
|
2009-05-11 02:33:57 +00:00
|
|
|
Group: Development/Libraries/Java
|
2024-03-21 11:20:24 +00:00
|
|
|
URL: https://www.ini4j.org/
|
|
|
|
Source0: https://downloads.sourceforge.net/%{name}/%{version}/%{name}-%{version}-src.zip
|
|
|
|
Source1: %{name}.build.xml
|
2015-07-29 11:33:32 +00:00
|
|
|
Patch0: ini4j-java8-compat.patch
|
2009-05-11 02:33:57 +00:00
|
|
|
BuildRequires: ant
|
|
|
|
BuildRequires: ant-junit
|
|
|
|
BuildRequires: fdupes
|
2022-03-20 16:46:18 +00:00
|
|
|
BuildRequires: java-devel >= 1.8
|
2024-03-21 11:20:24 +00:00
|
|
|
BuildRequires: javapackages-local >= 6
|
2013-09-11 11:39:00 +00:00
|
|
|
BuildRequires: unzip
|
2009-05-11 02:33:57 +00:00
|
|
|
Requires: java
|
2014-07-08 10:57:11 +00:00
|
|
|
BuildArch: noarch
|
2009-05-11 02:33:57 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The [ini4j] is a simple Java API for handling configuration files in
|
|
|
|
Windows .ini format. Additionally, the library includes Java
|
|
|
|
Preferences API implementation based on the .ini file.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: Java API for handling Windows ini file format
|
|
|
|
Group: Development/Libraries/Java
|
2014-07-08 10:57:11 +00:00
|
|
|
Requires(post): /bin/ln
|
|
|
|
Requires(post): /bin/rm
|
2024-02-21 09:18:18 +00:00
|
|
|
Requires(postun): /bin/rm
|
2009-05-11 02:33:57 +00:00
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
The [ini4j] is a simple Java API for handling configuration files in
|
|
|
|
Windows .ini format. Additionally, the library includes Java
|
|
|
|
Preferences API implementation based on the .ini file.
|
|
|
|
|
|
|
|
%prep
|
2024-03-21 11:20:24 +00:00
|
|
|
%setup -q
|
2015-07-29 11:33:32 +00:00
|
|
|
|
2024-03-21 11:20:24 +00:00
|
|
|
cp %{SOURCE1} build.xml
|
2015-07-29 11:33:32 +00:00
|
|
|
|
2024-02-21 09:18:18 +00:00
|
|
|
%patch -P 0 -p1
|
2009-05-11 02:33:57 +00:00
|
|
|
|
|
|
|
%build
|
2024-03-21 11:20:24 +00:00
|
|
|
%{ant} package javadoc
|
2009-05-11 02:33:57 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
# jar
|
2014-07-08 10:57:11 +00:00
|
|
|
install -d -m 755 %{buildroot}%{_javadir}
|
2024-03-21 11:20:24 +00:00
|
|
|
install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
2022-03-02 12:20:38 +00:00
|
|
|
|
|
|
|
# pom
|
|
|
|
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
2024-03-21 11:20:24 +00:00
|
|
|
%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
|
2022-03-02 12:20:38 +00:00
|
|
|
%add_maven_depmap %{name}.pom %{name}.jar
|
|
|
|
|
2009-05-11 02:33:57 +00:00
|
|
|
# javadoc
|
2022-03-02 12:20:38 +00:00
|
|
|
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
2024-03-21 11:20:24 +00:00
|
|
|
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
|
2022-03-02 12:20:38 +00:00
|
|
|
%fdupes -s %{buildroot}/%{_javadocdir}
|
2009-05-11 02:33:57 +00:00
|
|
|
|
2022-03-02 12:20:38 +00:00
|
|
|
%files -f .mfiles
|
|
|
|
%license LICENSE.txt
|
|
|
|
%doc NOTICE.txt
|
2009-05-11 02:33:57 +00:00
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|