]> git.pld-linux.org Git - packages/viewnior.git/blob - viewnior.spec
- unify nb locale dir; release 2
[packages/viewnior.git] / viewnior.spec
1 Summary:        Elegant image viewer
2 Summary(pl.UTF-8):      Elegancka przeglądarka obrazków
3 Name:           viewnior
4 Version:        1.6
5 Release:        3
6 License:        GPL v3+
7 Group:          X11/Applications
8 #Source0Download: https://github.com/xsisqox/Viewnior/releases
9 Source0:        https://github.com/xsisqox/Viewnior/archive/%{name}-%{version}.tar.gz
10 # Source0-md5:  f7d497360c48ce4bce09328d934cc4a4
11 Patch0:         %{name}-appdata.patch
12 URL:            http://siyanpanayotov.com/project/viewnior/
13 BuildRequires:  autoconf >= 2.61
14 BuildRequires:  automake >= 1:1.11
15 BuildRequires:  desktop-file-utils
16 BuildRequires:  exiv2-devel >= 0.21
17 BuildRequires:  gdk-pixbuf2-devel >= 2.4.0
18 BuildRequires:  gettext-devel
19 BuildRequires:  glib2-devel >= 1:2.32
20 BuildRequires:  gtk+2-devel >= 2:2.20
21 BuildRequires:  intltool >= 0.35.0
22 BuildRequires:  libtool
23 BuildRequires:  pkgconfig
24 BuildRequires:  shared-mime-info >= 0.20
25 Requires(post,postun):  desktop-file-utils
26 Requires(post,postun):  gtk-update-icon-cache
27 Requires:       exiv2-libs >= 0.21
28 Requires:       gdk-pixbuf2 >= 2.4.0
29 Requires:       glib2 >= 1:2.32
30 Requires:       gtk+2 >= 2:2.20
31 Requires:       hicolor-icon-theme
32 Requires:       shared-mime-info >= 0.20
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %description
36 Viewnior is an image viewer program. Created to be simple, fast and
37 elegant. It's minimalistic interface provides more screen space for
38 your images.
39
40 Among its features are:
41 - Fullscreen & Slideshow
42 - Rotate, flip, save, delete images
43 - Animation support
44 - Browse only selected images
45 - Navigation window
46 - Simple interface
47 - Configurable mouse actions
48
49 %description -l pl.UTF-8
50 Viewnior to przeglądarka obrazków. Stworzona z myślą o prostocie,
51 szybkości i elegancji. Minimalistyczny interfejs pozostawia więcej
52 miejsca na ekranie dla obrazów.
53
54 Możliwości obejmują między innymi:
55 - tryb pełnoekranowy i przeglądu slajdów
56 - obracanie, odwracanie, zapis i usuwanie obrazów
57 - obsługę animacji
58 - przeglądanie tylko wybranych obrazów
59 - okno nawigacji
60 - prosty interfejs
61 - konfigurowalne akcje myszy
62
63 %prep
64 %setup -qn Viewnior-%{name}-%{version}
65 %patch0 -p1
66
67 %build
68 install -d m4
69 %{__glib_gettextize}
70 %{__intltoolize}
71 %{__libtoolize}
72 %{__aclocal} -I m4
73 %{__autoconf}
74 %{__autoheader}
75 %{__automake}
76 %configure \
77         --disable-silent-rules \
78         --enable-wallpaper
79
80 %{__make}
81
82 %install
83 rm -rf $RPM_BUILD_ROOT
84 %{__make} install \
85         INSTALL='install -p' \
86         DESTDIR=$RPM_BUILD_ROOT
87
88 %find_lang %{name}
89
90 desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
91
92 # check when manual install becomes obsolete and can be dropped
93 test ! -f $RPM_BUILD_ROOT%{_datadir}/appdata/viewnior.appdata.xml || exit 1
94 install -d $RPM_BUILD_ROOT%{_datadir}/appdata
95 cp -p data/%{name}.appdata.xml $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml
96
97 %clean
98 rm -rf $RPM_BUILD_ROOT
99
100 %post
101 %update_desktop_database
102 %update_icon_cache hicolor
103
104 %postun
105 %update_desktop_database
106 %update_icon_cache hicolor
107
108 %files -f %{name}.lang
109 %defattr(644,root,root,755)
110 %doc AUTHORS ChangeLog-20090517 NEWS README TODO
111 %attr(755,root,root) %{_bindir}/viewnior
112 %{_datadir}/%{name}
113 %{_datadir}/appdata/viewnior.appdata.xml
114 %{_desktopdir}/viewnior.desktop
115 %{_iconsdir}/hicolor/*x*/apps/viewnior.png
116 %{_iconsdir}/hicolor/scalable/apps/viewnior.svg
117 %{_mandir}/man1/viewnior.1*
This page took 0.121015 seconds and 3 git commands to generate.