Christopher Meng fda9c56
%global include_holidayparser  0
Krzysztof Kurzawski b573d60
%{?_with_holidayparser: %{expand: %%global include_holidayparser 1}}
Krzysztof Kurzawski b573d60
Krzysztof Kurzawski b573d60
Name:           dayplanner
Christopher Meng fda9c56
Version:        0.11
a30cca7
Release:        5%{?dist}
Krzysztof Kurzawski b573d60
Summary:        An easy and clean Day Planner
Krzysztof Kurzawski b573d60
Summary(pl):    Prosty i elegancki organizer
cf8bbfb
Summary(de):    Ein einfacher und klarer Tagesplaner
Krzysztof Kurzawski b573d60
License:        GPLv3+
Christopher Meng fda9c56
URL:            http://www.day-planner.org
Christopher Meng fda9c56
Source0:        https://github.com/downloads/zerodogg/%{name}/%{name}-%{version}.tar.bz2
Krzysztof Kurzawski b573d60
BuildArch:      noarch
Krzysztof Kurzawski b573d60
BuildRequires:  gettext desktop-file-utils perl
31abbf4
BuildRequires:  perl(Locale::gettext)
fa87366
%if 0%{?fedora} && 0%{?fedora} >= 19
Christopher Meng fda9c56
BuildRequires:  perl-autodie
ead3532
BuildRequires:  perl-generators
fa87366
%endif
Krzysztof Kurzawski b573d60
Requires:       hicolor-icon-theme
cf8bbfb
Requires:       perl(Locale::gettext)
Krzysztof Kurzawski b573d60
Krzysztof Kurzawski b573d60
%description
Krzysztof Kurzawski b573d60
Day Planner is a simple time management program.
Krzysztof Kurzawski b573d60
Krzysztof Kurzawski b573d60
Day Planner is designed to help you easily manage your time.
Krzysztof Kurzawski b573d60
It can manage appointments, birthdays and more. It makes sure you
Krzysztof Kurzawski b573d60
remember your appointments by popping up a dialog box reminding you about it.
Krzysztof Kurzawski b573d60
Krzysztof Kurzawski b573d60
%description -l pl
Krzysztof Kurzawski b573d60
Day Planner is a prosty program do zarządzania czasem.
Krzysztof Kurzawski b573d60
Krzysztof Kurzawski b573d60
Day Planner jest zaprojektowany aby pomóc Tobie łatwo zarządzać Twoim czasem.
Krzysztof Kurzawski b573d60
Może zarządzać spotkaniami, urodzinami i innymi. Możesz być pewnym że będziesz
Krzysztof Kurzawski b573d60
pamiętał o spotkaniach przez wyskakujące okna dialogowe przypominające o nich.
Krzysztof Kurzawski b573d60
cf8bbfb
%description -l de
3f126d7
Day Planner ist ein einfaches Zeitverwaltungsprogram.
3f126d7
3f126d7
Day Planner hilft Ihnen, Ihre Termine einfach zu verwalten. Es kann Termine, 
3f126d7
Geburtstage und vieles mehr speichern. Um sicherzustellen, dass Sie keine 
3f126d7
Termine verpassen, erinnert Sie Day Planner mit einem Dialogfenster daran.
cf8bbfb
Krzysztof Kurzawski b573d60
%prep
Krzysztof Kurzawski b573d60
%setup -q
Krzysztof Kurzawski b573d60
9194f65
# filter out all unwanted perl related Requires and Provides
9194f65
cat << \EOF > %{name}-prov
9194f65
#!/bin/sh
9194f65
%{__perl_provides} $* |\
9194f65
sed -e '/perl(DP::.*)/d' |\
9194f65
sed -e '/perl(Date::HolidayParser)/d'
9194f65
EOF
9194f65
Christopher Meng a8d2674
%global __perl_provides %{_builddir}/%{name}-%{version}/%{name}-prov
9194f65
chmod +x %{__perl_provides}
9194f65
ac191f1
cat << \EOF > %{name}-req
ac191f1
#!/bin/sh
ac191f1
%{__perl_requires} $* |\
9194f65
sed -e '/perl(DP::.*)/d' |\
9194f65
sed -e '/perl(Date::HolidayParser)/d'
ac191f1
EOF
ac191f1
Christopher Meng a8d2674
%global __perl_requires %{_builddir}/%{name}-%{version}/%{name}-req
Christopher Meng fda9c56
chmod +x %{__perl_requires}	
Krzysztof Kurzawski b573d60
Krzysztof Kurzawski b573d60
%build
Krzysztof Kurzawski b573d60
# nothing to build
Krzysztof Kurzawski b573d60
Krzysztof Kurzawski b573d60
%install
Krzysztof Kurzawski b573d60
%if include_holidayparser
Christopher Meng a8d2674
make install DESTDIR=%{buildroot} prefix=%{_prefix}
Krzysztof Kurzawski b573d60
%else
Christopher Meng fda9c56
make install DESTDIR=%{buildroot} prefix=%{_prefix}
Krzysztof Kurzawski b573d60
%endif
Krzysztof Kurzawski b573d60
Krzysztof Kurzawski b573d60
# Install hicolor icons
Krzysztof Kurzawski b573d60
for size in 16 24 32 48; do
Christopher Meng fda9c56
  mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps
Christopher Meng fda9c56
  install -pm644 art/%{name}-${size}x${size}.png %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps/%{name}.png
Krzysztof Kurzawski b573d60
done
Krzysztof Kurzawski b573d60
Christopher Meng fda9c56
rm -f %{buildroot}%{_datadir}/applications/%{name}.desktop
Christopher Meng fda9c56
rm -f %{buildroot}%{_datadir}/pixmaps/%{name}.png
Krzysztof Kurzawski b573d60
Krzysztof Kurzawski b573d60
# Install desktop file
645a46c
desktop-file-install \
645a46c
%if 0%{?fedora} && 0%{?fedora} < 19
645a46c
  --vendor="fedora"                    \
645a46c
%endif
3f126d7
  --remove-category=X-MandrivaLinux-Office-TimeManagement \
Christopher Meng fda9c56
  --dir=%{buildroot}%{_datadir}/applications           \
3f126d7
  ./doc/%{name}.desktop
Krzysztof Kurzawski b573d60
Krzysztof Kurzawski b573d60
# Chmod
Christopher Meng fda9c56
find %{buildroot}%{_datadir}/%{name} -name \*.pm -exec chmod 0644 {} \;
Krzysztof Kurzawski b573d60
Krzysztof Kurzawski b573d60
# Find the localization
Krzysztof Kurzawski b573d60
%find_lang %{name}
Krzysztof Kurzawski b573d60
Krzysztof Kurzawski b573d60
%post
Christopher Meng fda9c56
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
Christopher Meng a8d2674
update-desktop-database &> /dev/null || :
3f126d7
Krzysztof Kurzawski b573d60
%postun
Christopher Meng fda9c56
if [ $1 -eq 0 ] ; then
Christopher Meng fda9c56
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
Christopher Meng fda9c56
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
Krzysztof Kurzawski b573d60
fi
Christopher Meng a8d2674
update-desktop-database &> /dev/null || :
3f126d7
Christopher Meng fda9c56
%posttrans
Christopher Meng fda9c56
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
Krzysztof Kurzawski b573d60
Krzysztof Kurzawski b573d60
%files -f dayplanner.lang
3f126d7
%doc AUTHORS COPYING NEWS THANKS TODO 
3f126d7
%doc ./doc/{*_Spec,EnvironmentVariables,HACKING,README.*,TESTCASES,TODO_DPS}
Christopher Meng fda9c56
%{_bindir}/%{name}*
Krzysztof Kurzawski b573d60
%{_datadir}/%{name}
645a46c
%if 0%{?fedora} && 0%{?fedora} < 19
645a46c
%{_datadir}/applications/fedora-%{name}.desktop
645a46c
%else
f97c2d9
%{_datadir}/applications/%{name}.desktop
645a46c
%endif
Krzysztof Kurzawski b573d60
%{_datadir}/icons/hicolor/*x*/apps/%{name}.png
Christopher Meng fda9c56
%{_mandir}/man1/dayplanner*.1*
Krzysztof Kurzawski b573d60
Krzysztof Kurzawski b573d60
%changelog
a30cca7
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-5
a30cca7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a30cca7
1b98482
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-4
1b98482
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
1b98482
96ae867
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-3
96ae867
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
96ae867
ca801e8
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-2
ca801e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ca801e8
Christopher Meng fda9c56
* Tue Sep 03 2013 Christopher Meng <rpm@cicku.me> - 0.11-1
Christopher Meng fda9c56
- New version.
Christopher Meng fda9c56
7a41d64
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-9
7a41d64
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
7a41d64
4755e6b
* Thu Jul 18 2013 Petr Pisar <ppisar@redhat.com> - 0.10-8
4755e6b
- Perl 5.18 rebuild
4755e6b
645a46c
* Mon Feb 18 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 0.10-7
645a46c
- Remove --vendor from desktop-file-install https://fedorahosted.org/fesco/ticket/1077
fa87366
- Fix build on F19
645a46c
ef79275
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-6
ef79275
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ef79275
95326f9
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-5
95326f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
95326f9
8dd417d
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-4
8dd417d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
8dd417d
034ac8a
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-3
034ac8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
034ac8a
1f105cf
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-2
1f105cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
1f105cf
3f126d7
* Thu Mar 26 2009 Christoph Wickert <cwickert@fedoraproject.org> - 0.10-1
3f126d7
- Update to 0.10
3f126d7
- Include new manpages
3f126d7
- Use upstream's desktop file
3f126d7
- Run update-desktop-database because we now have a mime type
3f126d7
3fd3fe1
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.2-2
3fd3fe1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
3fd3fe1
5be7060
* Fri Jan 16 2009 Rakesh Pandit <rakesh@fedoraproject.org> - 0.9.2-1
5be7060
- Updated to 0.9.2
5be7060
3f126d7
* Sat Jul 19 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.9.1-3
9194f65
- Filter out all dayplanner related Requires and Provides
9194f65
3f126d7
* Sat Jul 19 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.9.1-2
ac191f1
- Filter out unwanted Requires on perl(DP::CoreModules)
ac191f1
3f126d7
* Sat Jul 19 2008 Christoph Wickert <cwickert@fedoraproject.org> - 0.9.1-1
cf8bbfb
- Update to 0.9.1 to fix #446883
cf8bbfb
- Require perl(Locale::gettext)
cf8bbfb
- Add German descriptions
cf8bbfb
Krzysztof Kurzawski b573d60
* Tue Mar 04 2008 Krzysztof Kurzawski <kurzawax at gmail.com> - 0.8.1-3
Krzysztof Kurzawski b573d60
- Correct install section
Krzysztof Kurzawski b573d60
- Fix holiday_japan
Krzysztof Kurzawski b573d60
- Correct BR-s
Krzysztof Kurzawski b573d60
Krzysztof Kurzawski b573d60
* Mon Mar 03 2008 Krzysztof Kurzawski <kurzawax at gmail.com> - 0.8.1-2
Krzysztof Kurzawski b573d60
- Correct install section
Krzysztof Kurzawski b573d60
- Add holiday_japan
Krzysztof Kurzawski b573d60
Krzysztof Kurzawski b573d60
* Tue Feb 19 2008 Krzysztof Kurzawski <kurzawax at gmail.com> - 0.8.1-1
Krzysztof Kurzawski b573d60
- First release