]>
Commit | Line | Data |
---|---|---|
7d49b7ae | 1 | # |
2 | # Conditional builds: | |
7d49b7ae | 3 | # |
3c101dfa JB |
4 | Summary: Simple PIM application |
5 | Summary(pl.UTF-8): Prosta aplikacja PIM (do zarządzania informacjami osobistymi) | |
8a13d8ee | 6 | Name: osmo |
293e12bf KM |
7 | Version: 0.4.4 |
8 | Release: 1 | |
3c101dfa JB |
9 | License: GPL v2+ |
10 | Group: X11/Applications | |
38ca71fe | 11 | Source0: http://downloads.sourceforge.net/osmo-pim/%{name}-%{version}.tar.gz |
293e12bf | 12 | # Source0-md5: 4a22d229c57c12899520edecd73e6bb9 |
8ba9a2c9 | 13 | Patch0: %{name}-datadir.patch |
38ca71fe | 14 | URL: http://clayo.org/osmo/ |
8ba9a2c9 | 15 | BuildRequires: autoconf |
16 | BuildRequires: automake | |
53e599eb | 17 | BuildRequires: gettext-tools |
293e12bf KM |
18 | BuildRequires: gspell-devel >= 1.2.0 |
19 | BuildRequires: gtk+3-devel >= 3.10.0 | |
20 | BuildRequires: gtk-webkit4-devel >= 2.8.0 | |
21 | BuildRequires: libarchive-devel >= 3.0.0 | |
af79908e TP |
22 | BuildRequires: libgringotts-devel >= 1.2.1 |
23 | BuildRequires: libical-devel >= 0.27 | |
293e12bf | 24 | BuildRequires: libnotify-devel >= 0.7.0 |
3c101dfa JB |
25 | BuildRequires: libxml2-devel >= 2.0 |
26 | BuildRequires: pkgconfig | |
b14660b6 KM |
27 | Requires(post,postun): gtk-update-icon-cache |
28 | Requires(post,postun): hicolor-icon-theme | |
8a13d8ee | 29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
31 | %description | |
32 | Osmo is a handy personal organizer which includes calendar, tasks | |
33 | manager and address book modules. It was designed to be a small, easy | |
34 | to use and good looking PIM tool to help to manage personal | |
35 | information. 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 |
42 | Osmo to podręczny osobisty organizer, zawierający moduły kalendarza, | |
43 | zarządzania zadaniami i książki adresowej. Został zaprojektowany jako | |
44 | małe, łatwe w użyciu i dobrze wyglądające narzędzie PIM, mające pomóc | |
45 | w zarządzaniu informacjami osobistymi. W aktualnym stanie rozwoju | |
46 | organizer jest w miarę wygodny w użyciu - na przykład można wykonywać | |
47 | prawie wszystkie operacje z klawiatury. Ponadto większość parametrów | |
48 | jest konfigurowalna zgodnie z upodobaniami użytkownika. Od strony | |
49 | technicznej Osmo jest aplikacją opartą na GTK+, wykorzystującą do | |
50 | przechowywania 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 | |
65 | rm -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 | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
293e12bf | 78 | %post |
b14660b6 | 79 | %update_icon_cache hicolor |
293e12bf KM |
80 | %banner %{name} -e << EOF |
81 | ||
82 | Since version 0.4.0 Osmo uses XDG Base Directory Specification | |
83 | (http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html) | |
84 | for storing configuration and data files. | |
85 | ||
86 | The files are stored in locations indicated by XDG_CONFIG_HOME and | |
87 | XDG_DATA_HOME environmental variables. Typically, these variables are set | |
88 | to \$HOME/.config/osmo and \$HOME/.local/share/osmo directories. | |
89 | ||
90 | In order to run Osmo with other setup, these variables have to be | |
91 | adjusted - e.g. (for BASH shell): | |
92 | ||
93 | export XDG_CONFIG_HOME="path/to/osmo/config" | |
94 | export XDG_DATA_HOME="path/to/osmo/data" | |
95 | ||
96 | EOF | |
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* |