diff --git a/.python-XStatic-Bootstrap-SCSS.metadata b/.python-XStatic-Bootstrap-SCSS.metadata new file mode 100644 index 0000000..8114768 --- /dev/null +++ b/.python-XStatic-Bootstrap-SCSS.metadata @@ -0,0 +1 @@ +a10c73ba0d1f16027390f17c3fe7734b0938b28d SOURCES/XStatic-Bootstrap-SCSS-3.3.7.1.tar.gz diff --git a/SOURCES/halflings-license.eml b/SOURCES/halflings-license.eml new file mode 100644 index 0000000..600c534 --- /dev/null +++ b/SOURCES/halflings-license.eml @@ -0,0 +1,136 @@ +Return-Path: glyphicons@gmail.com +Received: from zmta06.collab.prod.int.phx2.redhat.com (LHLO + zmta06.collab.prod.int.phx2.redhat.com) (10.5.81.13) by + zmail17.collab.prod.int.phx2.redhat.com with LMTP; Thu, 17 Nov 2016 + 14:46:50 -0500 (EST) +Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) + by zmta06.collab.prod.int.phx2.redhat.com (Postfix) with ESMTP id 4E703169605 + for ; Thu, 17 Nov 2016 14:46:50 -0500 (EST) +Received: from mx1.redhat.com (ext-mx04.extmail.prod.ext.phx2.redhat.com [10.5.110.28]) + by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id uAHJkoq3016770 + (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) + for ; Thu, 17 Nov 2016 14:46:50 -0500 +Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) + (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) + (No client certificate requested) + by mx1.redhat.com (Postfix) with ESMTPS id D881080088 + for ; Thu, 17 Nov 2016 19:46:48 +0000 (UTC) +Received: by mail-wm0-f49.google.com with SMTP id a197so332518655wmd.0 + for ; Thu, 17 Nov 2016 11:46:48 -0800 (PST) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=gmail.com; s=20120113; + h=from:content-transfer-encoding:mime-version:subject:date:references + :to:in-reply-to:message-id; + bh=EAC2rp246Km9miHzTmjmf76fbCblkTJb+WuZyNkfK5M=; + b=P62IqUBlKuqhqaVNl1SqGC/QDh44CHrBgVdNnEPCq9dOngSPHkuB/rG5MrXomX+yGK + xgDIASbtk9ycG3C8K1SymW8vqwURvunM/5ZwPKF66/wkJiFU8YTY1wB5en1RfqYDJFh3 + DcUn5IENutHKFv3jbT1pTbFLZ0oqUyNUiYlTcuN8495C/V4J8XNHkU9KjAePBmMsiwz7 + svwOxnGqsE/K1WCwMFSVRo1BIRHNjfAQBvLf3z5eDxtdZxtrDf4W7f4VtL0uBPjG8Hun + oNipTU2viwt+mib7ct7MTq+LstxqNRoSTdZ811vocv8w6+l02fggx5HaLlD1pf0fGa20 + 9o+w== +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=x-gm-message-state:from:content-transfer-encoding:mime-version + :subject:date:references:to:in-reply-to:message-id; + bh=EAC2rp246Km9miHzTmjmf76fbCblkTJb+WuZyNkfK5M=; + b=EQs3EIrDoS2rBh+2IRSfa1ujFsSRMHfP5uoaG0eVCNl6pcUf9KZ8RiO+ynHimKKidD + 2uMVNjmYj81aDtpWNoV+J9O6v60oeFrKFwgyxmyGH6vwZ/A+C6pNvB7nGAEWAWw6emIv + 1aI8fPIZ9dCRV1FDRY11LIp4Xy/UZhwRjXpgj7y7uBBPLtcVlxWEruAgQ6WrdoE0fbuW + CdScC4fVZE2arcWZspqkHaXqyeu7ZfAdBE7BRYu2vHz1oyWVwUhHcW2nIfaLKauhZuwk + zxt0R9y/jZhmdzhzPOAO5VsHZY/nOdj00l+bN1eGr3ZxJsIKBiXU3MEXjcNwju8qVihK + TgBA== +X-Gm-Message-State: ABUngvejapMEhWtgihRaaIHgqrHwsEAxBv30/EIsO7HP6asMqzvMiQhy4wk1CpVu1BCeCg== +X-Received: by 10.28.128.198 with SMTP id b189mr17631587wmd.105.1479412007213; + Thu, 17 Nov 2016 11:46:47 -0800 (PST) +Received: from [192.168.0.113] ([178.22.115.177]) + by smtp.gmail.com with ESMTPSA id b7sm4897348wjm.39.2016.11.17.11.46.46 + for + (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); + Thu, 17 Nov 2016 11:46:46 -0800 (PST) +From: =?utf-8?B?SmFuIEtvdmHFmcOtaw==?= +Content-Type: text/plain; charset=utf-8 +Content-Transfer-Encoding: quoted-printable +Mime-Version: 1.0 (Mac OS X Mail 10.1 \(3251\)) +Subject: Re: License of Glyphicons Halflings font for Bootstrap +Date: Thu, 17 Nov 2016 20:46:45 +0100 +References: + + <850b73c2-60ee-2077-883e-823c8f61e732@redhat.com> +To: Stephen Gallagher +In-Reply-To: <850b73c2-60ee-2077-883e-823c8f61e732@redhat.com> +Message-Id: +X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Thu, 17 Nov 2016 19:46:49 +0000 (UTC) +X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Thu, 17 Nov 2016 19:46:49 +0000 (UTC) for IP:'74.125.82.49' DOMAIN:'mail-wm0-f49.google.com' HELO:'mail-wm0-f49.google.com' FROM:'glyphicons@gmail.com' RCPT:'' +X-RedHat-Spam-Score: 0.77 (BAYES_50,DCC_REPUT_00_12,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RCVD_IN_SORBS_SPAM,SPF_PASS) 74.125.82.49 mail-wm0-f49.google.com 74.125.82.49 mail-wm0-f49.google.com +X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 +X-Scanned-By: MIMEDefang 2.78 on 10.5.110.28 + +Hi again Stephen,=20 + +you have my explicit permission to distribute the Halflings font v = +1.9.2. under the license:=20 + +Attribution-ShareAlike 4.0 International: +https://creativecommons.org/licenses/by-sa/4.0/ + +I'd rather use this license if it's ok and kept the icons really free.=20= + + +Jan Kova=C5=99=C3=ADk +-- +www.jankovarik.net +www.glyphicons.com +=09 + +> On 17 Nov 2016, at 20:18, Stephen Gallagher = +wrote: +>=20 +> On 11/17/2016 12:21 PM, Jan Kova=C5=99=C3=ADk wrote: +>> Hi Stephen,=20 +>>=20 +>> yes, current version of Halflings font is really "Free of cost" and = +"freely available for redistribution" as it is writen on Bootstrap page = +(http://getbootstrap.com/components/#glyphicons) and in my license text = +on the bottom of this page: = +http://glyphicons.com/license/#halflingsbootstrap where is explicitely = +this: "GLYPHICONS Halflings font is also released as an extension of a = +Bootstrap www.getbootstrap.com for free and it is released under the = +same license as Bootstrap."=20 +>>=20 +>> If it's enough to write it just here:=20 +>> "You're free to use Hallfings font (v 1.9.2.) in Fedora Project for = +free as long as you want. I'm also sending you a this last version of = +Halflings in attached ZIP file." +>>=20 +>> Currently I'm working on an new update and version of GLYPHICONS = +Halflings font with new icons and improved ones. I'm not sure which = +license to choose for a new version, since I'm kind of lost in all these = +"licenses" (all suggestions are welcome), but I'm sure Halflings will be = +released again for free. +>>=20 +>> Let me know if you have any other questions. +>>=20 +>> Jan Kova=C5=99=C3=ADk +>=20 +>=20 +> Thanks for your answer. Would it be possible for you to give us = +explicit +> permission (via email is fine) to distribute the Halflings font with = +Bootstrap +> under the terms of either: +>=20 +> * The Creative Commons Attribution 3.0 Unported license: +> http://creativecommons.org/licenses/by/3.0/deed.en +>=20 +> or +>=20 +> * The Apache 2.0 license: +> https://www.apache.org/licenses/LICENSE-2.0 +>=20 +> If neither of those licenses is acceptable to you, please let us know, = +and we +> would be happy to suggest other license possibilities. +>=20 +>=20 +>=20 + diff --git a/SPECS/python-XStatic-Bootstrap-SCSS.spec b/SPECS/python-XStatic-Bootstrap-SCSS.spec new file mode 100644 index 0000000..b4bbf5a --- /dev/null +++ b/SPECS/python-XStatic-Bootstrap-SCSS.spec @@ -0,0 +1,155 @@ +%global pypi_name XStatic-Bootstrap-SCSS + +Name: python-%{pypi_name} +Version: 3.3.7.1 +Release: 14%{?dist} +Summary: Bootstrap-SCSS (XStatic packaging standard) + +License: MIT +URL: http://getbootstrap.org/ +Source0: https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +Source1: halflings-license.eml +BuildArch: noarch + +%description +JavaScript library packaged for setuptools (easy_install) / pip. + +This package is intended to be used by any project that needs these files. + +It intentionally does not provide any extra code except some metadata +nor has any extra requirements. + +%package -n python3-%{pypi_name} +Summary: %{summary} + +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +Requires: python3-XStatic +Requires: xstatic-bootstrap-scss-common + +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +JavaScript library packaged for setuptools (easy_install) / pip. + +This package is intended to be used by any project that needs these files. + +It intentionally does not provide any extra code except some metadata +nor has any extra requirements. + +This package provides Python 3 build of %{pypi_name}. + +%package -n xstatic-bootstrap-scss-common +Summary: %{summary} + +BuildRequires: web-assets-devel +Requires: web-assets-filesystem + +%description -n xstatic-bootstrap-scss-common +JavaScript library packaged for setuptools (easy_install) / pip. + +This package is intended to be used by any project that needs these files. + +It intentionally does not provide any extra code except some metadata +nor has any extra requirements. + +This package contains the javascript files. + +%prep +%autosetup -n %{pypi_name}-%{version} +# patch to use webassets dir +sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/bootstrap_scss'|" xstatic/pkg/bootstrap_scss/__init__.py + +# Include email identifying the license for the Glyphicons Halflings font +cp %{SOURCE1} . + +%build +%py3_build + +%install +%py3_install + +mkdir -p %{buildroot}%{_jsdir}/bootstrap_scss +mv %{buildroot}%{python3_sitelib}/xstatic/pkg/bootstrap_scss/data/* %{buildroot}%{_jsdir}/bootstrap_scss +rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/bootstrap_scss/data/ +# fix execute flags for js +chmod 644 %{buildroot}%{_jsdir}/bootstrap_scss/js/*.js +chmod 644 %{buildroot}%{_jsdir}/bootstrap_scss/js/bootstrap/*.js + +%files -n python3-%{pypi_name} +%doc README.txt +%{python3_sitelib}/xstatic/pkg/bootstrap_scss +%{python3_sitelib}/XStatic_Bootstrap_SCSS-%{version}-py%{python3_version}.egg-info +%{python3_sitelib}/XStatic_Bootstrap_SCSS-%{version}-py%{python3_version}-nspkg.pth + +%files -n xstatic-bootstrap-scss-common +%doc README.txt +%license halflings-license.eml +%{_jsdir}/bootstrap_scss + +%changelog +* Wed Jan 27 2021 Fedora Release Engineering - 3.3.7.1-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 3.3.7.1-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro Hrončok - 3.3.7.1-12 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 3.3.7.1-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 3.3.7.1-10 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 3.3.7.1-9 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 3.3.7.1-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 3.3.7.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Wed Oct 17 2018 Zbigniew Jędrzejewski-Szmek - 3.3.7.1-6 +- Subpackage python2-XStatic-Bootstrap-SCSS has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Fri Jul 13 2018 Fedora Release Engineering - 3.3.7.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 3.3.7.1-4 +- Rebuilt for Python 3.7 + +* Fri Feb 09 2018 Fedora Release Engineering - 3.3.7.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 3.3.7.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Mon Feb 6 2017 Haïkel Guémar - 3.3.7.1-1 +- Upstream 3.3.7.1 + +* Mon Dec 19 2016 Miro Hrončok - 3.2.0.0-7 +- Rebuild for Python 3.6 + +* Thu Nov 17 2016 Stephen Gallagher - 3.2.0.0-6 +- Include license reference for bundled Glyphicons Halfling font + +* Wed Oct 12 2016 Jan Beran - 3.2.0.0-5 +- Provides a Python 3 subpackage + +* Tue Jul 19 2016 Fedora Release Engineering - 3.2.0.0-4 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Thu Feb 04 2016 Fedora Release Engineering - 3.2.0.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Jun 18 2015 Fedora Release Engineering - 3.2.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Thu Oct 02 2014 Matthias Runge - 3.2.0.0-1 +- Initial package (rhbz#1148956). +