Rename gtkslash-0.5.5.spec to gtkslash/gtkslash-0.5.5.spec

This commit is contained in:
tengel 2024-03-20 09:19:01 -05:00
parent 1262088184
commit 2477eaf186

View file

@ -0,0 +1,58 @@
# 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