[packages/libcupsfilters] - new
baggins
baggins at pld-linux.org
Sun Nov 10 01:51:29 CET 2024
commit bf612b3f9befb348b0afd92355a557eb853570b9
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sat Nov 9 23:54:55 2024 +0100
- new
libcupsfilters.spec | 109 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 109 insertions(+)
---
diff --git a/libcupsfilters.spec b/libcupsfilters.spec
new file mode 100644
index 0000000..97c1a06
--- /dev/null
+++ b/libcupsfilters.spec
@@ -0,0 +1,109 @@
+#
+# Conditional build:
+%bcond_with static_libs # static libraries
+#
+Summary: Library for developing printing filters
+Name: libcupsfilters
+Version: 2.1.0
+Release: 0.1
+License: Apache v2.0 with GPL v2 LGPL v2 Exception
+Group: Libraries
+Source0: https://github.com/OpenPrinting/libcupsfilters/releases/download/%{version}/%{name}-%{version}.tar.xz
+# Source0-md5: 8eb0fb0273f35c4daf39a117c51691c6
+URL: https://github.com/OpenPrinting/libcupsfilters
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: cups-devel
+BuildRequires: dbus-devel
+BuildRequires: fontconfig-devel >= 2.0.0
+BuildRequires: ghostscript
+BuildRequires: lcms2-devel
+BuildRequires: libexif-devel
+BuildRequires: libjpeg-devel
+BuildRequires: libpng-devel
+BuildRequires: libtiff-devel
+BuildRequires: mupdf
+BuildRequires: poppler-cpp-devel >= 0.19
+BuildRequires: qpdf-devel >= 11.0.0
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Libcupsfilters provides a library, which implements common functions
+used in cups-browsed daemon and printing filters, and additional files
+as banner templates and character sets. The filters are used in CUPS
+daemon and in printer applications.
+
+%package devel
+Summary: Header files for %{name} library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Header files for %{name} library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki %{name}.
+
+%package static
+Summary: Static %{name} library
+Summary(pl.UTF-8): Statyczna biblioteka %{name}
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static %{name} library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka %{name}.
+
+%prep
+%setup -q
+
+%build
+%configure \
+ %{!?with_static_libs:--disable-static} \
+ --enable-dbus
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+# Remove .la pollution
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS CHANGES.md LICENSE NEWS NOTICE README.md
+%attr(755,root,root) %{_libdir}/libcupsfilters.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libcupsfilters.so.2
+%dir %{_datadir}/cups/banners
+%{_datadir}/cups/banners/*
+%dir %{_datadir}/cups/charsets
+%{_datadir}/cups/charsets/pdf.utf-8*
+%dir %{_datadir}/cups/data
+%{_datadir}/cups/data/*.odt
+%{_datadir}/cups/data/*.pdf
+%{_datadir}/cups/data/testprint
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/%{name}.so
+%{_includedir}/cupsfilters
+%{_pkgconfigdir}/libcupsfilters.pc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/%{name}.a
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libcupsfilters.git/commitdiff/bf612b3f9befb348b0afd92355a557eb853570b9
More information about the pld-cvs-commit
mailing list