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