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