diff --git a/gtkslash-0.5.5.spec b/gtkslash-0.5.5.spec new file mode 100644 index 0000000..1dfd5c3 --- /dev/null +++ b/gtkslash-0.5.5.spec @@ -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 +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 <