15c4ae0
%global gtk3_version 3.12.2
15c4ae0
2e79784
Name:           california
ae5662d
Version:        0.4.0
9ec9990
Release:        10%{?dist}
2e79784
Summary:        Calendar application
2e79784
2e79784
License:        LGPLv2+
2e79784
URL:            https://wiki.gnome.org/Apps/California
ae5662d
Source0:        https://download.gnome.org/sources/california/0.4/california-%{version}.tar.xz
8afd96d
c00bf99
Patch1:         0002-Build-with-evolution-data-server-3.13.90.patch
2e79784
2e79784
BuildRequires:  desktop-file-utils
2e79784
BuildRequires:  intltool
3725a50
BuildRequires:  itstool
2e79784
BuildRequires:  pkgconfig(gee-0.8)
2e79784
BuildRequires:  pkgconfig(glib-2.0)
2e79784
BuildRequires:  pkgconfig(goa-1.0)
2e79784
BuildRequires:  pkgconfig(gobject-2.0)
8afd96d
BuildRequires:  pkgconfig(gobject-introspection-1.0)
15c4ae0
BuildRequires:  pkgconfig(gtk+-3.0) >= %{gtk3_version}
2e79784
BuildRequires:  pkgconfig(libecal-1.2)
2e79784
BuildRequires:  pkgconfig(libgdata)
2e79784
BuildRequires:  pkgconfig(libsoup-2.4)
2e79784
BuildRequires:  vala
c00bf99
BuildRequires:  xdg-utils
2e79784
15c4ae0
Requires:       gtk3%{?_isa} >= %{gtk3_version}
15c4ae0
2e79784
%description
2e79784
California is a calendar built for GNOME 3. It allows you to view and
2e79784
manage your online calendars with a simple and modern interface.
2e79784
2e79784
%prep
2e79784
%setup -q
c00bf99
%patch1 -p1
2e79784
2e79784
%build
2e79784
%configure
2e79784
make %{?_smp_mflags}
2e79784
2e79784
%install
2e79784
%make_install
2e79784
2e79784
# Remove wrongly placed documentation; we use the %%doc macro instead.
2e79784
rm -rf $RPM_BUILD_ROOT%{_prefix}/doc
2e79784
8afd96d
%find_lang california --with-gnome
2e79784
2e79784
%check
2e79784
desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/california.desktop
2e79784
2e79784
%post
2e79784
update-desktop-database &> /dev/null || :
2e79784
2e79784
%postun
2e79784
update-desktop-database &> /dev/null || :
465b9b2
if [ $1 -eq 0 ] ; then
465b9b2
    glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
465b9b2
fi
465b9b2
465b9b2
%posttrans
465b9b2
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
2e79784
2e79784
%files -f california.lang
0917474
%license COPYING
0917474
%doc AUTHORS NEWS README
2e79784
%{_bindir}/california
e3aee67
%{_datadir}/appdata/california.appdata.xml
2e79784
%{_datadir}/applications/california.desktop
8afd96d
%{_datadir}/california/
465b9b2
%{_datadir}/glib-2.0/schemas/org.yorba.california.gschema.xml
2e79784
2e79784
%changelog
9ec9990
* Mon Jul 18 2016 Milan Crha <mcrha@redhat.com> - 0.4.0-10
9ec9990
- Rebuild for newer evolution-data-server
9ec9990
6d8bad0
* Tue Jun 21 2016 Milan Crha <mcrha@redhat.com> - 0.4.0-9
6d8bad0
- Rebuild for newer evolution-data-server
6d8bad0
37e41f1
* Fri Apr 15 2016 David Tardon <dtardon@redhat.com> - 0.4.0-8
37e41f1
- rebuild for ICU 57.1
37e41f1
0266f47
* Tue Feb 16 2016 Milan Crha <mcrha@redhat.com> - 0.4.0-7
0266f47
- Rebuild for newer evolution-data-server
0266f47
8714901
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-6
8714901
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8714901
b0b1037
* Mon Jan 18 2016 David Tardon <dtardon@redhat.com> - 0.4.0-5
b0b1037
- rebuild for libical 2.0.0
b0b1037
20bcaac
* Wed Jul 22 2015 Milan Crha <mcrha@redhat.com> - 0.4.0-4
20bcaac
- Rebuild for newer evolution-data-server
20bcaac
ec4bf66
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-3
ec4bf66
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ec4bf66
758c1f8
* Tue Apr 28 2015 Milan Crha <mcrha@redhat.com> - 0.4.0-2
758c1f8
- Rebuild for newer evolution-data-server
758c1f8
ae5662d
* Tue Mar 24 2015 Kalev Lember <kalevlember@gmail.com> - 0.4.0-1
ae5662d
- Update to 0.4.0
0917474
- Use licence macro for the COPYING file
ae5662d
c00bf99
* Mon Feb 23 2015 Milan Crha <mcrha@redhat.com> - 0.3.1-1
c00bf99
- Update to 0.3.1
c00bf99
- Add patch to build with current evolution-data-server
c00bf99
8afd96d
* Wed Oct 01 2014 Kalev Lember <kalevlember@gmail.com> - 0.2.0-1
8afd96d
- Update to 0.2.0
15c4ae0
- Set minimum required gtk3 version
8afd96d
78a905f
* Tue Sep 23 2014 Kalev Lember <kalevlember@gmail.com> - 0.1.4-2
78a905f
- Rebuilt for libcamel soname bump
78a905f
778ae4a
* Wed Aug 20 2014 Kalev Lember <kalevlember@gmail.com> - 0.1.4-1
778ae4a
- Update to 0.1.4
778ae4a
8ffd63c
* Sat Aug 16 2014 Kalev Lember <kalevlember@gmail.com> - 0.1.3-1
8ffd63c
- Update to 0.1.3
8ffd63c
e657782
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.2-3
e657782
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
e657782
17c6b25
* Fri Aug 01 2014 Kalev Lember <kalevlember@gmail.com> - 0.1.2-2
17c6b25
- Rebuilt for evolution-data-server soname bump
17c6b25
b9e9916
* Sat Jul 19 2014 Kalev Lember <kalevlember@gmail.com> - 0.1.2-1
b9e9916
- Update to 0.1.2
465b9b2
- Ship gsettings schema and add required rpm scriptlets
b9e9916
c352fd5
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-2
c352fd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c352fd5
e3aee67
* Sat May 24 2014 Kalev Lember <kalevlember@gmail.com> - 0.1.1-1
e3aee67
- Update to 0.1.1
e3aee67
2e79784
* Fri May 02 2014 Kalev Lember <kalevlember@gmail.com> - 0.1.0-2
2e79784
- Add rpm scripts to run update-desktop-database (#1093499)
2e79784
2e79784
* Fri May 02 2014 Kalev Lember <kalevlember@gmail.com> - 0.1.0-1
2e79784
- Initial Fedora packaging