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