[mate-netspeed] add spec file
Dan Mashal
vicodan at fedoraproject.org
Sun Dec 2 18:34:25 UTC 2012
commit ed53c24add02dd8bcca21f9172051337defc595f
Author: Dan Mashal <dan.mashal at gmail.com>
Date: Sun Dec 2 10:34:18 2012 -0800
add spec file
mate-netspeed.spec | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 73 insertions(+), 0 deletions(-)
---
diff --git a/mate-netspeed.spec b/mate-netspeed.spec
new file mode 100644
index 0000000..53a75c8
--- /dev/null
+++ b/mate-netspeed.spec
@@ -0,0 +1,73 @@
+Name: mate-netspeed
+Version: 1.5.0
+Release: 1%{?dist}
+Summary: MATE netspeed
+License: GPLv2+
+URL: http://www.mate-desktop.org
+Source0: http://pub.mate-desktop.org/releases/1.5/%{name}-%{version}.tar.xz
+
+BuildRequires: mate-common
+BuildRequires: mate-doc-utils
+BuildRequires: libgtop2-devel
+BuildRequires: mate-panel-devel
+BuildRequires: gtk2-devel
+Requires: mate-panel
+
+%description
+MATE netspeed is an applet that shows how much
+traffic occurs on a specified network device.
+
+%prep
+%setup -q
+%build
+NOCONFIGURE=1 ./autogen.sh
+export LDFLAGS="$LDFLAGS -lm"
+%configure \
+ --disable-static \
+ --disable-scrollkeeper \
+ --disable-schemas-compile \
+ --with-gnu-ld
+
+make %{?_smp_mflags} V=1
+
+%install
+make DESTDIR=%{buildroot} install
+find %{buildroot} -name '*.la' -exec rm -rf {} ';'
+find %{buildroot} -name '*.a' -exec rm -rf {} ';'
+%find_lang %{name} --all-name
+
+%post
+/sbin/ldconfig
+/bin/touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
+
+%postun
+/sbin/ldconfig
+if [ $1 -eq 0 ] ; then
+ /usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+ /bin/touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
+ /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
+fi
+
+%posttrans
+/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
+
+%files -f %{name}.lang
+%doc AUTHORS COPYING README
+%{_libexecdir}/mate-netspeed-applet
+%{_datadir}/dbus-1/services/org.mate.panel.applet.NetspeedAppletFactory.service
+%{_datadir}/glib-2.0/schemas/org.mate.panel.applet.netspeed.gschema.xml
+%{_datadir}/icons/hicolor/*x*/apps/*.png
+%{_datadir}/icons/hicolor/*x*/devices/*.png
+%{_datadir}/mate/help/mate_netspeed_applet
+%{_datadir}/omf/mate_netspeed_applet
+%{_datadir}/icons/hicolor/*x*/status/*.png
+%{_datadir}/icons/hicolor/scalable/apps/mate-netspeed-applet.svg
+%{_datadir}/mate-panel/applets/org.mate.panel.NetspeedApplet.mate-panel-applet
+%{_datadir}/mate-panel/ui/netspeed-menu.xml
+
+
+%changelog
+* Sat Dec 01 2012 Dan Mashal <dan.mashal at fedoraproject.org> - 1.5.0-1
+- Initial build
More information about the scm-commits
mailing list