Files
perl-Data-ICal/perl-Data-ICal.spec

118 lines
3.2 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Data-ICal
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
Name: perl-Data-ICal
%define real_name Data-ICal
Summary: Generates iCalendar (RFC 2445) calendar files
Url: http://search.cpan.org/perldoc?Data::ICal
Group: Development/Libraries/Perl
License: Artistic License
Version: 0.15
Release: 0
Source: %{real_name}-%{version}.tar.bz2
BuildRequires: perl-Array-Compare
BuildRequires: perl-Test-Pod-Coverage
BuildRequires: perl-Class-Accessor
BuildRequires: perl-Class-ReturnValue
BuildRequires: perl-Test-Simple
BuildRequires: perl-Test-Warn
BuildRequires: perl-Test-LongString
BuildRequires: perl-Test-NoWarnings
BuildRequires: perl-Text-vFile-asData
%{perl_requires}
Requires: perl-Array-Compare
Requires: perl-Class-Accessor
Requires: perl-Text-vFile-asData
Requires: perl-Class-ReturnValue
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A Data::ICal object represents a VCALENDAR object as defined in the iCalendar
protocol (RFC 2445, MIME type "text/calendar"), as implemented in many popular
calendaring programs such as Apple's iCal.
Each Data::ICal object is a collection of "entries", which are objects of a
subclass of Data::ICal::Entry. The types of entries defined by iCalendar (which
refers to them as "components") include events, to-do items, journal entries,
free/busy time indicators, and time zone descriptors; in addition, events and
to-do items can contain alarm entries. (Currently, Data::ICal only implements
to-do items and events.)
Data::ICal is a subclass of Data::ICal::Entry; see its manpage for more methods
applicable to Data::ICal.
Author:
-------
Jesse Vincent
David Glasser
Simon Wistow
%package doc
Summary: Documentation and examples for the main package
Requires: %name = %version
Group: Documentation
%description doc
This package contains additional documentation (rfc2445) and an example script
for the main package.
Author:
-------
Jesse Vincent
David Glasser
Simon Wistow
%prep
%setup -n %{real_name}-%{version}
%build
perl Makefile.PL
make %{?jobs:-j%jobs}
%check
make test
%install
%perl_make_install
%perl_process_packlist
mkdir -p %{buildroot}/%{_defaultdocdir}/%{name}
cp -r README Changes MANIFEST doc examples %{buildroot}/%{_defaultdocdir}/%{name}/
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root)
%doc %{_defaultdocdir}/%{name}
%exclude %{_defaultdocdir}/%{name}/examples
%exclude %{_defaultdocdir}/%{name}/doc
%doc %{_mandir}/man?/*
%dir %{perl_vendorlib}/Data
%dir %{perl_vendorlib}/Data/ICal
%dir %{perl_vendorlib}/Data/ICal/Entry
%dir %{perl_vendorlib}/Data/ICal/Entry/Alarm
%dir %{perl_vendorlib}/Data/ICal/Entry/TimeZone
%dir %{perl_vendorarch}/auto/Data
%dir %{perl_vendorarch}/auto/Data/ICal
%{perl_vendorlib}/Data/*.pm
%{perl_vendorlib}/Data/ICal/*.pm
%{perl_vendorlib}/Data/ICal/Entry/*.pm
%{perl_vendorlib}/Data/ICal/Entry/Alarm/*.pm
%{perl_vendorlib}/Data/ICal/Entry/TimeZone/*.pm
%files doc
%defattr(-, root, root)
%doc %{_defaultdocdir}/%{name}/examples
%doc %{_defaultdocdir}/%{name}/doc
%changelog