]> git.pld-linux.org Git - packages/feh.git/blob - feh.spec
up to 3.10.2
[packages/feh.git] / feh.spec
1 Summary:        Fast image viewer/indexer/montager
2 Summary(hu.UTF-8):      Gyors képnézegető/indexelő/montázsoló
3 Summary(pl.UTF-8):      Szybki program do przeglądania/indeksowania/montowania obrazów
4 Name:           feh
5 Version:        3.10.2
6 Release:        1
7 License:        BSD
8 Group:          X11/Applications/Graphics
9 Source0:        https://feh.finalrewind.org/%{name}-%{version}.tar.bz2
10 # Source0-md5:  0a780bf321c0653d03e3e18410f4d1ba
11 URL:            https://feh.finalrewind.org/
12 # Bash completion by https://github.com/scop/bash-completion/blob/master/completions/feh
13 Source1:        %{name}-bash-completion
14 # zsh completion by https://git.finalrewind.org/zsh/plain/etc/completions/_feh
15 Source2:        %{name}-zsh-completion
16 BuildRequires:  curl-devel
17 BuildRequires:  imlib2-devel >= 1.0.0
18 BuildRequires:  libexif-devel
19 BuildRequires:  libjpeg-devel
20 BuildRequires:  libmagic-devel
21 BuildRequires:  libpng-devel
22 BuildRequires:  rpm-build >= 4.6
23 BuildRequires:  sed >= 4.0
24 BuildRequires:  xorg-lib-libX11-devel
25 BuildRequires:  xorg-lib-libXinerama-devel
26 BuildRequires:  xorg-lib-libXt-devel
27 Suggests:       ImageMagick
28 Suggests:       imlib2_loaders
29 Provides:       WallpaperChanger
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 feh is a fast, lightweight image viewer which uses imlib2. It is
34 commandline-driven and supports multiple images through slideshows,
35 thumbnail browsing or multiple windows, and montages or index prints
36 (using truetype fonts to display file info). Advanced features include
37 fast dynamic zooming, progressive loading, loading via HTTP (with
38 reload support for watching webcams), recursive file opening
39 (slideshow of a directory hierarchy), and mousewheel/keyboard control.
40
41 %description -l hu.UTF-8
42 feh egy gyors, könnyűsúlyú képnézegető, amely az imlib2-t használja.
43 Parancssor-orientált és lehetséges több képet is nézni vetítés,
44 bélyegkép böngészés vagy több ablakban. További lehetőségek (többek
45 között): gyors dinamikus zoom, progresszív betöltés, HTTP protokoll
46 (webcam), rekurzív fájl megnyitás (könyvtár-szerkezetben diavetítés)
47 és egér-götgetés/billentyűzettel irányítás.
48
49 %description -l pl.UTF-8
50 feh jest szybką, lekką przeglądarką obrazów która wykorzystuje
51 bibliotekę imlib2. Jest kierowana z linii poleceń i obsługuje wiele
52 obrazów naraz przez "pokazy slajdów", przeglądanie miniatur lub wiele
53 okienek na raz, oraz montowanie obrazów lub tworzenie indeksów
54 (wykorzystując fonty TrueType do wyświetlania informacji o plikach).
55 Zaawansowane opcje zawierają szybie powiększanie, ładowanie stopniowe,
56 ładowanie przez HTTP (z opcją przeładowania do oglądania webcamów),
57 rekursywne otwieranie plików (pokaz slajdów z hierarchii katalogów),
58 oraz sterowanie z klawiatury/myszki (też z kółkiem).
59
60 %package -n bash-completion-feh
61 Summary:        Bash completion for feh
62 Summary(pl.UTF-8):      Dopełnianie parametrów feh dla powłoki Bash
63 Group:          Applications/Shells
64 Requires:       bash-completion >= 1:2.0
65 Requires:       %{name} = %{version}-%{release}
66 Obsoletes:      feh-bash-completion
67 BuildArch:      noarch
68
69 %description -n bash-completion-feh
70 Bash completion for feh.
71
72 %description -n bash-completion-feh -l pl.UTF-8
73 Dopełnianie parametrów feh dla powłoki Bash.
74
75 %package -n zsh-completion-feh
76 Summary:        ZSH completion for feh
77 Summary(pl.UTF-8):      Dopełnianie parametrów feh dla powłoki ZSH
78 Group:          Applications/Shells
79 Requires:       %{name} = %{version}-%{release}
80 BuildArch:      noarch
81
82 %description -n zsh-completion-feh
83 ZSH completion for feh.
84
85 %description -n zsh-completion-feh -l pl.UTF-8
86 Dopełnianie parametrów feh dla powłoki ZSH.
87
88 %prep
89 %setup -q
90
91 %build
92 CFLAGS="%{rpmcflags} %{rpmcppflags}" \
93 LDFLAGS="%{rpmldflags}" \
94 %{__make} \
95         CC="%{__cc}" \
96         PREFIX=%{_prefix} \
97         exif=1 \
98         help=1 \
99         inotify=1 \
100         magic=1
101
102 %install
103 rm -rf $RPM_BUILD_ROOT
104 install -d $RPM_BUILD_ROOT{%{bash_compdir},%{zsh_compdir}}
105
106 %{__make} install \
107         DESTDIR=$RPM_BUILD_ROOT \
108         PREFIX="%{_prefix}" \
109         bin_dir="$RPM_BUILD_ROOT%{_bindir}" \
110         man_dir="$RPM_BUILD_ROOT%{_mandir}" \
111         desktop_dir="$RPM_BUILD_ROOT%{_desktopdir}" \
112         icon_dir="$RPM_BUILD_ROOT%{_iconsdir}/hicolor"
113
114 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{bash_compdir}/%{name}
115 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{zsh_compdir}/_%{name}
116
117 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
118
119 %clean
120 rm -rf $RPM_BUILD_ROOT
121
122 %post
123 %update_icon_cache hicolor
124 %update_desktop_database
125
126 %postun
127 %update_icon_cache hicolor
128 %update_desktop_database
129
130 %files
131 %defattr(644,root,root,755)
132 %doc AUTHORS COPYING ChangeLog examples README.md TODO
133 %attr(755,root,root) %{_bindir}/feh
134 %{_datadir}/feh
135 %{_mandir}/man1/feh.1*
136 %{_desktopdir}/feh.desktop
137 %{_iconsdir}/hicolor/48x48/apps/feh.png
138 %{_iconsdir}/hicolor/scalable/apps/feh.svg
139
140 %files -n bash-completion-feh
141 %defattr(644,root,root,755)
142 %{bash_compdir}/%{name}
143
144 %files -n zsh-completion-feh
145 %defattr(644,root,root,755)
146 %{zsh_compdir}/_%{name}
This page took 0.08533 seconds and 4 git commands to generate.