From 9766c6fa5cce5a7ce8c165e601bb40d2eda1720d Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 18 May 2023 03:18:12 +0000 Subject: automatic import of python-django-google-tag-manager --- .gitignore | 1 + python-django-google-tag-manager.spec | 135 ++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 137 insertions(+) create mode 100644 python-django-google-tag-manager.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..abc4d35 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/django-google-tag-manager-0.0.5.tar.gz diff --git a/python-django-google-tag-manager.spec b/python-django-google-tag-manager.spec new file mode 100644 index 0000000..fe8c9ec --- /dev/null +++ b/python-django-google-tag-manager.spec @@ -0,0 +1,135 @@ +%global _empty_manifest_terminate_build 0 +Name: python-django-google-tag-manager +Version: 0.0.5 +Release: 1 +Summary: Easily include your Google Tag Manager tag in your django site +License: MIT +URL: https://github.com/Lacrymology/django-google-tag-manager +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c2/ca/9845996cd353a1e75b70892bc38130c56e5cb64dd15a0eed0bc6af5cf32b/django-google-tag-manager-0.0.5.tar.gz +BuildArch: noarch + + +%description +Template tag to install your Google Tag Manager account in your +templates (http://www.google.com/tagmanager/) +## Installation and Usage +1. run `pip install django-google-tag-manager` +2. add `'gtm'` to your `INSTALLED_APPS` setting. +3. set `GOOGLE_TAG_ID` to your Google Tag Container Id. It + should look something like `GTM_XXXXXX` +4. In your templates (probably in your base template) you `{% load + gtm_tags %}` and then add `{% gtm_head %}` to your `` and + add `{% gtm_body %}` just below your `` opening tag. +5. Profit +That's it for the most part. If for any reason you want to override +the templates used to render the tags, they are called +`gtm/gtm_head.html` and `gtm/gtm_body.html`. +Optionally, you can pass the google tag id as a parameter to the +templatetag like this: + {% gtm_head "GTM-ABC123" %} +and + {% gtm_body "GTM-ABC123" %} +For backwards compatibility you can still use the single `{% gtm %}` +tag just below your `` opening tag. This will output both the +head and body code. + +%package -n python3-django-google-tag-manager +Summary: Easily include your Google Tag Manager tag in your django site +Provides: python-django-google-tag-manager +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-django-google-tag-manager +Template tag to install your Google Tag Manager account in your +templates (http://www.google.com/tagmanager/) +## Installation and Usage +1. run `pip install django-google-tag-manager` +2. add `'gtm'` to your `INSTALLED_APPS` setting. +3. set `GOOGLE_TAG_ID` to your Google Tag Container Id. It + should look something like `GTM_XXXXXX` +4. In your templates (probably in your base template) you `{% load + gtm_tags %}` and then add `{% gtm_head %}` to your `` and + add `{% gtm_body %}` just below your `` opening tag. +5. Profit +That's it for the most part. If for any reason you want to override +the templates used to render the tags, they are called +`gtm/gtm_head.html` and `gtm/gtm_body.html`. +Optionally, you can pass the google tag id as a parameter to the +templatetag like this: + {% gtm_head "GTM-ABC123" %} +and + {% gtm_body "GTM-ABC123" %} +For backwards compatibility you can still use the single `{% gtm %}` +tag just below your `` opening tag. This will output both the +head and body code. + +%package help +Summary: Development documents and examples for django-google-tag-manager +Provides: python3-django-google-tag-manager-doc +%description help +Template tag to install your Google Tag Manager account in your +templates (http://www.google.com/tagmanager/) +## Installation and Usage +1. run `pip install django-google-tag-manager` +2. add `'gtm'` to your `INSTALLED_APPS` setting. +3. set `GOOGLE_TAG_ID` to your Google Tag Container Id. It + should look something like `GTM_XXXXXX` +4. In your templates (probably in your base template) you `{% load + gtm_tags %}` and then add `{% gtm_head %}` to your `` and + add `{% gtm_body %}` just below your `` opening tag. +5. Profit +That's it for the most part. If for any reason you want to override +the templates used to render the tags, they are called +`gtm/gtm_head.html` and `gtm/gtm_body.html`. +Optionally, you can pass the google tag id as a parameter to the +templatetag like this: + {% gtm_head "GTM-ABC123" %} +and + {% gtm_body "GTM-ABC123" %} +For backwards compatibility you can still use the single `{% gtm %}` +tag just below your `` opening tag. This will output both the +head and body code. + +%prep +%autosetup -n django-google-tag-manager-0.0.5 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-django-google-tag-manager -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu May 18 2023 Python_Bot - 0.0.5-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..a25f631 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +e2483288e173eae4c03fd1070510c225 django-google-tag-manager-0.0.5.tar.gz -- cgit v1.2.3