File: xpcd.spec

package info (click to toggle)
xpcd 2.08-3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 632 kB
  • ctags: 556
  • sloc: ansic: 6,368; makefile: 235; sh: 200; perl: 12
file content (39 lines) | stat: -rw-r--r-- 914 bytes parent folder | download | duplicates (3)
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
Summary: PhotoCD tool collection
Name: xpcd
Version: 2.08
Release: 1
Copyright: GPL
Group: X11/Applications/Graphics
Source: http://www.in-berlin.de/User/kraxel/dl/xpcd-%{version}.tar.gz
Buildroot: /tmp/xpcd-%{version}.root

%description
This is a PhotoCD tool collection. The main application - xpcd - is a
comfortable, X11-based PhotoCD decoding/viewing program. Also included
is pcdtoppm, this is a command line based PhotoCD-to-PPM/JPEG
converter.

%prep
%setup

%build
export CFLAGS="$RPM_OPT_FLAGS"
./configure --prefix=/usr
make

%install
make DESTDIR=%{buildroot} SUID_ROOT= install
find %{buildroot}/usr -type f -print	\
	| sed -e "s|%{buildroot}||"	\
	| grep -v "^/usr/doc"		\
	| grep -v "pcdview"		\
	> rpmlist
test -f "%{buildroot}/usr/bin/pcdview" &&\
	echo "%attr(4711,root,root)/usr/bin/pcdview" >> rpmlist

%files -f rpmlist
%defattr(-,root,root)
%doc README COPYING

%clean
rm -rf $RPM_BUILD_ROOT