]>
Commit | Line | Data |
---|---|---|
c630abcc JB |
1 | Summary: A vi-like PDF reader |
2 | Summary(hu.UTF-8): Egy vi-szerű PDF olvasó | |
3 | Summary(pl.UTF-8): Czytnik PDF podobny do vi | |
dfc03c50 | 4 | Name: zathura |
6c61cd87 | 5 | Version: 0.5.6 |
5c64d25e | 6 | Release: 1 |
dfc03c50 | 7 | License: BSD-like |
975e5f20 | 8 | Group: Applications/Text |
6c61cd87 JP |
9 | Source0: https://pwmt.org/projects/zathura/download/%{name}-%{version}.tar.xz |
10 | # Source0-md5: ef8224b711aa5fa327ad604584e797fe | |
925a5534 | 11 | Source1: config.txt |
dfc03c50 | 12 | URL: http://pwmt.org/projects/zathura |
7f7492d4 | 13 | BuildRequires: cairo-devel |
372c92e7 | 14 | # C17 |
c428c9ae | 15 | BuildRequires: gcc >= 6:8.1 |
15768346 | 16 | BuildRequires: gettext-tools |
6c61cd87 JP |
17 | BuildRequires: girara-devel >= 0.4.3 |
18 | BuildRequires: glib2-devel >= 1:2.72.0 | |
19 | BuildRequires: gtk+3-devel >= 3.24 | |
b7b1f08f | 20 | BuildRequires: intltool |
c428c9ae | 21 | BuildRequires: json-glib-devel |
b7b1f08f | 22 | BuildRequires: libmagic-devel |
91c29a24 JB |
23 | # rsvg-convert for png icons |
24 | BuildRequires: librsvg | |
c428c9ae JP |
25 | BuildRequires: libseccomp-devel >= 2.5.5 |
26 | BuildRequires: linux-libc-headers >= 7:6.6.0 | |
27 | BuildRequires: meson >= 0.61 | |
7f7492d4 | 28 | BuildRequires: ninja |
279a1385 | 29 | BuildRequires: pkgconfig |
b7b1f08f | 30 | BuildRequires: python-docutils |
18bf563d | 31 | BuildRequires: rpm-build >= 4.6 |
247896b8 | 32 | BuildRequires: rpmbuild(macros) >= 1.736 |
758d5622 | 33 | BuildRequires: sphinx-pdg |
6c61cd87 | 34 | BuildRequires: sqlite3-devel >= 3.6.23 |
3cd750b7 | 35 | BuildRequires: synctex-devel >= 1.19 |
6c61cd87 JP |
36 | BuildRequires: tar >= 1:1.22 |
37 | BuildRequires: xz | |
d351d053 | 38 | Requires(post,postun): desktop-file-utils |
7f7492d4 | 39 | Requires(post,postun): gtk-update-icon-cache |
6c61cd87 JP |
40 | Requires: girara >= 0.4.3 |
41 | Requires: glib2 >= 1:2.72.0 | |
42 | Requires: gtk+3 >= 3.24 | |
7f7492d4 | 43 | Requires: hicolor-icon-theme |
c428c9ae | 44 | Requires: libseccomp >= 2.5.5 |
6c61cd87 | 45 | Requires: sqlite3-libs >= 3.6.23 |
3cd750b7 | 46 | Requires: synctex >= 1.19 |
65614859 | 47 | Suggests: zathura-pdf-poppler |
dfc03c50 | 48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
49 | ||
2f57504e | 50 | %define fishdir %{_datadir}/fish/vendor_completions.d |
04ba2203 | 51 | |
dfc03c50 | 52 | %description |
53 | zathura is a highly customizable and functional PDF viewer based on | |
c630abcc | 54 | the poppler rendering library and the GTK+ toolkit. The idea behind |
dfc03c50 | 55 | zathura is an application that provides a minimalistic and space |
56 | saving interface as well as an easy usage that mainly focuses on | |
57 | keyboard interaction. | |
58 | ||
925a5534 ZU |
59 | %description -l hu.UTF-8 |
60 | zathura egy magas szinten konfigurálható és funkcionális PDF olvasó a | |
c630abcc | 61 | poppler és GTK+ könyvtárako alapulva. A zathura célja, hogy egy olyan |
925a5534 ZU |
62 | alkalmazás legyen, amely minimalista és terület-takarékos felületet |
63 | biztosítson, amennyire lehet, és könnyen lehessen használni, főleg | |
64 | billentyűzet segítségével. | |
65 | ||
ed957218 | 66 | %description -l pl.UTF-8 |
c630abcc | 67 | zathura jest wysoko konfigurowalnym i funkcjonalnym czytnikiem PDF |
ed957218 | 68 | opartym na bibliotece renderującej poppler i zestawie narzędziowym |
c630abcc | 69 | GTK+. zathura jest aplikacją, która udostępnia minimalistyczny i nie |
ed957218 | 70 | zajmujący dużo miejsca interfejs, który jednocześnie jest prosty w |
71 | użyciu. Interfejs skupia się głównie na interakcji klawiaturowej. | |
72 | ||
65614859 JP |
73 | %package devel |
74 | Summary: Header files for zathura | |
c630abcc | 75 | Summary(pl.UTF-8): Pliki nagłówkowe aplikacji zathura |
65614859 | 76 | Group: Development/Libraries |
c630abcc | 77 | # doesn't require base |
6c61cd87 | 78 | Requires: girara-devel >= 0.4.3 |
65614859 JP |
79 | |
80 | %description devel | |
81 | Header files for zathura. | |
82 | ||
c630abcc JB |
83 | %description devel -l pl.UTF-8 |
84 | Pliki nagłówkowe aplikacji zathura. | |
85 | ||
86 | %package -n bash-completion-zathura | |
87 | Summary: Bash completion for zathura command line | |
88 | Summary(pl.UTF-8): Bashowe dopełnianie linii poleceń programu zathura | |
89 | Group: Applications/Shells | |
90 | Requires: %{name} = %{version}-%{release} | |
550a67ce | 91 | Requires: bash-completion >= 1:2.0 |
04ba2203 | 92 | BuildArch: noarch |
c630abcc JB |
93 | |
94 | %description -n bash-completion-zathura | |
95 | Bash completion for zathura command line. | |
96 | ||
97 | %description -n bash-completion-zathura -l pl.UTF-8 | |
98 | Bashowe dopełnianie linii poleceń programu zathura. | |
99 | ||
04ba2203 JP |
100 | %package -n fish-completion-zathura |
101 | Summary: fish-completion for zathura | |
102 | Summary(pl.UTF-8): Uzupełnianie nazw w fish dla zathura | |
103 | Group: Applications/Shells | |
104 | Requires: %{name} = %{version}-%{release} | |
105 | Requires: fish | |
04ba2203 | 106 | BuildArch: noarch |
04ba2203 JP |
107 | |
108 | %description -n fish-completion-zathura | |
109 | fish-completion for zathura. | |
110 | ||
111 | %description -n fish-completion-zathura -l pl.UTF-8 | |
112 | Pakiet ten dostarcza uzupełnianie nazw w fish dla zathura. | |
113 | ||
c630abcc JB |
114 | %package -n zsh-completion-zathura |
115 | Summary: ZSH completion for zathura command line | |
116 | Summary(pl.UTF-8): Dopełnianie linii poleceń programu zathura dla powłoki ZSH | |
117 | Group: Applications/Shells | |
118 | Requires: %{name} = %{version}-%{release} | |
119 | Requires: zsh | |
04ba2203 | 120 | BuildArch: noarch |
c630abcc JB |
121 | |
122 | %description -n zsh-completion-zathura | |
123 | ZSH completion for zathura command line. | |
124 | ||
125 | %description -n zsh-completion-zathura -l pl.UTF-8 | |
126 | Dopełnianie linii poleceń programu zathura dla powłoki ZSH. | |
127 | ||
dfc03c50 | 128 | %prep |
129 | %setup -q | |
925a5534 | 130 | cp %{SOURCE1} config.txt |
dfc03c50 | 131 | |
132 | %build | |
7f7492d4 | 133 | %meson build |
c630abcc | 134 | |
247896b8 | 135 | %ninja_build -C build |
dfc03c50 | 136 | |
137 | %install | |
138 | rm -rf $RPM_BUILD_ROOT | |
034746f6 | 139 | |
fc2f5ee7 | 140 | install -d $RPM_BUILD_ROOT%{_libdir}/%{name} |
65614859 | 141 | |
247896b8 | 142 | %ninja_install -C build |
65614859 | 143 | |
7f7492d4 | 144 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/id_ID $RPM_BUILD_ROOT%{_localedir}/id |
b7b1f08f | 145 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/no $RPM_BUILD_ROOT%{_localedir}/nb |
65614859 JP |
146 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/ta_IN $RPM_BUILD_ROOT%{_localedir}/ta |
147 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/uk_UA $RPM_BUILD_ROOT%{_localedir}/uk | |
148 | ||
149 | %find_lang %{name} | |
dfc03c50 | 150 | |
151 | %clean | |
152 | rm -rf $RPM_BUILD_ROOT | |
153 | ||
7f7492d4 JP |
154 | %post |
155 | %update_icon_cache hicolor | |
d351d053 | 156 | %update_desktop_database_post |
7f7492d4 JP |
157 | |
158 | %postun | |
159 | %update_icon_cache hicolor | |
d351d053 | 160 | %update_desktop_database_postun |
7f7492d4 | 161 | |
65614859 | 162 | %files -f %{name}.lang |
dfc03c50 | 163 | %defattr(644,root,root,755) |
2f57504e | 164 | %doc LICENSE README.md config.txt |
dfc03c50 | 165 | %attr(755,root,root) %{_bindir}/zathura |
7f7492d4 JP |
166 | %{_desktopdir}/org.pwmt.zathura.desktop |
167 | %{_datadir}/metainfo/org.pwmt.zathura.appdata.xml | |
b7b1f08f | 168 | %{_datadir}/dbus-1/interfaces/org.pwmt.zathura.xml |
91c29a24 | 169 | %{_iconsdir}/hicolor/*x*/apps/org.pwmt.zathura.png |
8d028e3c | 170 | %{_iconsdir}/hicolor/scalable/apps/org.pwmt.zathura.svg |
dfc03c50 | 171 | %{_mandir}/man1/zathura.1* |
e170c822 | 172 | %{_mandir}/man5/zathurarc.5* |
305de361 | 173 | %dir %{_libdir}/zathura |
65614859 JP |
174 | |
175 | %files devel | |
176 | %defattr(644,root,root,755) | |
177 | %{_includedir}/zathura | |
178 | %{_pkgconfigdir}/zathura.pc | |
c630abcc JB |
179 | |
180 | %files -n bash-completion-zathura | |
181 | %defattr(644,root,root,755) | |
182 | %{bash_compdir}/zathura | |
183 | ||
04ba2203 JP |
184 | %files -n fish-completion-zathura |
185 | %defattr(644,root,root,755) | |
186 | %{fishdir}/zathura.fish | |
187 | ||
c630abcc JB |
188 | %files -n zsh-completion-zathura |
189 | %defattr(644,root,root,755) | |
190 | %{zsh_compdir}/_zathura |