This repository has been archived on 2024-03-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
rpmbuild/gtkslash/gtkslash-0.5.5.spec

58 lines
1.3 KiB
RPMSpec

# RPM SPEC file for gtkslash
%define name gtkslash
%define ver 0.5.5
%define rel 3
%define prefix /usr
Summary: A Slashdot headlines news ticker
Name: %name
Version: %ver
Release: %rel
Copyright: GPL
Group: X11/Utilities
Source: http://www.sonic.net/~tengel/%{name}/%{name}-%{ver}.tar.gz
BuildRoot: /tmp/%{name}-root
Packager: Troy Engel <tengel@sonic.net>
URL: http://www.sonic.net/~tengel/%{name}
Requires: gtk+ >= 1.2
Docdir: %{prefix}/doc
%description
gtkSlash is a small program which will periodically fetch the latest
news stories from the Slashdot website and display them to you in
a list view. This program requires Gtk+ and Curl for proper operation.
%prep
%setup
%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix
if [ "$SMP" != "" ]; then
(make "MAKE=make -k -j $SMP"; exit 0)
make
else
make
fi
%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT%{prefix} install
mkdir -p $RPM_BUILD_ROOT/etc/X11/wmconfig
cat > $RPM_BUILD_ROOT/etc/X11/wmconfig/gtkslash <<EOF
gtkslash name "gtkslash"
gtkslash description "A Slashdot headlines news ticker"
gtkslash group Utilities
gtkslash exec "gtkslash &"
EOF
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO gtkslashrc
%{prefix}/bin/%{name}
/etc/X11/wmconfig/gtkslash