Subversion Repositories php-qbpwcf

Rev

Rev 285 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

Name:           php-qbpwcf

#版本號不能含有"-"的符號
Version:        alpha.v20260312

#發行版次。初始值一般都應該是 1o/o{?dist}。每次新發行同版本軟體的軟體包就遞增一個數字。若上游發行新的版本,就對應修改 Version 標籤,然後把 Release 發行版次重設回 1 
Release:        1%{?dist}
Summary:        PHP libary for quick build php website based on Fedora Linux(a.k.a. ,Low code platform library).

License:        GPL-3.0-or-later

#專案的網站
URL:            https://sourceforge.net/projects/qbpwc

#原始碼檔案的下載位置
Source0:        https://lib.qbpwcf.org/%{name}-%{version}.tar.zst 

#編譯該程式需要有哪些套件有安裝
BuildRequires:  php,php-cli,php-json,php-soap,php-xml,uuid,net-tools,php-tcpdf,php-gd,php-process,nmap,httpd,mod_ssl,faad2-libs,libkadm5,php-pear,php-pear-Auth-SASL,php-pear-Net-SMTP,php-pear-Net-Socket,php-pecl-krb5

#安裝該軟體需要有哪些套件 
Requires:       php,php-cli,php-json,php-soap,php-xml,uuid,net-tools,php-tcpdf,php-gd,php-process,nmap,httpd,mod_ssl,faad2-libs,libkadm5,php-pear,php-pear-Auth-SASL,php-pear-Net-SMTP,php-pear-Net-Socket,php-pecl-krb5,mariadb,mariadb-server,phpMyAdmin,NetworkManager,liberation-mono-fonts

#跟處理器架構無關
BuildArch:      noarch

#x86_64 cpu required
#BuildArch:     x86_64

#don't generate debug files
%global _enable_debug_package 0
%global debug_package %{nil}
%global __os_install_post /usr/lib/rpm/brp-compress %{nil}

%description
PHP libary for quick build php website based on Fedora Linux(a.k.a. ,Low code platform library).

#prep contains a shell script for preparing the sources for building.
#It is often just the single macro autosetup, which, in this case, simply extracts the source.
%prep
%autosetup

%build
%configure

#不需要編譯,所以不用 marco make_build
#make_buid

%install

#don't generate debug files
export DONT_STRIP=1

#makefile 中的 install 規則,要可以接收 "DESTDIR=" 跟 "INSTALL=" 開頭的參數.
%make_install

%files

#files will place to /usr/lib/
%{_libdir}/*

#files will place to /usr/lib64/
/usr/lib64/*

#files will place to /usr/bin/
%{_bindir}/*

#files will place to /usr/share/
%{_datadir}/*

#file will place to /etc/
%{_sysconfdir}/*

#file will place to /var/
%{_localstatedir}/*

#fix permission and owner of qbpwcf home path
%attr(771, qbpwcf, qbpwcf) %{_localstatedir}/qbpwcf/home
%attr(771, qbpwcf, qbpwcf) %{_localstatedir}/qbpwcf/home/php
%attr(771, qbpwcf, qbpwcf) %{_localstatedir}/qbpwcf/home/php/session

%doc Release_Note

%changelog
%autochangelog

%readme
README

%licese
License