Пакет apache-commons-chain: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | Epoch: 1 Group: Development/Java # BEGIN SourceDeps(oneline): BuildRequires: rpm-build-java # END SourceDeps(oneline) BuildRequires: /proc BuildRequires: jpackage-generic-compat # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} %global base_name chain %global short_name commons-%{base_name} Name: apache-commons-chain Version: 1.2 Release: alt1_17jpp8 Summary: An implementation of the GoF Chain of Responsibility pattern License: ASL 2.0 URL: http://commons.apache.org/%{base_name}/ Source0: ftp://ftp.gbnet.net/pub/apache/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz # javax.servlet 3.1 api support Patch0: %{name}-%{version}-tests-servlet31.patch # javax.portlet 2.0 api support Patch1: %{name}-%{version}-portlet20.patch BuildRequires: maven-local BuildRequires: mvn(commons-beanutils:commons-beanutils) BuildRequires: mvn(commons-digester:commons-digester) BuildRequires: mvn(commons-logging:commons-logging) BuildRequires: mvn(javax.portlet:portlet-api) BuildRequires: mvn(javax.servlet:javax.servlet-api) BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.commons:commons-parent:pom:) BuildRequires: mvn(org.jboss.spec.javax.faces:jboss-jsf-api_2.1_spec) BuildArch: noarch Source44: import.info %description A popular technique for organizing the execution of complex processing flows is the "Chain of Responsibility" pattern, as described (among many other places) in the classic "Gang of Four" design patterns book. Although the fundamental API contracts required to implement this design pattern are extremely simple, it is useful to have a base API that facilitates using the pattern, and (more importantly) encouraging composition of command implementations from multiple diverse sources. Towards that end, the Chain API models a computation as a series of "commands" that can be combined into a "chain". The API for a command consists of a single method (execute()), which is passed a "context" parameter containing the dynamic state of the computation, and whose return value is a boolean that determines whether or not processing for the current chain has been completed (true), or whether processing should be delegated to the next command in the chain (false). %package javadoc Group: Development/Java Summary: Javadoc for %{name} BuildArch: noarch %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n %{short_name}-%{version}-src find . -name '*.class' -delete find . -name '*.jar' -delete sed -i 's/\r$//g;' *.txt %patch0 -p1 %patch1 -p0 # Failed tests: testDefaut(org.apache.commons.chain.config.ConfigParserTestCase): # Correct command count expected:<17> but was:<19> rm -r src/test/org/apache/commons/chain/config/ConfigParserTestCase.java %pom_remove_dep :myfaces-api %pom_add_dep org.jboss.spec.javax.faces:jboss-jsf-api_2.1_spec # Force servlet 3.1 apis %pom_xpath_set "pom:dependency[pom:groupId = 'javax.servlet' ]/pom:artifactId" javax.servlet-api %pom_xpath_set "pom:dependency[pom:groupId = 'javax.servlet' ]/pom:version" 3.1.0 %mvn_file :%{short_name} %{name} %mvn_file :%{short_name} %{short_name} %build %mvn_build -- -Dmaven.compile.source=1.6 -Dmaven.compile.target=1.6 %install %mvn_install %files -f .mfiles %doc RELEASE-NOTES.txt %doc --no-dereference LICENSE.txt NOTICE.txt %files javadoc -f .mfiles-javadoc %doc --no-dereference LICENSE.txt NOTICE.txt %changelog * Sun Apr 15 2018 Igor Vlasenko <viy@altlinux.ru> 1:1.2-alt1_17jpp8 - java update * Thu Nov 09 2017 Igor Vlasenko <viy@altlinux.ru> 1:1.2-alt1_16jpp8 - fc27 update * Sun Oct 22 2017 Igor Vlasenko <viy@altlinux.ru> 1:1.2-alt1_15jpp8 - new jpp release * Fri Dec 16 2016 Igor Vlasenko <viy@altlinux.ru> 1:1.2-alt1_14jpp8 - new fc release * Tue Nov 22 2016 Igor Vlasenko <viy@altlinux.ru> 1:1.2-alt1_13jpp8 - new fc release * Thu Feb 04 2016 Igor Vlasenko <viy@altlinux.ru> 1:1.2-alt1_12jpp8 - java 8 mass update * Mon Sep 08 2014 Igor Vlasenko <viy@altlinux.ru> 1:1.2-alt1_8jpp7 - new release * Mon Jul 28 2014 Igor Vlasenko <viy@altlinux.ru> 1:1.2-alt1_6jpp7 - new release * Sun Mar 17 2013 Igor Vlasenko <viy@altlinux.ru> 1:1.2-alt1_3jpp7 - fc update * Tue Sep 04 2012 Igor Vlasenko <viy@altlinux.ru> 0:1.3-alt3_0.r831527.5jpp6 - build w/o maven-plugin-rat * Tue Mar 20 2012 Igor Vlasenko <viy@altlinux.ru> 0:1.3-alt2_0.r831527.5jpp6 - fixed build with maven3 * Wed Feb 23 2011 Igor Vlasenko <viy@altlinux.ru> 0:1.3-alt1_0.r831527.5jpp6 - new version |