forked from pool/python-icalendar
- updated to forked version 2.2 OBS-URL: https://build.opensuse.org/request/show/79958 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-icalendar?expand=0&rev=4
86 lines
2.2 KiB
RPMSpec
86 lines
2.2 KiB
RPMSpec
#
|
|
# spec file for package python-csvkit
|
|
#
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
# Packaged by: <saigkill@opensuse.org>
|
|
# Copyright (c) 2011 LISA GmbH, Bingen, Germany.
|
|
#
|
|
# This file and all modifications and additions to the pristine
|
|
# package are under the same license as the package itself.
|
|
#
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# # norootforbuild
|
|
%define module icalendar
|
|
%define gitid 4d52777
|
|
%define tarname collective-%{module}-%{gitid}
|
|
|
|
Name: python-%{module}
|
|
Version: 2.2
|
|
Release: 1
|
|
Summary: Python parser/generator of iCalendar files package
|
|
Group: Development/Languages/Python
|
|
License: LGPL
|
|
URL: https://github.com/collective/icalendar
|
|
AutoReqProv: on
|
|
Source0: %{tarname}.tar.bz2
|
|
Source100: %{name}-rpmlintrc
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
|
BuildRequires: python-distribute python-Sphinx fdupes
|
|
%{py_requires}
|
|
%if 0%{?suse_version} >= 1120
|
|
BuildArch: noarch
|
|
%endif
|
|
|
|
%description
|
|
The iCalendar package is a parser/generator of iCalendar files for use
|
|
with Python. It follows the RFC 2445 (iCalendar) specification.
|
|
|
|
%package doc
|
|
Summary: Python parser/generator of iCalendar files package
|
|
Group: Development/Languages/Python
|
|
Requires: %{name} = %{version}
|
|
|
|
%description doc
|
|
Documentation for package {name}, a python parser/generator of iCalendar files
|
|
package.
|
|
|
|
%prep
|
|
%setup -q -n %{tarname}
|
|
|
|
%build
|
|
python setup.py build
|
|
pushd docs
|
|
make html
|
|
rm -rf _build/html/.buildinfo
|
|
mv _build/html ../
|
|
popd
|
|
|
|
%install
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES
|
|
mkdir -p %{buildroot}/%{_defaultdocdir}/%{name}
|
|
install -m644 *.txt README.rst %{buildroot}/%{_defaultdocdir}/%{name}/
|
|
cp -r html %{buildroot}/%{_defaultdocdir}/%{name}/
|
|
%fdupes -s %{buildroot}/%{_defaultdocdir}/%{name}
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files -f INSTALLED_FILES
|
|
%defattr(-,root,root)
|
|
%defattr(-, root, root)
|
|
%dir %{_defaultdocdir}/%{name}
|
|
%{_defaultdocdir}/%{name}/CREDITS.txt
|
|
%{_defaultdocdir}/%{name}/README.rst
|
|
|
|
%files doc
|
|
%defattr(-, root, root)
|
|
%{_defaultdocdir}/%{name}/CHANGES.txt
|
|
%{_defaultdocdir}/%{name}/HISTORY.txt
|
|
%{_defaultdocdir}/%{name}/INSTALL.txt
|
|
%{_defaultdocdir}/%{name}/TODO.txt
|
|
%{_defaultdocdir}/%{name}/html
|
|
|
|
%changelog
|