]> git.pld-linux.org Git - packages/osmo.git/blame - osmo.spec
- update icons cache after (un)install
[packages/osmo.git] / osmo.spec
CommitLineData
7d49b7ae 1#
2# Conditional builds:
7d49b7ae 3#
3c101dfa
JB
4Summary: Simple PIM application
5Summary(pl.UTF-8): Prosta aplikacja PIM (do zarządzania informacjami osobistymi)
8a13d8ee 6Name: osmo
293e12bf
KM
7Version: 0.4.4
8Release: 1
3c101dfa
JB
9License: GPL v2+
10Group: X11/Applications
38ca71fe 11Source0: http://downloads.sourceforge.net/osmo-pim/%{name}-%{version}.tar.gz
293e12bf 12# Source0-md5: 4a22d229c57c12899520edecd73e6bb9
8ba9a2c9 13Patch0: %{name}-datadir.patch
38ca71fe 14URL: http://clayo.org/osmo/
8ba9a2c9 15BuildRequires: autoconf
16BuildRequires: automake
53e599eb 17BuildRequires: gettext-tools
293e12bf
KM
18BuildRequires: gspell-devel >= 1.2.0
19BuildRequires: gtk+3-devel >= 3.10.0
20BuildRequires: gtk-webkit4-devel >= 2.8.0
21BuildRequires: libarchive-devel >= 3.0.0
af79908e
TP
22BuildRequires: libgringotts-devel >= 1.2.1
23BuildRequires: libical-devel >= 0.27
293e12bf 24BuildRequires: libnotify-devel >= 0.7.0
3c101dfa
JB
25BuildRequires: libxml2-devel >= 2.0
26BuildRequires: pkgconfig
b14660b6
KM
27Requires(post,postun): gtk-update-icon-cache
28Requires(post,postun): hicolor-icon-theme
8a13d8ee 29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31%description
32Osmo is a handy personal organizer which includes calendar, tasks
33manager and address book modules. It was designed to be a small, easy
34to use and good looking PIM tool to help to manage personal
35information. In current state the organizer is quite convenient in use
36- for example, user can perform nearly all operations using keyboard.
293e12bf
KM
37 Also, a lot of parameters are configurable to meet user preferences.
38 On the technical side, Osmo is GTK+ based tool which use plain XML
39 database to store all personal data.
8a13d8ee 40
3c101dfa
JB
41%description -l pl.UTF-8
42Osmo to podręczny osobisty organizer, zawierający moduły kalendarza,
43zarządzania zadaniami i książki adresowej. Został zaprojektowany jako
44małe, łatwe w użyciu i dobrze wyglądające narzędzie PIM, mające pomóc
45w zarządzaniu informacjami osobistymi. W aktualnym stanie rozwoju
46organizer jest w miarę wygodny w użyciu - na przykład można wykonywać
47prawie wszystkie operacje z klawiatury. Ponadto większość parametrów
48jest konfigurowalna zgodnie z upodobaniami użytkownika. Od strony
49technicznej Osmo jest aplikacją opartą na GTK+, wykorzystującą do
50przechowywania danych bazę danych w czystym XML-u.
51
8a13d8ee 52%prep
53%setup -q
8ba9a2c9 54%patch0 -p1
8a13d8ee 55
56%build
8ba9a2c9 57%{__aclocal}
58%{__autoconf}
59%{__autoheader}
60%{__automake}
293e12bf 61%configure
8a13d8ee 62%{__make}
63
64%install
65rm -rf $RPM_BUILD_ROOT
66
67%{__make} install \
68 DESTDIR=$RPM_BUILD_ROOT
69
293e12bf
KM
70# unsupported locale
71%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{gl_ES,ur_PK}
72
8a13d8ee 73%find_lang %{name}
74
75%clean
76rm -rf $RPM_BUILD_ROOT
77
293e12bf 78%post
b14660b6 79%update_icon_cache hicolor
293e12bf
KM
80%banner %{name} -e << EOF
81
82Since version 0.4.0 Osmo uses XDG Base Directory Specification
83(http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html)
84for storing configuration and data files.
85
86The files are stored in locations indicated by XDG_CONFIG_HOME and
87XDG_DATA_HOME environmental variables. Typically, these variables are set
88to \$HOME/.config/osmo and \$HOME/.local/share/osmo directories.
89
90In order to run Osmo with other setup, these variables have to be
91adjusted - e.g. (for BASH shell):
92
93export XDG_CONFIG_HOME="path/to/osmo/config"
94export XDG_DATA_HOME="path/to/osmo/data"
95
96EOF
97
b14660b6
KM
98%postun
99%update_icon_cache hicolor
100
8a13d8ee 101%files -f %{name}.lang
102%defattr(644,root,root,755)
3c101dfa 103%doc AUTHORS ChangeLog README TRANSLATORS
8a13d8ee 104%attr(755,root,root) %{_bindir}/osmo
8ba9a2c9 105%{_datadir}/%{name}
293e12bf
KM
106%{_pixmapsdir}/osmo*.png
107%{_pixmapsdir}/moonphase_*.png
7d49b7ae 108%{_desktopdir}/osmo.desktop
293e12bf 109%{_iconsdir}/hicolor/*/actions/osmo*
38ca71fe 110%{_iconsdir}/hicolor/*/apps/osmo.*
7d49b7ae 111%{_mandir}/man1/osmo.1*
This page took 0.151053 seconds and 4 git commands to generate.