Name: perl-RTx-Calendar Version: 0.07 Release: 5%{?dist} Summary: Calendar for RT due tasks Group: Development/Libraries License: GPL+ or Artistic URL: http://search.cpan.org/dist/RTx-Calendar Source0: http://search.cpan.org/CPAN/authors/id/N/NC/NCHUCHE/RTx-Calendar-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: rt3 BuildRequires: perl(Data::ICal) BuildRequires: perl(Date::ICal) BuildRequires: perl(DateTime) BuildRequires: perl(DateTime::Set) BuildRequires: perl(Module::Install::RTx) Requires: perl(Data::ICal) Requires: perl(Date::ICal) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description This RT extension provides a calendar view for your tickets and your reminders so you see when is your next due ticket. You can find it in the menu Search->Calendar. There's a portlet to put on your home page (see Prefs/MyRT.html). You can also enable ics (ICal) feeds for your default calendar and all your private searches in Prefs/Calendar.html. Authentication is magic number based so that you can give those feeds to other people. You can find screenshots on http://gaspard.mine.nu/dotclear/index.php?tag/rtx-calendar %prep %setup -q -n RTx-Calendar-%{version} # Remove Module::Install::RTx bundled copy rm -rf inc/* # Tweak RT.pm to install the extension files at the proper location : sed -e "s!^\$LocalPath = .*!\$LocalPath = '%{perl_vendorlib}';!" \ %{perl_vendorlib}/RT.pm > ./RT.pm %build RTHOME="." %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT make install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';' chmod -R u+w $RPM_BUILD_ROOT/* # This file is installed twice, probably a bug in Module::Install::RTx rm $RPM_BUILD_ROOT%{perl_vendorlib}/lib/RTx/Calendar.pm # Remove useless files rm $RPM_BUILD_ROOT%{_mandir}/man3/RTx::RT.3pm* rm $RPM_BUILD_ROOT%{perl_vendorlib}/RTx/RT.pm %check # The tests don't work: # - Require to be run as root # - Require an operational rt3 system %{?_with_tests:make test} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc ChangeLog CHANGES README TODO %{perl_vendorlib}/RTx %{_datadir}/rt3/html/Callbacks/RTx-Calendar %{_datadir}/rt3/html/Elements/* %{_datadir}/rt3/html/NoAuth/Calendar/dhandler %{_datadir}/rt3/html/NoAuth/css/calendar.css %{_datadir}/rt3/html/NoAuth/images/* %{_datadir}/rt3/html/Prefs/Calendar.html %{_datadir}/rt3/html/Prefs/Elements/CalendarFeed %{_datadir}/rt3/html/Search/Calendar.html %{_mandir}/man3/RTx::Calendar.3pm.gz %changelog * Tue Dec 15 2009 Xavier Bachelot - 0.07-5 - Clean up installed files. * Tue Dec 15 2009 Xavier Bachelot - 0.07-4 - Remove Module::Install and Module::Install::RTx bundled copies. * Thu Dec 10 2009 Xavier Bachelot - 0.07-3 - Install extension to the proper location. * Tue Mar 17 2009 Xavier Bachelot - 0.07-2 - Fix %%files section. * Tue Mar 17 2009 Xavier Bachelot - 0.07-1 - Update to 0.07. - Add explicit require on perl(Data::ICal) and perl(Date::ICal). * Thu Jan 08 2008 Xavier Bachelot - 0.06-1 - Initial build.