LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File krep.spec of Package krep (Project KDE:KDE3)

#
# spec file for package krep (Version 0.82)
#
# Copyright 2008 Carlos Goncalves <cgoncalves@opensuse.org>
# Copyright 2009 Buschmann <buschmann23@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
#

# norootforbuild

Name:         krep
License:      GPL
Group:        Productivity/File utilities
Summary:      File Viewer With Content Filter
Version:      0.82
Release:      1
URL:          http://www.staerk.de/thorsten/index.php/Krep
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
Source0:      %name-%{version}.tar.bz2
Source1:      %{name}.desktop

BuildRequires:       kdelibs3-devel ncurses-devel
BuildRequires:       update-desktop-files

%description
A file viewer that lets you filter the file's content.
If you do not give a file, standard input is shown.
If the given file changes, krep reloads it.



Authors:
--------
    Thorsten Staerk <kde@staerk.de>

%prep
%setup -q -n %{name}-%{version}
. /etc/opt/kde3/common_options
update_admin
cp %{S:1} $RPM_BUILD_DIR/%{name}-%{version}/src/%{name}.desktop

%build
. /etc/opt/kde3/common_options
update_admin
./configure $configkde --disable-final
make %{?jobs:-j%jobs}

%install
for FILE in COPYING; do
    MD5SUM=$(md5sum $FILE | sed 's/ .*//')
    if test -f /usr/share/doc/licenses/md5/$MD5SUM ; then
        ln -sf /usr/share/doc/licenses/md5/$MD5SUM $FILE
    fi
done
make DESTDIR=$RPM_BUILD_ROOT install

%suse_update_desktop_file %name

%find_lang %name

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %name.lang
%defattr(-,root,root)
%doc AUTHORS COPYING
/opt/kde3/bin/krep
/opt/kde3/share/apps/krep
/opt/kde3/share/appl*/*/krep.desktop
/opt/kde3/share/icons/*/*/*/krep.png

%changelog -n %{name}
* Tue Aug 10 2010 Ilya Chernykh
- fixing for Factory
* Sun Mar 08 2009 Buschmann <buschmann23@opensuse.org> 0.82
- recompress source tarball with bzip2
- fixing desktop file
- use debug_package only outside the Build Service, which has its
  own mechansisms
* Sat Feb 2 2008 - Carlos Gonçalves <mail@cgoncalves.info> 0.82
- initial release