summaryrefslogtreecommitdiff
path: root/redhat
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-01-30 10:57:07 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-01-30 10:57:07 +0000
commiteca35c468094fc6b7177f33ef51fa873eb88e79c (patch)
treefa07fd0ea1db72ff2ad4bd8b04b8e546717f2731 /redhat
hello world!
Diffstat (limited to 'redhat')
-rw-r--r--redhat/transmission-remote-gtk.spec89
1 files changed, 89 insertions, 0 deletions
diff --git a/redhat/transmission-remote-gtk.spec b/redhat/transmission-remote-gtk.spec
new file mode 100644
index 0000000..0ce37a6
--- /dev/null
+++ b/redhat/transmission-remote-gtk.spec
@@ -0,0 +1,89 @@
+Name: transmission-remote-gtk
+Version: 0.1.0
+Release: 1
+Summary: Remote control client for Transmission BitTorrent
+
+Group: Applications/Internet
+License: GPLv2+
+URL: http://code.google.com/p/transmission-remote-gtk/
+Source0: %{name}-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+# These two are just the oldest version tested
+Requires: gtk2
+Requires: glib2
+Requires: unique
+Requires: GConf2
+Requires: libnotify
+Requires: json-glib
+Requires: libcurl
+Requires: GeoIP
+
+BuildRequires: gtk2-devel
+BuildRequires: glib2-devel
+BuildRequires: unique-devel
+BuildRequires: GeoIP-devel
+BuildRequires: GConf2-devel
+BuildRequires: json-glib-devel
+BuildRequires: libcurl-devel
+BuildRequires: libnotify-devel
+
+Requires(pre): GConf2
+Requires(post): GConf2
+Requires(preun): GConf2
+Requires(post): desktop-file-utils
+Requires(postun): desktop-file-utils
+
+%description
+transmission-remote-gtk is a GTK client to remotely manage the Transmission BitTorrent client.
+
+%prep
+%setup -q
+
+%build
+%configure
+make %{?_smp_mflags}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
+make install DESTDIR=$RPM_BUILD_ROOT
+unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%pre
+if [ "$1" -gt 1 ]; then
+ export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
+ gconftool-2 --makefile-uninstall-rule \
+ %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :
+fi
+
+%post
+export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
+gconftool-2 --makefile-install-rule \
+ %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :
+
+update-desktop-database %{_datadir}/applications
+
+%postun
+update-desktop-database %{_datadir}/applications
+
+%preun
+if [ "$1" -eq 0 ]; then
+ export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
+ gconftool-2 --makefile-uninstall-rule \
+ %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :
+fi
+
+%files
+%defattr(-,root,root,-)
+%doc README COPYING AUTHORS
+%{_sysconfdir}/gconf/schemas/%{name}.schemas
+%{_bindir}/%{name}
+%{_datadir}/applications/%{name}.desktop
+
+%changelog
+* Sun Jan 30 2010 Alan Fitton <alan@eth0.org.uk> - 0.1.0
+- Initial RPM Build