[packages/perl-CSS-Inliner] Initial
arekm
arekm at pld-linux.org
Wed Oct 22 22:48:44 CEST 2025
commit 6f5b0003f2f79f3f0a33ebddb7ee1b1ebf7f7260
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Oct 22 22:48:29 2025 +0200
Initial
perl-CSS-Inliner.spec | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
---
diff --git a/perl-CSS-Inliner.spec b/perl-CSS-Inliner.spec
new file mode 100644
index 0000000..c5cd932
--- /dev/null
+++ b/perl-CSS-Inliner.spec
@@ -0,0 +1,58 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+#
+%define pdir CSS
+%define pnam Inliner
+Summary: CSS::Inliner - Library for converting CSS <style> blocks to inline styles
+Name: perl-CSS-Inliner
+Version: 4027
+Release: 1
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/CSS/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: bb2dc26850dd181f31beac57751fbadd
+URL: https://metacpan.org/dist/CSS-Inliner
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: rpmbuild(macros) >= 1.745
+%if %{with tests}
+BuildRequires: perl(HTML::Query) >= 0.09
+BuildRequires: perl-HTML-Tree >= 5.03
+BuildRequires: perl-URI
+BuildRequires: perl-libwww
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Library for converting CSS style blocks into inline styles in an HTML
+document. Specifically this is intended for the ease of generating
+HTML emails. This is useful as certain email clients don't support top
+level <style> declarations despite it being 2017.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog README
+%{perl_vendorlib}/CSS/Inliner*.pm
+%{perl_vendorlib}/CSS/Inliner
+%{_mandir}/man3/CSS::Inliner*.3pm.*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-CSS-Inliner.git/commitdiff/6f5b0003f2f79f3f0a33ebddb7ee1b1ebf7f7260
More information about the pld-cvs-commit
mailing list