Group :: Development/Java
RPM: plexus-cipher
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Group: Development/Java
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-default
# fedora bcond_with macro
%define bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
%define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}
# redefine altlinux specific with and without
%define with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
%define without() %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
%bcond_with bootstrap
Name: plexus-cipher
Version: 1.8
Release: alt1_3jpp11
Summary: Plexus Cipher: encryption/decryption Component
License: ASL 2.0
# project moved to GitHub and it looks like there is no official website anymore
URL: https://github.com/codehaus-plexus/plexus-cipher
BuildArch: noarch
Source0: https://github.com/codehaus-plexus/plexus-cipher/archive/%{name}-%{version}/%{name}-%{version}.tar.gz
BuildRequires: maven-local
%if %{with bootstrap}
BuildRequires: javapackages-bootstrap
%else
BuildRequires: mvn(javax.enterprise:cdi-api)
BuildRequires: mvn(javax.inject:javax.inject)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.sonatype.plugins:sisu-maven-plugin)
%endif
Source44: import.info
%description
Plexus Cipher: encryption/decryption Component
%{?javadoc_package}
%prep
%setup -q -n %{name}-%{name}-%{version}
%pom_remove_parent .
%pom_xpath_inject 'pom:project' '<groupId>org.codehaus.plexus</groupId>' .
# fedora moved from sonatype sisu to eclipse sisu. sisu-inject-bean artifact
# doesn't exist in eclipse sisu. this artifact contains nothing but
# bundled classes from atinject, cdi-api, aopalliance and maybe others.
%pom_remove_dep org.sonatype.sisu:sisu-inject-bean
%pom_add_dep javax.inject:javax.inject:1:provided
%pom_add_dep javax.enterprise:cdi-api:1.0:provided
%mvn_file : plexus/%{name}
%mvn_alias org.codehaus.plexus: org.sonatype.plexus:
%build
%mvn_build -f -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 -Dmaven.javadoc.source=1.8 -Dmaven.compiler.release=8
%install
%mvn_install
%files -f .mfiles
%doc --no-dereference LICENSE.txt NOTICE.txt
%changelog
…
Full changelog you can see here
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-default
# fedora bcond_with macro
%define bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
%define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}
# redefine altlinux specific with and without
%define with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
%define without() %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
%bcond_with bootstrap
Name: plexus-cipher
Version: 1.8
Release: alt1_3jpp11
Summary: Plexus Cipher: encryption/decryption Component
License: ASL 2.0
# project moved to GitHub and it looks like there is no official website anymore
URL: https://github.com/codehaus-plexus/plexus-cipher
BuildArch: noarch
Source0: https://github.com/codehaus-plexus/plexus-cipher/archive/%{name}-%{version}/%{name}-%{version}.tar.gz
BuildRequires: maven-local
%if %{with bootstrap}
BuildRequires: javapackages-bootstrap
%else
BuildRequires: mvn(javax.enterprise:cdi-api)
BuildRequires: mvn(javax.inject:javax.inject)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.sonatype.plugins:sisu-maven-plugin)
%endif
Source44: import.info
%description
Plexus Cipher: encryption/decryption Component
%{?javadoc_package}
%prep
%setup -q -n %{name}-%{name}-%{version}
%pom_remove_parent .
%pom_xpath_inject 'pom:project' '<groupId>org.codehaus.plexus</groupId>' .
# fedora moved from sonatype sisu to eclipse sisu. sisu-inject-bean artifact
# doesn't exist in eclipse sisu. this artifact contains nothing but
# bundled classes from atinject, cdi-api, aopalliance and maybe others.
%pom_remove_dep org.sonatype.sisu:sisu-inject-bean
%pom_add_dep javax.inject:javax.inject:1:provided
%pom_add_dep javax.enterprise:cdi-api:1.0:provided
%mvn_file : plexus/%{name}
%mvn_alias org.codehaus.plexus: org.sonatype.plexus:
%build
%mvn_build -f -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 -Dmaven.javadoc.source=1.8 -Dmaven.compiler.release=8
%install
%mvn_install
%files -f .mfiles
%doc --no-dereference LICENSE.txt NOTICE.txt
%changelog
…
Full changelog you can see here