fix pkgconfig dir

(cherry picked from commit a4afa9b29e703d1f995e332806079f097b57ea0f)
This commit is contained in:
Hajduk137 2024-03-26 12:54:46 +08:00 committed by openeuler-sync-bot
parent b872e68a7c
commit 72a6ee13d2
2 changed files with 16 additions and 11 deletions

View File

@ -3,7 +3,7 @@
Name: cups
Epoch: 1
Version: 2.4.7
Release: 1
Release: 2
Summary: CUPS is the standards-based, open source printing system for linux operating systems.
License: Apache-2.0
Url: https://openprinting.github.io/cups/
@ -63,7 +63,7 @@ programs.
Summary: CUPS printing system - development environment
License: Apache-2.0
Requires: %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release}
Requires: gnutls-devel krb5-devel zlib-devel
Requires: gnutls-devel krb5-devel zlib-devel pkgconf-pkg-config
%description devel
CUPS is the standards-based, open source printing system developed by Apple Inc.
@ -145,20 +145,20 @@ export CFLAGS="$RPM_OPT_FLAGS -fstack-protector-all -DLDAP_DEPRECATED=1"
# --enable-debug to avoid stripping binaries
%configure --with-docdir=%{_datadir}/%{name}/www --enable-debug \
--enable-lspp \
--enable-webif \
--enable-relro \
--enable-page-logging \
--enable-sync-on-close \
--with-exe-file-perm=0755 \
--with-cupsd-file-perm=0755 \
--with-log-file-perm=0600 \
--enable-relro \
--with-dbusdir=%{_sysconfdir}/dbus-1 \
--enable-avahi \
--enable-threads \
--enable-gnutls \
--enable-webif \
--with-xinetd=no \
--with-access-log-level=actions \
--enable-page-logging \
--with-pkgconfpath=%{_libdir}/pkgconfig \
--with-dnssd=avahi \
--with-tls=gnutls \
--with-rundir=%{_rundir}/cups \
--enable-sync-on-close \
localedir=%{_datadir}/locale
%make_build
@ -403,8 +403,9 @@ rm -f %{_exec_prefix}/lib/cups/backend/smb
%{_bindir}/cups-config
%{_includedir}/cups
%{_libdir}/*.so
%{_libdir}/pkgconfig/cups.pc
%{_rpmconfigdir}/macros.d/macros.cups
%{_prefix}/lib/pkgconfig/cups.pc
%files lpd
%{cups_serverbin}/daemon/cups-lpd
@ -446,6 +447,10 @@ rm -f %{_exec_prefix}/lib/cups/backend/smb
%doc %{_datadir}/%{name}/www/apple-touch-icon.png
%changelog
* Tue Mar 26 2024 zhaojunfei <junfei.oerv@isrc.iscas.ac.cn> - 1:2.4.7-2
- fix pkgconfig file generating
- eliminate deprecated configure parameters
* Fri Dec 29 2023 wangrui <wangrui.oerv@isrc.iscas.ac.cn> - 1:2.4.7-1
- update to 2.4.7 version

View File

@ -1,4 +1,4 @@
version_control: github
src_repo: apple/cups
src_repo: OpenPrinting/cups
tag_prefix: ^v
seperator: .