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