]> git.pld-linux.org Git - SPECS.git/blob - pornview.spec
SPECS updated Sat 31 Jul 20:26:02 CEST 2021
[SPECS.git] / pornview.spec
1 #
2 # Conditional build:
3 %bcond_with     gtk2    # use GTK+2 instead of 1.2 (broken)
4 %bcond_without  xine    # XINE support for movies
5 #
6 Summary:        JPEG file viewer
7 Summary(pl.UTF-8):      Przeglądarka plików JPEG
8 Name:           pornview
9 Version:        0.2.0
10 Release:        0.pre1.5
11 License:        GPL
12 Group:          X11/Applications/Graphics
13 Source0:        http://dl.sourceforge.net/pornview/%{name}-%{version}pre1.tar.gz
14 # Source0-md5:  339fde6d7ff0cc1053abe951601373e6
15 Patch0:         %{name}-no_libcharset.patch
16 Patch1:         %{name}-desktop.patch
17 Patch2:         %{name}-asneeded.patch
18 Patch3:         %{name}-libpng15.patch
19 URL:            http://pornview.sourceforge.net/
20 BuildRequires:  autoconf
21 BuildRequires:  automake
22 BuildRequires:  gettext-tools
23 BuildRequires:  libjpeg-devel
24 BuildRequires:  libpng-devel
25 BuildRequires:  libtool
26 BuildRequires:  pkgconfig
27 %{?with_xine:BuildRequires:     xine-lib-devel >= 1.0.0}
28 BuildRequires:  xorg-lib-libXinerama-devel
29 %if %{with gtk2}
30 BuildRequires:  gtk+2-devel >= 1:2.0.0
31 %else
32 BuildRequires:  gdk-pixbuf-devel >= 0.16.0
33 BuildRequires:  gtk+-devel >= 1.2.10
34 %endif
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37 %description
38 PornView is a JPEG file viewer. Basic features:
39 - thumbnails,
40 - slideshow,
41 - fullscreen,
42 - support movies.
43
44 %description -l pl.UTF-8
45 PornView jest przeglądarką plików JPEG. Podstawowe właściwości:
46 - miniaturki,
47 - slideshow,
48 - wyświetlanie pełnoekranowe,
49 - odtwarzanie filmów.
50
51 %prep
52 %setup -q -n %{name}-%{version}pre1
53 %patch0 -p1
54 %patch1 -p1
55 %patch2 -p1
56 %patch3 -p1
57
58 %if %{with gtk2}
59 cat >> acinclude.m4 <<'EOF'
60 AC_DEFUN([AM_PATH_GTK],[$3])
61 AC_DEFUN([AM_PATH_GDK_PIXBUF],[$3])
62 EOF
63 %endif
64
65 %build
66 %{__libtoolize}
67 %{__gettextize}
68 %{__aclocal} -I m4
69 %{__autoconf}
70 %{__autoheader}
71 %{__automake}
72 %configure \
73         %{?with_xine:--enable-xine} \
74         %{?with_gtk2:--with-gtk2}
75
76 %{__make}
77
78 %install
79 rm -rf $RPM_BUILD_ROOT
80 install -d $RPM_BUILD_ROOT%{_desktopdir}
81
82 %{__make} install \
83         DESTDIR=$RPM_BUILD_ROOT \
84         desktopdir=%{_desktopdir}
85
86 %find_lang %{name}
87
88 %clean
89 rm -rf $RPM_BUILD_ROOT
90
91 %files -f %{name}.lang
92 %defattr(644,root,root,755)
93 %doc AUTHORS NEWS README ChangeLog
94 %attr(755,root,root) %{_bindir}/pornview
95 %{_datadir}/%{name}
96 %{_desktopdir}/pornview.desktop
97 %{_pixmapsdir}/pornview.png
This page took 0.260324 seconds and 3 git commands to generate.