# spec file
#

#===============================================================================
# defines

%define MY_PACKAGE	KPackViewer
%define MY_BIN_PACKAGE	kpackviewer
%define MY_ICON         %{MY_PACKAGE}.xpm
#%define MY_REQUIREMENTS	something >= 1.11.1
%define	MY_VERSION	0.62
%define MY_RELEASE	1
%define MY_GROUP	X11/KDE/Utilities

#===============================================================================
# Preamble

#===
# Package Name Tags

Name: %{MY_PACKAGE}
Version: %{MY_VERSION}
Release: %{MY_RELEASE}

#===
# Descriptive Tags

Summary: KPackViewer is a Kde unix package viewer
Copyright: GPL
Distribution: Unix/Linux
URL: http://www.momentus.com.br/users/hook/kpackviewer.html
Group: %{MY_GROUP}
Vendor: Paulo Castro <hook@netrio.com.br>
Packager: John W. Woznack <jwoznack@concentric.net>
Icon: %{MY_ICON}
Source0: %{MY_PACKAGE}-%{MY_VERSION}.tar.gz
%description
KPackViewer is a program which allows you to manage the major packages 
available to Linux including RPMs, Slackware, Debian, TarGZip, and more. 
This program tells you all the information about the package at a mouse click 
and will even translate the package into another format. This is a definite 
must have! 

#===
# Dependancy Tags

Provides: %{MY_PACKAGE}
#Requires: 
Serial: %{MY_RELEASE}
#Conflicts:
AutoReqProv: Yes

#===
# Arch/OS Tags

#ExcludeArch:
#ExclusiveArch:
ExcludeOS: Win95 Win98 WinNT
#ExclusiveOS:

#===
# Directory Tags

#Prefix:
#BuildRoot:

#===
# Source/Patch Tags

#NoSource:
#Patch:
#NoPatch:

#==
# Sub Package(s) 
#  (including the binary ones we want!)
#  (don't forget to add the %files line for it!)

%package -n %{MY_BIN_PACKAGE}
Summary: KPackViewer is a Kde unix package viewer
Group: %{MY_GROUP}
Provides: %{MY_BIN_PACKAGE}
#Requires:
%description -n %{MY_BIN_PACKAGE}
KPackViewer is a program which allows you to manage the major packages 
available to Linux including RPMs, Slackware, Debian, TarGZip, and more. 
This program tells you all the information about the package at a mouse click 
and will even translate the package into another format. This is a definite 
must have! 

#===============================================================================
# Scripts

#===
# Prep

%prep
%setup -c

#cd %{MY_PACKAGE}-%{MY_VERSION}
# patch, if needed
#cd ..

#===
# Build

%build

# make the libraries reentrant
RPM_OPT_FLAGS="$RPM_OPT_FLAGS -D_REENTRANT"

cd %{MY_PACKAGE}-%{MY_VERSION}

#%configure --enable-shared --enable-gcc
./configure
make
cd ..

#===
# Pre-Install

%pre

#===
# Install

%install

cd %{MY_PACKAGE}-%{MY_VERSION}
make install
make register
cd ..

#===
# Post-Install

%post

#===
# Pre-UnInstall

%preun

#===
# Post-UnInstall

%postun

#===
# Verify
%verifyscript

#===
# Clean

%clean
rm -rf $RPM_BUILD_ROOT

#===============================================================================
# Files

%files -n %{MY_BIN_PACKAGE}
/opt/kde/bin/KPackViewer
/opt/kde/share/icons/KPackViewer.xpm
/opt/kde/share/apps/KPackViewer/
/opt/kde/share/applnk/kpackviewer.kdelnk
%doc /opt/kde/share/doc/HTML/en/KPackViewer/
/opt/kde/share/locale/fr/LC_MESSAGES/KPackViewer.mo
/opt/kde/share/locale/pt_BR/LC_MESSAGES/KPackViewer.mo
/opt/kde/share/icons/mini/KPackViewer.xpm
/opt/kde/share/icons/mini/deb_mini.xpm
/opt/kde/share/icons/mini/rpm_mini.xpm
/opt/kde/share/icons/mini/slak_mini.xpm
/opt/kde/share/icons/mini/zip_mini.xpm
/opt/kde/share/mimelnk/application/x-arj.kdelnk
/opt/kde/share/mimelnk/application/x-bzip.kdelnk
/opt/kde/share/mimelnk/application/x-debian-package.kdelnk
/opt/kde/share/mimelnk/application/x-gzip.kdelnk
/opt/kde/share/mimelnk/application/x-lha.kdelnk
/opt/kde/share/mimelnk/application/x-rpm.kdelnk
/opt/kde/share/mimelnk/application/x-zip.kdelnk

#===============================================================================
# Change Log

%changelog
* Mon Apr 19 1999 Paulo Castro <hook@netrio.com.br>
- 0.60 BugFix (brokens) Releases: 
-
- Ver 0.61 Fixes: 
-  Problem with Search Routine for RPM and Debian packages.
-  All packs must work OK now...
-
-  Problem in code regarding compilation errors about a wrong
-  "this" reference...
-
-  Problem in Autoconfig scripts regarding executable
-  permissions in the Autoconfig version...
-
-  Problem with package logging...
-
-  Problem with package extension detection and icon
-  association...
-
- Ver 0.62 Fixes: 
-  Problem with Virtual Debian logging....
-
-  Problem with Virtual Debian Extraction...
-
-  Problem with Virtual Slackware Extraction...
-
-  Minor fixes and optimizations.
