summaryrefslogtreecommitdiff
path: root/pikview.spec
blob: ec1af57ef3c642e78972fe8d26f285c723e6892d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Summary:	PikView is an image viewer
Name:		pikview
Version:	0.8.2
Release:	1
License:	GPL
Group:		X11/Applications/Multimedia
Group(pl):	X11/Aplikacje/Multimedia
Source0:	http://download.sourceforge.net/pikview/%{name}-%{version}.tar.gz
URL:		http://pikview.sourceforge.net/
Buildroot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%define		_prefix		/usr/X11R6

%description
PikView is an image viewer which uses the KDE libraries. PikView can
read the following image types: png, jpeg, tiff, gif, netpbm (and via
the ImageMagick library - eps, pict, dcx, pcx, mif, bmp, viff, pnm)
Also supported are the following features: preloading, zooming,
thumbnails, rapid image filing, fullscreen, printing, slideshow.

%prep
rm -rf $RPM_BUILD_ROOT

%setup -q

%build
CXXFLAGS="$RPM_OPT_FLAGS -DNO_DEBUG"
LDFLAGS="-s"
export CXXFLAGS LDFLAGS
%configure \

make

%install
rm -rf $RPM_BUILD_ROOT
%{__make} install DESTDIR=$RPM_BUILD_ROOT

cd $RPM_BUILD_ROOT
find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > \
        $RPM_BUILD_DIR/file.list.%{name}

find . -type f | sed -e 's,^\.,\%attr(-\,root\,root) ,' \
        -e '/\/config\//s|^|%config|' >> \
        $RPM_BUILD_DIR/file.list.%{name}

find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> \
        $RPM_BUILD_DIR/file.list.%{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files -f ../file.list.%{name}
%defattr(644,root,root,755)