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