ABF is currently being migrated to new servers. Pull requests should be working.
avatar
Rosa has added 86e54ae454
Automatic import for version 1.0.15-4.redhat_1.ep6.el6
... ... --- /dev/null
... ... +++ b/.abf.yml
... ... @@ -0,0 +1,3 @@
1
sources:
2
  "commons-daemon-1.0.15-redhat-1-patches.zip": eb0ef4a8deb4d86ca3945e9bfd7503e8d5e825a4
3
  "commons-daemon-1.0.15-redhat-1-sources.zip": f7c08b1a769b7ca495e4c1796e232486d0062acd
view file @ 86e54ae454
... ... --- /dev/null
... ... +++ b/apache-commons-daemon-eap6.spec
... ... @@ -0,0 +1,161 @@
1
# Copyright (c) 2000-2012, JPackage Project
2
# All rights reserved.
3
#
4
# Redistribution and use in source and binary forms, with or without
5
# modification, are permitted provided that the following conditions
6
# are met:
7
#
8
# 1. Redistributions of source code must retain the above copyright
9
#    notice, this list of conditions and the following disclaimer.
10
# 2. Redistributions in binary form must reproduce the above copyright
11
#    notice, this list of conditions and the following disclaimer in the
12
#    documentation and/or other materials provided with the
13
#    distribution.
14
# 3. Neither the name of the JPackage Project nor the names of its
15
#    contributors may be used to endorse or promote products derived
16
#    from this software without specific prior written permission.
17
#
18
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
30
%bcond_without mead
31
32
%define base_name  daemon
33
%global short_name commons-%{base_name}
34
%global eap6_name %{short_name}-eap6
35
36
%define section    free
37
38
%define reltag redhat_1
39
%define namedreltag -redhat-1
40
%global namedversion %{version}%{?namedreltag}
41
42
# jbnativedir is /usr/share/jbossas  (files must be immutable)
43
%define jbnativedir %{_datadir}/jbossas/modules/system/layers/base/native
44
45
%define maven_version 1.0.15-1.redhat_1.ep6.el6
46
47
Name:           apache-commons-daemon-eap6
48
Version:        1.0.15
49
Release:        4.%{?reltag}%{?dist}
50
Epoch:          1
51
Summary:        Defines API to support an alternative invocation mechanism
52
License:        ASL 2.0
53
Group:          Applications/System
54
55
%if %with mead
56
Source102: commons-daemon-1.0.15-redhat-1.pom
57
Source103: commons-daemon-1.0.15-redhat-1.jar
58
Source104: commons-daemon-1.0.15-redhat-1-sources.zip
59
Source105: commons-daemon-1.0.15-redhat-1-sources.jar
60
Source106: commons-daemon-1.0.15-redhat-1-patches.zip
61
%endif
62
63
URL:            http://commons.apache.org/daemon/
64
65
BuildRequires:  jpackage-utils
66
67
Requires:       java >= 0:1.6.0
68
Requires(post): jpackage-utils
69
Requires(postun): jpackage-utils
70
Requires:       jpackage-utils
71
72
BuildArch:      noarch
73
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
74
75
%description
76
The scope of this package is to define an API in line with the current
77
Java(tm) Platform APIs to support an alternative invocation mechanism
78
which could be used instead of the above mentioned public static void
79
main(String[]) method.  This specification cover the behavior and life
80
cycle of what we define as Java(tm) daemons, or, in other words, non
81
interactive Java(tm) applications.
82
83
%prep
84
85
%build
86
87
%install
88
rm -rf %{buildroot}
89
90
##DEBUG
91
ls -l %{_sourcedir}
92
93
# jars
94
mkdir -p %{buildroot}%{_javadir}/%{eap6_name}
95
cp -p %{_sourcedir}/%{short_name}-%{namedversion}.jar \
96
      %{buildroot}%{_javadir}/%{eap6_name}/%{short_name}-%{namedversion}.jar
97
98
ln -s %{short_name}-%{namedversion}.jar %{buildroot}%{_javadir}/%{eap6_name}/%{short_name}.jar
99
mkdir -p %{buildroot}%{jbnativedir}/sbin/
100
ln -s %{_javadir}/%{eap6_name}/%{short_name}.jar %{buildroot}%{jbnativedir}/sbin/%{short_name}.jar
101
102
%clean
103
rm -rf %{buildroot}
104
105
%pre
106
JBOSS_SHELL=/sbin/nologin
107
%{_sbindir}/groupadd -r jboss 2>/dev/null || :
108
%{_sbindir}/useradd -c JBossAS -r -s $JBOSS_SHELL -d %{_localstatedir}/lib/jbossas -g jboss jboss 2>/dev/null || :
109
110
%files
111
%defattr(0644,root,root,0755)
112
%{_javadir}*/%{eap6_name}/%{short_name}-%{namedversion}.jar
113
%{_javadir}*/%{eap6_name}/%{short_name}.jar
114
%dir %{jbnativedir}
115
%dir %{jbnativedir}/sbin/
116
%dir %{jbnativedir}/sbin/%{short_name}.jar
117
%defattr(0644,jboss,jboss,0755)
118
%dir %{_datadir}/jbossas
119
%dir %{_datadir}/jbossas/modules
120
%dir %{_datadir}/jbossas/modules/system
121
%dir %{_datadir}/jbossas/modules/system/layers
122
%dir %{_datadir}/jbossas/modules/system/layers/base
123
124
%changelog
125
* Tue Apr 23 2013 Fernando Nasser <fnasser@redhat.com> - 1:1.0.15-4.redhat_1
126
- Match user and group of the modules directory to what is used elsewhere
127
128
* Mon Apr 22 2013 Permaine Cheung <pcheung@redhat.com> - 1:1.0.15-3.redhat_1
129
- Add %%pre to create the jboss user
130
131
* Mon Apr 15 2013 Permaine Cheung <pcheung@redhat.com> - 1:1.0.15-2.redhat_1
132
- Remove R: j-m-eap and own all dirs instead
133
134
* Fri Apr 12 2013 Permaine Cheung <pcheung@redhat.com> - 1:1.0.15-1.1.redhat_1
135
- Make R:jbossas-modules-eap conditional, disabled for RHEL 5 for now
136
137
* Thu Apr 11 2013 Permaine Cheung <pcheung@redhat.com> - 1:1.0.15-1.0.redhat_1
138
- 1.0.15
139
140
* Thu Mar 28 2013 Permaine Cheung <pcheung@redhat.com> - 1:1.0.14-1.2.redhat_1
141
- Add back R:j-m-eap
142
143
* Fri Mar 22 2013 Permaine Cheung <pcheung@redhat.com> - 1:1.0.14-1.1.redhat_1
144
- update jar location
145
146
* Mon Mar 18 2013 Permaine Cheung <pcheung@redhat.com> - 1:1.0.14-1.redhat_1
147
- 1.0.14
148
149
* Wed Mar 06 2013 Permaine Cheung <pcheung@redhat.com> - 1:1.0.13-3.redhat_1
150
- Temporarily comment out R: jbossas-core until it is ready for EAP 6.1.0
151
152
* Wed Mar 06 2013 Permaine Cheung <pcheung@redhat.com> - 1:1.0.13-2.redhat_1
153
- Fix symlink
154
155
* Wed Mar 06 2013 Permaine Cheung <pcheung@redhat.com> - 1:1.0.13-1.redhat_1
156
- 1.0.13
157
- Add R: jbossas-core and symlinks in AS
158
159
* Wed May 23 2012 Permaine Cheung <pcheung@redhat.com> - 1:1.0.10-1.redhat_1
160
- EAP6/EWS2 Wrapper of jakarta-commons-daemon
161
view file @ 86e54ae454
view file @ 86e54ae454
view file @ 86e54ae454
... ... --- /dev/null
... ... +++ b/commons-daemon-1.0.15-redhat-1.pom
... ... @@ -0,0 +1,125 @@
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!--
3
   Licensed to the Apache Software Foundation (ASF) under one or more
4
   contributor license agreements.  See the NOTICE file distributed with
5
   this work for additional information regarding copyright ownership.
6
   The ASF licenses this file to You under the Apache License, Version 2.0
7
   (the "License"); you may not use this file except in compliance with
8
   the License.  You may obtain a copy of the License at
9
10
       http://www.apache.org/licenses/LICENSE-2.0
11
12
   Unless required by applicable law or agreed to in writing, software
13
   distributed under the License is distributed on an "AS IS" BASIS,
14
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
   See the License for the specific language governing permissions and
16
   limitations under the License.
17
--><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
18
  <parent>
19
    <groupId>org.apache.commons</groupId>
20
    <artifactId>commons-parent</artifactId>
21
    <version>22-redhat-2</version>
22
  </parent>
23
  <modelVersion>4.0.0</modelVersion>
24
  <groupId>commons-daemon</groupId>
25
  <artifactId>commons-daemon</artifactId>
26
  <version>1.0.15-redhat-1</version>
27
  <name>Commons Daemon</name>
28
  <!-- Daemon started in Commons in 2002 with an import of code from Tomcat,
29
       which is why the NOTICE file has an earlier date than the inceptionYear -->
30
  <inceptionYear>2002</inceptionYear>
31
  <description>Apache Commons Daemon software provides an alternative invocation mechanism for unix-daemon-like Java code.</description>
32
33
  <developers>
34
    <developer>
35
      <name>Jean-Frederic Clere</name>
36
      <id>jfclere</id>
37
      <email>jfclere at apache.org</email>
38
    </developer>
39
40
    <developer>
41
      <name>Remy Maucherat</name>
42
      <id>remm</id>
43
      <email>remm at apache.org</email>
44
    </developer>
45
46
    <developer>
47
      <name>Yoav Shapira</name>
48
      <id>yoavs</id>
49
      <email>yoavs at apache.org</email>
50
    </developer>
51
52
    <developer>
53
      <name>Bill Barker</name>
54
      <id>billbarker</id>
55
      <email>billbarker at apache.org</email>
56
    </developer>
57
    <developer>
58
      <name>Mladen Turk</name>
59
      <id>mturk</id>
60
      <email>mturk at apache.org</email>
61
    </developer>
62
  </developers>
63
64
  <dependencies>
65
    <dependency>
66
      <groupId>junit</groupId>
67
      <artifactId>junit</artifactId>
68
      <scope>test</scope>
69
    </dependency>
70
  </dependencies>
71
72
  <properties>
73
    <maven.compile.source>1.3</maven.compile.source>
74
    <maven.compile.target>1.3</maven.compile.target>
75
    <commons.componentid>daemon</commons.componentid>
76
    <commons.release.version>1.0.15</commons.release.version>
77
    <commons.jira.id>DAEMON</commons.jira.id>
78
    <commons.jira.pid>12310468</commons.jira.pid>
79
  </properties>
80
81
  <dependencyManagement>
82
    <dependencies>
83
      <dependency>
84
        <groupId>org.jboss.component.management</groupId>
85
        <artifactId>jboss-dependency-management-all</artifactId>
86
        <version>6.1.0-redhat-1</version>
87
        <type>pom</type>
88
        <scope>import</scope>
89
      </dependency>
90
    </dependencies>
91
  </dependencyManagement>
92
93
  <build>
94
    <plugins>
95
<!--
96
      <plugin>
97
        <groupId>org.apache.maven.plugins</groupId>
98
        <artifactId>maven-surefire-plugin</artifactId>
99
          <configuration>
100
            <includes>
101
              <include>**/*Test.java</include>
102
            </includes>
103
            <excludes>
104
              <exclude>**/*AbstractTest.java</exclude>
105
            </excludes>
106
        </configuration>
107
      </plugin>
108
-->
109
      <plugin>
110
        <artifactId>maven-assembly-plugin</artifactId>
111
        <configuration>
112
          <descriptors>
113
            <descriptor>src/main/assembly/native-src.xml</descriptor>
114
            <descriptor>src/main/assembly/bin.xml</descriptor>
115
            <descriptor>src/main/assembly/src.xml</descriptor>
116
            <descriptor>src/main/assembly/win.xml</descriptor>
117
          </descriptors>
118
          <tarLongFileMode>gnu</tarLongFileMode>
119
        </configuration>
120
      </plugin>
121
    </plugins>
122
  </build>
123
124
<!-- Modified by POM Artifact-Version Manipulator version 1.2.4-redhat-1-eap (722ee63) -->
125
</project>

Comments