ddef33a
%global edataserver_version 3.17.1
ddef33a
%global libical_version 1.0-9
ddef33a
2520553
Name:           gnome-calendar
f194d7d
Version:        3.17.90
87be78c
Release:        1%{?dist}
2520553
Summary:        Simple and beautiful calendar application designed to fit GNOME 3
2520553
2520553
License:        GPLv3+
2520553
URL:            https://wiki.gnome.org/Apps/Calendar
2520553
a7682f9
Source0:        https://download.gnome.org/sources/%{name}/3.17/%{name}-%{version}.tar.xz
2520553
2520553
BuildRequires:  intltool
2520553
BuildRequires:  pkgconfig(gio-2.0)
2520553
BuildRequires:  pkgconfig(glib-2.0)
2520553
BuildRequires:  pkgconfig(gtk+-3.0)
2520553
BuildRequires:  pkgconfig(libecal-1.2)
ddef33a
BuildRequires:  pkgconfig(libedataserver-1.2) >= %{edataserver_version}
88a8b30
BuildRequires:  pkgconfig(libical) >= %{libical_version}
2520553
BuildRequires:  /usr/bin/appstream-util
2520553
BuildRequires:  desktop-file-utils
2520553
2520553
# no `icaltime_days_in_year` before
ddef33a
Requires:       evolution-data-server%{?_isa} >= %{edataserver_version}
ddef33a
Requires:       libical%{?_isa} >= %{libical_version}
2520553
2520553
%description
2520553
Calendar is a simple and beautiful calendar application designed to fit
2520553
GNOME 3.
2520553
Features:
2520553
* Week, month and year views
2520553
* Basic editing of events
2520553
* Evolution Data Server integration
2520553
* Search support
2520553
2520553
%prep
2520553
%setup -q
2520553
2520553
%build
2520553
%configure
2520553
make %{?_smp_mflags}
2520553
2520553
%install
2520553
%make_install
2520553
%{find_lang} %{name}
2520553
2520553
%check
2520553
desktop-file-validate %{buildroot}%{_datadir}/applications/org.gnome.Calendar.desktop
2520553
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/org.gnome.Calendar.appdata.xml
2520553
2520553
%post
2520553
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
2520553
/usr/bin/update-desktop-database &> /dev/null || :
2520553
2520553
%postun
2520553
if [ $1 -eq 0 ] ; then
2520553
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
018201f
    glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
2520553
    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
2520553
    /usr/bin/update-desktop-database &> /dev/null || :
2520553
fi
2520553
2520553
%posttrans
2520553
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
3504475
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
2520553
2520553
%files -f %{name}.lang
91593c0
%doc NEWS README
13bfa01
%license COPYING
2520553
%{_bindir}/%{name}
2520553
%{_datadir}/applications/org.gnome.Calendar.desktop
2520553
%{_datadir}/dbus-1/services/org.gnome.Calendar.service
2520553
%{_datadir}/icons/hicolor/*/apps/%{name}.png
2520553
%{_datadir}/appdata/org.gnome.Calendar.appdata.xml
018201f
%{_datadir}/glib-2.0/schemas/org.gnome.calendar.enums.xml
018201f
%{_datadir}/glib-2.0/schemas/org.gnome.calendar.gschema.xml
018201f
# co-own these directories
018201f
%dir %{_datadir}/gnome-shell
018201f
%dir %{_datadir}/gnome-shell/search-providers
018201f
%{_datadir}/gnome-shell/search-providers/org.gnome.Calendar.search-provider.ini
2520553
2520553
%changelog
f194d7d
* Wed Aug 19 2015 Kalev Lember <klember@redhat.com> - 3.17.90-1
f194d7d
- Update to 3.17.90
f194d7d
3294268
* Mon Jul 20 2015 David King <amigadave@amigadave.com> - 3.17.4-1
3294268
- Update to 3.17.4
3294268
87be78c
* Tue Jun 23 2015 David King <amigadave@amigadave.com> - 3.17.3-1
87be78c
- Update to 3.17.3
88a8b30
- Use pkgconfig for BuildRequires
87be78c
70b74a6
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.17.2-2
70b74a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
70b74a6
a7682f9
* Sun May 31 2015 Kalev Lember <kalevlember@gmail.com> - 3.17.2-1
a7682f9
- Update to 3.17.2
a7682f9
e04a822
* Tue May 12 2015 Kalev Lember <kalevlember@gmail.com> - 3.16.2-1
e04a822
- Update to 3.16.2
e04a822
b522b38
* Tue Apr 28 2015 Milan Crha <mcrha@redhat.com> - 3.16.1-2
b522b38
- Rebuild for newer evolution-data-server
b522b38
858bae4
* Thu Apr 16 2015 Kalev Lember <kalevlember@gmail.com> - 3.16.1-1
858bae4
- Update to 3.16.1
858bae4
4f267b6
* Fri Mar 20 2015 Kalev Lember <kalevlember@gmail.com> - 3.16.0-1
4f267b6
- Update to 3.16.0
4f267b6
84cc168
* Tue Mar 17 2015 Kalev Lember <kalevlember@gmail.com> - 3.15.92-1
84cc168
- Update to 3.15.92
84cc168
f8cbc57
* Tue Mar 03 2015 Kalev Lember <kalevlember@gmail.com> - 3.15.91-1
f8cbc57
- Update to 3.15.91
91593c0
- Drop large ChangeLog file from docs
f8cbc57
3504475
* Tue Feb 17 2015 David King <amigadave@amigadave.com> - 3.15.90-2
3504475
- Add missing colon after glib-compile-schemas
3504475
018201f
* Tue Feb 17 2015 David King <amigadave@amigadave.com> - 3.15.90-1
018201f
- Update to 3.15.90
13bfa01
- Use license macro for COPYING
018201f
2520553
* Sun Jan 25 2015 Igor Gnatenko <ignatenko@src.gnome.org> - 3.15.4.1-2
2520553
- Add check section
2520553
- Add hook for mime entry
2520553
2520553
* Sat Jan 24 2015 Igor Gnatenko <ignatenko@src.gnome.org> - 3.15.4.1-1
2520553
- 3.15.4.1
2520553
2520553
* Wed Jan 21 2015 Igor Gnatenko <ignatenko@src.gnome.org> - 3.15.4-1
2520553
- 3.15.4
2520553
2520553
* Fri Jan 02 2015 Igor Gnatenko <ignatenko@src.gnome.org> - 3.15.3.1-1
2520553
- Initial package