summaryrefslogtreecommitdiff
path: root/composer.spec
diff options
context:
space:
mode:
Diffstat (limited to 'composer.spec')
-rw-r--r--composer.spec31
1 files changed, 5 insertions, 26 deletions
diff --git a/composer.spec b/composer.spec
index 999aed7..3992dbe 100644
--- a/composer.spec
+++ b/composer.spec
@@ -1,4 +1,3 @@
-%define anolis_release 1
%undefine __brp_mangle_shebangs
%global gh_commit 4c516146167d1392c8b9b269bb7c24115d262164
@@ -18,7 +17,7 @@
Name: composer
Version: %{upstream_version}
-Release: %{anolis_release}%{?dist}
+Release: 1
Summary: Dependency Manager for PHP
# SPDX: composer and all dependencies are MIT
@@ -36,8 +35,8 @@ Source5: makesrc.sh
Patch0: %{name}-rpm.patch
# Disable XDG support as only partially implemented
Patch1: %{name}-noxdg.patch
-# Use Aliyun mirror by default
-Patch10: composer-add-aliyun-repository.patch
+# Use Huaweicloud mirror by default
+Patch10: composer-add-huaweicloud-repository.patch
BuildArch: noarch
# platform set in makesrc.sh
@@ -120,15 +119,6 @@ ensuring you have the right stack everywhere.
Documentation: https://getcomposer.org/doc/
-%package doc
-Summary: Documentation files for %{name}
-Requires: %{name} = %{EVR}
-BuildArch: noarch
-
-%description doc
-The %{name}-doc package contains documentation files for %{name}.
-
-
%prep
%autosetup -p1 -n %{gh_project}-%{gh_commit}
@@ -209,25 +199,14 @@ install -Dpm 755 bin/%{name} %{buildroot}%{_bindir}/%{name}
%files
%license LICENSE
+%doc *.md doc
+%doc composer.json
%config(noreplace) %{_sysconfdir}/profile.d/%{name}.*
%{_bindir}/%{name}
%{_datadir}/php/Composer
%{_datadir}/%{name}
%{bashcomproot}
-%files doc
-%doc *.md doc
-%doc composer.json
-
%changelog
* Mon Jul 10 2023 Funda Wang <fundawang@yeah.net> - 2.5.8-1
-- New version 2.5.8
-
-* Thu Mar 30 2023 Funda Wang <fundawang@yeah.net> - 2.5.5-1
-- New version 2.5.5
-
-* Mon Mar 27 2023 happy_orange <songnannan@linux.alibaba.com> - 2.5.4-2
-- add doc package
-
-* Sat Feb 18 2023 Funda Wang <fundawang@yeah.net> - 2.5.4-1
- Import package from Remi