diff --git a/README.md b/README.md index 15885a7..9690e59 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libppd +OpenPrinting ppd library. + diff --git a/libppd.spec b/libppd.spec new file mode 100644 index 0000000..fab77ea --- /dev/null +++ b/libppd.spec @@ -0,0 +1,84 @@ +Name: libppd +Version: 2.0.0 +Release: 1mamba +Summary: OpenPrinting ppd library +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/OpenPrinting/libppd +Source: https://github.com/OpenPrinting/libppd.git/%{version}/libppd-%{version}.tar.bz2 +License: Apache License 2.0 +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libcups-devel +BuildRequires: libcupsfilters-devel +BuildRequires: libgcc +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +Requires: %{name}-common = %{?epoch:%epoch:}%{version}-%{release} + +%description +OpenPrinting ppd library. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%package common +Group: System/Spooling +Summary: Shared files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description common +This package contains shared files for %{name}. + +%debug_package + +%prep +%setup -q +./autogen.sh + +%build +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libppd.so.* +%doc AUTHORS COPYING LICENSE + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/ppd +%{_includedir}/ppd/*.h +%{_libdir}/libppd.a +%{_libdir}/libppd.so +%{_libdir}/pkgconfig/libppd.pc +%doc README.md + +%files common +%defattr(-,root,root) +%dir %{_datadir}/ppdc +%{_datadir}/ppdc/* +%dir %{_docdir}/libppd +%{_docdir}/libppd/* + +%changelog +* Mon Oct 09 2023 Silvan Calarco 2.0.0-1mamba +- package created using the webbuild interface