From eca35c468094fc6b7177f33ef51fa873eb88e79c Mon Sep 17 00:00:00 2001 From: Alan Fitton Date: Sun, 30 Jan 2011 10:57:07 +0000 Subject: hello world! --- redhat/transmission-remote-gtk.spec | 89 +++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 redhat/transmission-remote-gtk.spec (limited to 'redhat') 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 - 0.1.0 +- Initial RPM Build -- cgit v1.2.3