!24 Add privides item Apache-zookeeper and add packages to system default java package directory
From: @wang--ge Reviewed-by: @zhengzhenyu Signed-off-by: @zhengzhenyu
This commit is contained in:
commit
95a1d4cd12
71
xmvn-reactor
Normal file
71
xmvn-reactor
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<metadata xmlns="http://fedorahosted.org/xmvn/METADATA/3.0.0">
|
||||||
|
<artifacts>
|
||||||
|
<artifact>
|
||||||
|
<groupId>org.apache.zookeeper</groupId>
|
||||||
|
<artifactId>zookeeper</artifactId>
|
||||||
|
<version>3.6.2</version>
|
||||||
|
<path>absolute-prefix/zookeeper-server/target/zookeeper-3.6.2.jar</path>
|
||||||
|
<properties>
|
||||||
|
<type>jar</type>
|
||||||
|
<requiresJava>1.6</requiresJava>
|
||||||
|
</properties>
|
||||||
|
</artifact>
|
||||||
|
<artifact>
|
||||||
|
<groupId>org.apache.zookeeper</groupId>
|
||||||
|
<artifactId>zookeeper</artifactId>
|
||||||
|
<extension>pom</extension>
|
||||||
|
<version>3.6.2</version>
|
||||||
|
<path>absolute-prefix/zookeeper-server/pom.xml</path>
|
||||||
|
<properties>
|
||||||
|
<type>jar</type>
|
||||||
|
<requiresJava>1.6</requiresJava>
|
||||||
|
</properties>
|
||||||
|
</artifact>
|
||||||
|
|
||||||
|
<artifact>
|
||||||
|
<groupId>org.apache.zookeeper</groupId>
|
||||||
|
<artifactId>zookeeper-jute</artifactId>
|
||||||
|
<version>3.6.2</version>
|
||||||
|
<path>absolute-prefix/zookeeper-jute/target/zookeeper-jute-3.6.2.jar</path>
|
||||||
|
<properties>
|
||||||
|
<type>jar</type>
|
||||||
|
<requiresJava>1.6</requiresJava>
|
||||||
|
</properties>
|
||||||
|
</artifact>
|
||||||
|
<artifact>
|
||||||
|
<groupId>org.apache.zookeeper</groupId>
|
||||||
|
<artifactId>zookeeper-jute</artifactId>
|
||||||
|
<extension>pom</extension>
|
||||||
|
<version>3.6.2</version>
|
||||||
|
<path>absolute-prefix/zookeeper-jute/pom.xml</path>
|
||||||
|
<properties>
|
||||||
|
<type>jar</type>
|
||||||
|
<requiresJava>1.6</requiresJava>
|
||||||
|
</properties>
|
||||||
|
</artifact>
|
||||||
|
|
||||||
|
<artifact>
|
||||||
|
<groupId>org.apache.zookeeper</groupId>
|
||||||
|
<artifactId>zookeeper-prometheus-metrics</artifactId>
|
||||||
|
<version>3.6.2</version>
|
||||||
|
<path>absolute-prefix/zookeeper-metrics-providers/zookeeper-prometheus-metrics/target/zookeeper-prometheus-metrics-3.6.2.jar</path>
|
||||||
|
<properties>
|
||||||
|
<type>jar</type>
|
||||||
|
<requiresJava>1.6</requiresJava>
|
||||||
|
</properties>
|
||||||
|
</artifact>
|
||||||
|
<artifact>
|
||||||
|
<groupId>org.apache.zookeeper</groupId>
|
||||||
|
<artifactId>zookeeper-prometheus-metrics</artifactId>
|
||||||
|
<extension>pom</extension>
|
||||||
|
<version>3.6.2</version>
|
||||||
|
<path>absolute-prefix/zookeeper-metrics-providers/zookeeper-prometheus-metrics/pom.xml</path>
|
||||||
|
<properties>
|
||||||
|
<type>jar</type>
|
||||||
|
<requiresJava>1.6</requiresJava>
|
||||||
|
</properties>
|
||||||
|
</artifact>
|
||||||
|
|
||||||
|
</artifacts>
|
||||||
|
</metadata>
|
||||||
@ -1,5 +1,5 @@
|
|||||||
%define rel_ver 3.6.2
|
%define rel_ver 3.6.2
|
||||||
%define pkg_ver 2.2
|
%define pkg_ver 2.3
|
||||||
%define _prefix /opt/zookeeper
|
%define _prefix /opt/zookeeper
|
||||||
|
|
||||||
Summary: High-performance coordination service for distributed applications.
|
Summary: High-performance coordination service for distributed applications.
|
||||||
@ -15,15 +15,23 @@ Source1: zoo.cfg
|
|||||||
Source2: zookeeper.service
|
Source2: zookeeper.service
|
||||||
Source3: zookeeper.sysconfig
|
Source3: zookeeper.sysconfig
|
||||||
Source4: log4j.properties
|
Source4: log4j.properties
|
||||||
|
Source5: xmvn-reactor
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{rel_ver}-%{release}-root
|
BuildRoot: %{_tmppath}/%{name}-%{rel_ver}-%{release}-root
|
||||||
BuildRequires: java-1.8.0-openjdk-devel,maven,hostname
|
BuildRequires: java-1.8.0-openjdk-devel,maven,hostname,maven-local
|
||||||
Requires: java-1.8.0-openjdk,systemd
|
Requires: java-1.8.0-openjdk,systemd
|
||||||
|
Provides: apache-zookeeper
|
||||||
|
Provides: mvn(org.apche.zookeeper:zookeeper)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
ZooKeeper is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services.
|
ZooKeeper is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n zookeeper-release-%{version}
|
%setup -q -n zookeeper-release-%{version}
|
||||||
|
cp %{SOURCE5} ./.xmvn-reactor
|
||||||
|
echo `pwd` > absolute_prefix.log
|
||||||
|
sed -i 's/\//\\\//g' absolute_prefix.log
|
||||||
|
absolute_prefix=`head -n 1 absolute_prefix.log`
|
||||||
|
sed -i 's/absolute-prefix/'"$absolute_prefix"'/g' .xmvn-reactor
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mvn -DskipTests package
|
mvn -DskipTests package
|
||||||
@ -31,6 +39,8 @@ tar xvf zookeeper-assembly/target/apache-%{name}-%{rel_ver}-bin.tar.gz -C .
|
|||||||
cp -r apache-%{name}-%{rel_ver}-bin/lib .
|
cp -r apache-%{name}-%{rel_ver}-bin/lib .
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%mvn_install
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_prefix}/bin
|
mkdir -p %{buildroot}%{_prefix}/bin
|
||||||
mkdir -p %{buildroot}%{_prefix}/lib
|
mkdir -p %{buildroot}%{_prefix}/lib
|
||||||
mkdir -p %{buildroot}%{_prefix}/conf
|
mkdir -p %{buildroot}%{_prefix}/conf
|
||||||
@ -48,7 +58,7 @@ install -p -D -m 644 %{S:4} %{buildroot}%{_prefix}/conf/log4j.properties
|
|||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
%files
|
%files -f .mfiles
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%attr(-,zookeeper,zookeeper) %{_prefix}
|
%attr(-,zookeeper,zookeeper) %{_prefix}
|
||||||
%dir %attr(744, zookeeper, zookeeper) %{_localstatedir}/log/zookeeper
|
%dir %attr(744, zookeeper, zookeeper) %{_localstatedir}/log/zookeeper
|
||||||
@ -72,6 +82,9 @@ exit 0
|
|||||||
%systemd_postun_with_restart zookeeper.service
|
%systemd_postun_with_restart zookeeper.service
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Jun 24 2021 Ge Wang <wangge20@huawei.com> - 2.3
|
||||||
|
- Add provides item apache-zookeeper and add packages to system default java package directory
|
||||||
|
|
||||||
* Fri Jun 18 2021 lingsheng <lingsheng@huawei.com> - 2.2
|
* Fri Jun 18 2021 lingsheng <lingsheng@huawei.com> - 2.2
|
||||||
- Fix reload service failure
|
- Fix reload service failure
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user