From 94697f96560dca121d7da3487c290f847c383c0f Mon Sep 17 00:00:00 2001 From: Shawn Iwinski Date: Feb 23 2020 03:08:20 +0000 Subject: Unmaintained upstream (last release was Nov 24, 2014) --- diff --git a/.gitignore b/.gitignore deleted file mode 100644 index db3798e..0000000 --- a/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -/lessphp-0.3.8.tar.gz -/lessphp-0.3.9.tar.gz -/lessphp-0.4.0.tar.gz -/php-lessphp-0.5.0-0f5a7f5545d2bcf4e9fad9a228c8ad89cc9aa283.tar.gz diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..0f33564 --- /dev/null +++ b/dead.package @@ -0,0 +1 @@ +Unmaintained upstream (last release was Nov 24, 2014) diff --git a/php-lessphp-pr626.patch b/php-lessphp-pr626.patch deleted file mode 100644 index 47c1a7a..0000000 --- a/php-lessphp-pr626.patch +++ /dev/null @@ -1,23 +0,0 @@ -From 6cabd199faf47a2f38b70e3c98f563817b43273a Mon Sep 17 00:00:00 2001 -From: Remi Collet -Date: Wed, 23 Nov 2016 15:20:43 +0100 -Subject: [PATCH 1/2] fix lib_luma - ---- - lessc.inc.php | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/lessc.inc.php b/lessc.inc.php -index 2292f21..b639c3e 100644 ---- a/lessc.inc.php -+++ b/lessc.inc.php -@@ -1273,7 +1273,7 @@ protected function lib_contrast($args) { - - protected function lib_luma($color) { - $color = $this->coerceColor($color); -- return (0.2126 * $color[0] / 255) + (0.7152 * $color[1] / 255) + (0.0722 * $color[2] / 255); -+ return (0.2126 * $color[1] / 255) + (0.7152 * $color[2] / 255) + (0.0722 * $color[3] / 255); - } - - - diff --git a/php-lessphp.spec b/php-lessphp.spec deleted file mode 100644 index dc26359..0000000 --- a/php-lessphp.spec +++ /dev/null @@ -1,187 +0,0 @@ -# -# Fedora spec file for php-lessphp -# -# Copyright (c) 2012-2015 Shawn Iwinski -# -# License: MIT -# http://opensource.org/licenses/MIT -# -# Please preserve changelog entries -# - -%global github_owner leafo -%global github_name lessphp -%global github_version 0.5.0 -%global github_commit 0f5a7f5545d2bcf4e9fad9a228c8ad89cc9aa283 - -%global composer_vendor leafo -%global composer_project lessphp - -# Build using "--without tests" to disable tests -%global with_tests 0%{!?_without_tests:1} - -%{!?phpdir: %global phpdir %{_datadir}/php} - -Name: php-%{composer_project} -Version: %{github_version} -Release: 11%{?dist} -Summary: A compiler for LESS written in PHP - -License: MIT or GPLv3 -URL: http://leafo.net/lessphp -Source0: https://github.com/%{github_owner}/%{github_name}/archive/%{github_commit}/%{name}-%{github_version}-%{github_commit}.tar.gz - -# https://github.com/leafo/lessphp/pull/626 -Patch0: %{name}-pr626.patch - -BuildArch: noarch -# Tests -%if %{with_tests} -BuildRequires: %{_bindir}/phpunit -## phpcompatinfo (computed from version 0.5.0) -BuildRequires: php(language) >= 5.3.0 -BuildRequires: php-ctype -BuildRequires: php-date -BuildRequires: php-fileinfo -BuildRequires: php-pcre -%endif - -Requires: php-cli -# phpcompatinfo (computed from version 0.5.0) -Requires: php(language) >= 5.3.0 -Requires: php-ctype -Requires: php-date -Requires: php-fileinfo -Requires: php-pcre - -# Composer -Provides: php-composer(%{composer_vendor}/%{composer_project}) = %{version} - -%description -lessphp is a compiler that generates CSS from a superset language which -adds a collection of convenient features often seen in other languages. -All CSS is compatible with LESS, so you can start using new features -with your existing CSS. - -It is designed to be compatible with less.js (http://lesscss.org/), and -suitable as a drop in replacement for PHP projects. - - -%prep -%setup -qn %{github_name}-%{github_commit} -%patch0 -p1 - -: Update bin requires and shebang -sed 's#$path\s*=.*#$path = "%{phpdir}/%{composer_project}/";#' \ - -i plessc - - -%build -# Empty build section, nothing required - - -%install -: Lib -mkdir -p %{buildroot}%{phpdir}/%{composer_project} -cp -p lessc.inc.php %{buildroot}%{phpdir}/%{composer_project}/ - -: Bin -mkdir -p %{buildroot}%{_bindir} -cp -p plessc %{buildroot}%{_bindir}/ - - -%check -%if %{with_tests} -%{_bindir}/phpunit --verbose tests -%else -: Tests skipped -%endif - - -%files -%{!?_licensedir:%global license %%doc} -%license LICENSE -%doc README.md -%doc composer.json -%doc docs/* -%{phpdir}/%{composer_project} -%{_bindir}/plessc - - -%changelog -* Thu Jan 30 2020 Fedora Release Engineering - 0.5.0-11 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Fri Jul 26 2019 Fedora Release Engineering - 0.5.0-10 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Sat Feb 02 2019 Fedora Release Engineering - 0.5.0-9 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Fri Jul 13 2018 Fedora Release Engineering - 0.5.0-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Fri Feb 09 2018 Fedora Release Engineering - 0.5.0-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Thu Jul 27 2017 Fedora Release Engineering - 0.5.0-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Sat Feb 11 2017 Fedora Release Engineering - 0.5.0-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Wed Nov 23 2016 Remi Collet - 0.5.0-4 -- add patch for lib_luma and fix FTBFS with PHP 7.1 - https://github.com/leafo/lessphp/pull/626 - -* Thu Feb 04 2016 Fedora Release Engineering - 0.5.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Sun Jun 28 2015 Shawn Iwinski - 0.5.0-2 -- Added php-composer(leafo/lessphp) virtual provide - -* Sun Jun 28 2015 Shawn Iwinski - 0.5.0-1 -- Updated to 0.5.0 (RHBZ #1211066) -- %%license usage -- Unpackaged tests -- Removed bin manpage -- Spec cleanup - -* Thu Jun 18 2015 Fedora Release Engineering - 0.4.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Sat Jun 07 2014 Fedora Release Engineering - 0.4.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Sun Aug 11 2013 Shawn Iwinski - 0.4.0-1 -- Updated to 0.4.0 (RHBZ #995818) - -* Sun Aug 04 2013 Fedora Release Engineering - 0.3.9-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Sun Mar 03 2013 Shawn Iwinski - 0.3.9-1 -- Updated to upstream version 0.3.9 (RHBZ #917299) -- Added php_min_ver global - -* Thu Feb 14 2013 Fedora Release Engineering - 0.3.8-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - -* Sun Nov 18 2012 Shawn Iwinski - 0.3.8-3 -- Fixed man page creation -- Added tests directory ownership - -* Sat Nov 17 2012 Shawn Iwinski - 0.3.8-2 -- Added phpci requires to build requires -- Simplified %%prep and updated %%install and %%check -- Moved tests to %%{_datadir}/tests/%%{name} - -* Wed Nov 07 2012 Shawn Iwinski - 0.3.8-1 -- Updated to upstream version 0.3.8 -- Removed adding of shebang to bootstrap script (fixed upstream) -- Fixed man file creation and removed manual gzip - -* Mon Aug 13 2012 Shawn Iwinski - 0.3.6-1 -- Updated to upstream version 0.3.6 - -* Thu Jul 12 2012 Shawn Iwinski - 0.3.5-1 -- Initial package diff --git a/sources b/sources deleted file mode 100644 index 9833341..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -7da5cf1dc07e30ac3e055e92c4b9bf50 php-lessphp-0.5.0-0f5a7f5545d2bcf4e9fad9a228c8ad89cc9aa283.tar.gz