From Fedora Project Wiki
(Fix spaces/tabs) |
(Remove things that people should write for themselves) |
||
Line 12: | Line 12: | ||
Version: 0.1.3 | Version: 0.1.3 | ||
Release: 1%{?dist} | Release: 1%{?dist} | ||
Summary: | Summary: | ||
Group: Applications/Publishing | Group: Applications/Publishing | ||
License: GPLv2 | License: GPLv2 | ||
URL: | # Use top-level URL from Zikula site for the module | ||
URL: | |||
# For Source0, use the exact link for the tagged release of the module on Zikula Trac | |||
# http://code.zikula.org/crptag/changeset/114/tags/crpTag_0.1.3?old_path=%2F&format=zip | # http://code.zikula.org/crptag/changeset/114/tags/crpTag_0.1.3?old_path=%2F&format=zip | ||
Source0: %{zikula_modname}_%{version}.zip | Source0: %{zikula_modname}_%{version}.zip | ||
Line 25: | Line 27: | ||
%description | %description | ||
Line 55: | Line 57: | ||
%changelog | %changelog | ||
</pre> | </pre> |
Latest revision as of 19:45, 14 June 2009
The following template can be used to create new Zikula module packages. Substitute the name for the Zikula module, in the correct case as used throughout the Zikula web site, where you see <<<YOUR_MODULE_NAME>>>
.
Template
%global zikula_base %{_datadir}/zikula %global zikula_moddir %{zikula_base}/modules %global zikula_modname crpTag Name: zikula-module-%{zikula_modname} Version: 0.1.3 Release: 1%{?dist} Summary: Group: Applications/Publishing License: GPLv2 # Use top-level URL from Zikula site for the module URL: # For Source0, use the exact link for the tagged release of the module on Zikula Trac # http://code.zikula.org/crptag/changeset/114/tags/crpTag_0.1.3?old_path=%2F&format=zip Source0: %{zikula_modname}_%{version}.zip BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch #BuildRequires: Requires: zikula %description %prep %setup -qn tags/%{zikula_modname}_%{version} # Remove empty index.html and others find -size 0 | xargs rm -f %build %install rm -rf $RPM_BUILD_ROOT %{__mkdir} -p $RPM_BUILD_ROOT/%{zikula_moddir}/%{zikula_modname} cp -pr . $RPM_BUILD_ROOT/%{zikula_moddir}/%{zikula_modname} rm -rf $RPM_BUILD_ROOT/%{zikula_moddir}/%{zikula_modname}/pndocs %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc pndocs/changelog.txt pndocs/license.txt pndocs/credits.txt %{zikula_moddir}/%{zikula_modname} %changelog