[packages/libcups] - new, for cups 3
qboosh
qboosh at pld-linux.org
Fri Apr 24 19:04:41 CEST 2026
commit 5c5ea92f6c1b2bc0a3c75efb3d5378f0d96a987e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Apr 24 19:05:14 2026 +0200
- new, for cups 3
libcups.spec | 164 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 164 insertions(+)
---
diff --git a/libcups.spec b/libcups.spec
new file mode 100644
index 0000000..3702caf
--- /dev/null
+++ b/libcups.spec
@@ -0,0 +1,164 @@
+#
+# Conditional build:
+%bcond_without apidocs # API documentation
+%bcond_without static_libs # static libraries
+%bcond_with gnutls # GnuTLS instead of OpenSSL
+#
+Summary: The CUPS Library v3
+Summary(pl.UTF-8): Biblioteka CUPS w wersji 3
+Name: libcups
+Version: 3.0.1
+Release: 1
+License: Apache v2.0
+Group: Libraries
+#Source0Download: https://github.com/OpenPrinting/libcups/releases
+Source0: https://github.com/OpenPrinting/libcups/releases/download/v%{version}/%{name}-%{version}-source.tar.gz
+# Source0-md5: 2409934bcabc4cb8f4a9bce506a845b2
+URL: https://openprinting.github.io/cups/cups3.html
+BuildRequires: avahi-devel
+BuildRequires: dbus-devel
+%{?with_gnutls:BuildRequires: gnutls-devel >= 3.0}
+BuildRequires: pdfio-devel
+%{!?with_gnutls:BuildRequires: openssl-devel}
+BuildRequires: pkgconfig
+BuildRequires: rpm-build >= 4.6
+BuildRequires: zlib-devel >= 1.1
+# pdftoppm
+Requires: poppler-progs
+# conflict on ippeveprinter executable and man page, ipptoolfile(5) man page
+Conflicts: cups < 1:3
+# conflict on ippfind, ipptool executables
+Conflicts: cups-clients < 1:3
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The CUPS library (libcups) provides a common C API for HTTP/HTTPS and
+IPP communications on Unix-like operating systems and Microsoft
+Windows. It is used by many printing-related projects such as CUPS and
+PAPPL. This project is part of OpenPrinting's CUPS 3.0 development,
+which will provide a 100% driverless printing system for Unix-like
+operating systems.
+
+%description -l pl.UTF-8
+Biblioteka CUPS (libcups) zapewnia wspólne API C do komunikacji
+HTTP/HTTPS i IPP na uniksowych systemach operacyjnych oraz Microsoft
+Windows. Jest używana przez wiele projektów związanych z drukowaniem,
+takich jak CUPS czy PAPPL. Ten projekt jest częścią rozwoju CUPS 3.0
+organizacji OpenPrinting, który ma zapewnić w 100% bezsterownikowy
+system wydruków na systamch uniksowych.
+
+%package devel
+Summary: Header files for CUPS 3 library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CUPS 3
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: avahi-devel
+Requires: dbus-devel
+%{?with_gnutls:Requires: gnutls-devel >= 3.0}
+%{!?with_gnutls:Requires: openssl-devel}
+Requires: zlib-devel >= 1.1
+
+%description devel
+Header files for CUPS 3 library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki CUPS 3.
+
+%package static
+Summary: Static CUPS 3 library
+Summary(pl.UTF-8): Statyczna biblioteka CUPS 3
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static CUPS 3 library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka CUPS 3.
+
+%package apidocs
+Summary: API documentation for CUPS 3 library
+Summary(pl.UTF-8): Dokumentacja API biblioteki CUPS 3
+Group: Documentation
+BuildArch: noarch
+
+%description apidocs
+API documentation for CUPS 3 library.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki CUPS 3.
+
+%prep
+%setup -q
+
+%build
+# in libcups3-prefix layout we have to pass --includedir explicitly, because configure doesn't append INCLUDE_PREFIX when --includedir is passed to configure
+%configure \
+ PDFTOPPM=/usr/bin/pdftoppm \
+ --includedir=%{_includedir}/libcups3 \
+ %{!?with_static_libs:--disable-static} \
+ --with-dnssd=avahi \
+ --with-pdfrip=pdftoppm \
+ --with-tls=%{?with_gnutls:gnutls}%{!?with_gnutls:openssl}
+
+# --debug=p to override .SILENT
+# OPTIM not to override our flags with -Os
+%{__make} \
+ --debug=p \
+ OPTIM=
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES.md CREDITS.md NOTICE README.md SECURITY.md
+%attr(755,root,root) %{_bindir}/cups-oauth
+%attr(755,root,root) %{_bindir}/cups-x509
+%attr(755,root,root) %{_bindir}/ippeveprinter
+%attr(755,root,root) %{_bindir}/ippfind
+%attr(755,root,root) %{_bindir}/ipptool
+%attr(755,root,root) %{_bindir}/ipptransform
+# symlinks to ipptransform
+%{_bindir}/ippevepcl
+%{_bindir}/ippeveps
+%{_libdir}/libcups3.so.3
+%{_datadir}/libcups3
+%{_mandir}/man1/cups-oauth.1*
+%{_mandir}/man1/cups-x509.1*
+%{_mandir}/man1/ippevepcl.1*
+%{_mandir}/man1/ippeveprinter.1*
+%{_mandir}/man1/ippeveps.1*
+%{_mandir}/man1/ippfind.1*
+%{_mandir}/man1/ipptool.1*
+%{_mandir}/man1/ipptransform.1*
+%{_mandir}/man5/client.conf.5*
+%{_mandir}/man5/ipptoolfile.5*
+
+%files devel
+%defattr(644,root,root,755)
+%{_libdir}/libcups3.so
+%{_includedir}/libcups3
+%{_pkgconfigdir}/cups3.pc
+%{_mandir}/man3/libcups.3*
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libcups3.a
+%endif
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%{_docdir}/libcups3
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libcups.git/commitdiff/5c5ea92f6c1b2bc0a3c75efb3d5378f0d96a987e
More information about the pld-cvs-commit
mailing list