diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-05 13:00:29 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 13:00:29 +0000 |
commit | cf3e7dbedcd304c004ca883f6cf4f0ab9e20557d (patch) | |
tree | 37f2be0b17b39c13d2f343d19db555689a91ce28 | |
parent | d7ecbe6e3b1595b61184ac7ad3243481a7e0f84b (diff) |
automatic import of python-collective-folderishtypesopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-collective-folderishtypes.spec | 120 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 122 insertions, 0 deletions
@@ -0,0 +1 @@ +/collective.folderishtypes-3.1.tar.gz diff --git a/python-collective-folderishtypes.spec b/python-collective-folderishtypes.spec new file mode 100644 index 0000000..be8ad63 --- /dev/null +++ b/python-collective-folderishtypes.spec @@ -0,0 +1,120 @@ +%global _empty_manifest_terminate_build 0 +Name: python-collective.folderishtypes +Version: 3.1 +Release: 1 +Summary: Folderish News Item, Document and Event as replacement for default types. +License: GPL +URL: http://github.com/collective/collective.folderishtypes +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/12/78/d7ba9036f94b33bab2fab5b921656c0f8205db9794c3542624c61c515065/collective.folderishtypes-3.1.tar.gz +BuildArch: noarch + + +%description +Provides the types "Folderish Event", "Folderish News Item" and +"Folderish Document" as replacements for their `Plone`_ ATContentTypes equivalents. +Those types are able to hold any other content, like a Folder. +There is a "portlet" profile, which installs a portlet to show the contents of +an folderish type. +You can limit the types, which can be added to FolderishTypes by providing +a Generic Setup import type configuration. +The reason for this package is, that in my experience it's easier to group +related content together at one place. An article about something fancy might +have an image gallery associated with it as well as some pdf-downloads. With +this package you can put everything inside the article. +Another use case is that you can structure content hierarchically and don't need +to define "default pages" - a concept hard to understand and handle (see: +https://sixfeetup.com/blog/plone-drupal-features ) +Alexander Limi also wished folderish content back in 2008: +"#10: Content re-use is overrated — people like folderish" +https://limi.net/things-plone + +%package -n python3-collective.folderishtypes +Summary: Folderish News Item, Document and Event as replacement for default types. +Provides: python-collective.folderishtypes +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-collective.folderishtypes +Provides the types "Folderish Event", "Folderish News Item" and +"Folderish Document" as replacements for their `Plone`_ ATContentTypes equivalents. +Those types are able to hold any other content, like a Folder. +There is a "portlet" profile, which installs a portlet to show the contents of +an folderish type. +You can limit the types, which can be added to FolderishTypes by providing +a Generic Setup import type configuration. +The reason for this package is, that in my experience it's easier to group +related content together at one place. An article about something fancy might +have an image gallery associated with it as well as some pdf-downloads. With +this package you can put everything inside the article. +Another use case is that you can structure content hierarchically and don't need +to define "default pages" - a concept hard to understand and handle (see: +https://sixfeetup.com/blog/plone-drupal-features ) +Alexander Limi also wished folderish content back in 2008: +"#10: Content re-use is overrated — people like folderish" +https://limi.net/things-plone + +%package help +Summary: Development documents and examples for collective.folderishtypes +Provides: python3-collective.folderishtypes-doc +%description help +Provides the types "Folderish Event", "Folderish News Item" and +"Folderish Document" as replacements for their `Plone`_ ATContentTypes equivalents. +Those types are able to hold any other content, like a Folder. +There is a "portlet" profile, which installs a portlet to show the contents of +an folderish type. +You can limit the types, which can be added to FolderishTypes by providing +a Generic Setup import type configuration. +The reason for this package is, that in my experience it's easier to group +related content together at one place. An article about something fancy might +have an image gallery associated with it as well as some pdf-downloads. With +this package you can put everything inside the article. +Another use case is that you can structure content hierarchically and don't need +to define "default pages" - a concept hard to understand and handle (see: +https://sixfeetup.com/blog/plone-drupal-features ) +Alexander Limi also wished folderish content back in 2008: +"#10: Content re-use is overrated — people like folderish" +https://limi.net/things-plone + +%prep +%autosetup -n collective.folderishtypes-3.1 + +%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-collective.folderishtypes -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 3.1-1 +- Package Spec generated @@ -0,0 +1 @@ +58bd4a7b4969ce557f1ecd9ff88c9844 collective.folderishtypes-3.1.tar.gz |