rpms/gtraffic/devel gtraffic.spec, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

tomspur tomspur at fedoraproject.org
Sat Nov 7 00:06:30 UTC 2009


Author: tomspur

Update of /cvs/pkgs/rpms/gtraffic/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv28170/devel

Modified Files:
	.cvsignore sources 
Added Files:
	gtraffic.spec import.log 
Log Message:
Initial import (#532779)



--- NEW FILE gtraffic.spec ---
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Name:           gtraffic
Version:        1.01
Release:        4%{?dist}
Summary:        Simple traffic usage counter for mobile broadband connections

Group:          Applications/Internet
License:        GPLv3+
URL:            http://fsckyou.info/gtraffic/
Source0:        http://fsckyou.info/gtraffic/%{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:  python-devel
BuildRequires:  desktop-file-utils

Requires:       NetworkManager
Requires:       gnome-python2-gconf

%description
gtraffic is a very quick and simple network traffic counter. It has the ability
to manually change the used traffic, for example if used between two computers.
It features a reset, so the usage can be reset at required intervals.

This utility will only work with NetworkManager and a mobile broadband 
connection, otherwise no data will be counted.


%prep
%setup -q
##############################
# rename trafficd to gtrafficd
# upstream agreed for this
sed -i 's|trafficd|gtrafficd|g' setup.py
sed -i 's|trafficd|gtrafficd|g' data/trafficd.desktop
mv trafficd gtrafficd
mv data/trafficd.desktop data/gtrafficd.desktop
##############################

%build
%{__python} setup.py build


%install
rm -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root %{buildroot}

desktop-file-install \
    --add-category="GTK" \
    --delete-original \
    --dir=%{buildroot}%{_datadir}/applications \
    %{buildroot}%{_datadir}/applications/%{name}.desktop

desktop-file-install \
    --add-category="GTK" \
    --delete-original \
    --dir=%{buildroot}%{_sysconfdir}/xdg/autostart \
    %{buildroot}%{_sysconfdir}/xdg/autostart/%{name}d.desktop
 
%clean
rm -rf %{buildroot}


%files
%defattr(-,root,root,-)
%doc PKG-INFO
%{_bindir}/%{name}
%{_bindir}/%{name}d
%config(noreplace) %{_sysconfdir}/xdg/autostart/%{name}d.desktop
%{_datadir}/applications/%{name}.desktop
%{python_sitelib}/%{name}/
%{python_sitelib}/%{name}*.egg-info

%changelog
* Thu Nov 05 2009 Thomas Spura <tomspur at fedoraproject.org> - 1.01-4
- rename trafficd into gtrafficd in %%prep and not in %%install

* Thu Nov 05 2009 Thomas Spura <tomspur at fedoraproject.org> - 1.01-3
- Missing R: NetworkManager and gnome-python2-gconf
- only just %%{buildroot}
- change trafficd into gtrafficd

* Sun Nov 01 2009 Thomas Spura <tomspur at fedoraproject.org> - 1.01-2
- Missing BR desktop-file-utils

* Thu Aug 06 2009 Christoph Wickert <cwickert at fedoraproject.org> - 1.01-1
- Initial package


--- NEW FILE import.log ---
gtraffic-1_01-4_fc11:HEAD:gtraffic-1.01-4.fc11.src.rpm:1257552330


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/gtraffic/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	6 Nov 2009 20:23:24 -0000	1.1
+++ .cvsignore	7 Nov 2009 00:06:27 -0000	1.2
@@ -0,0 +1 @@
+gtraffic-1.01.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/gtraffic/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	6 Nov 2009 20:23:24 -0000	1.1
+++ sources	7 Nov 2009 00:06:27 -0000	1.2
@@ -0,0 +1 @@
+4e3b45e8bbc7c111ee277944da754f80  gtraffic-1.01.tar.gz




More information about the fedora-extras-commits mailing list