forked from pool/python-icalendar
- removed rpmlintrc OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-icalendar?expand=0&rev=5
88 lines
2.6 KiB
RPMSpec
88 lines
2.6 KiB
RPMSpec
#
|
|
# Copyright (c) 7/2011 - now open-slx GmbH <Sascha.Manns@open-slx.de>
|
|
# Copyright (c) 2009 - 7/2011 Sascha Manns <saigkill@opensuse.org>
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# 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
|