rpms/latencytop/devel latencytop.spec,1.1,1.2
Michal Schmidt (michich)
fedora-extras-commits at redhat.com
Tue Feb 5 11:09:10 UTC 2008
- Previous message (by thread): rpms/nabi/devel nabi.spec,1.6,1.7 xinput.d-nabi,1.3,1.4
- Next message (by thread): comps comps-f7.xml.in, 1.306, 1.307 comps-f8.xml.in, 1.212, 1.213 comps-f9.xml.in, 1.262, 1.263
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: michich
Update of /cvs/pkgs/rpms/latencytop/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv31017
Modified Files:
latencytop.spec
Log Message:
* Tue Feb 5 2008 Michal Schmidt <mschmidt at redhat.com> - 0.3-4
- Package the translation table too and modify latencytop.c to look for it in
the correct directory.
* Mon Feb 4 2008 Michal Schmidt <mschmidt at redhat.com> - 0.3-3
- Dropped the whitespace-changing hunk from latencytop-standard-cflags.patch.
Index: latencytop.spec
===================================================================
RCS file: /cvs/pkgs/rpms/latencytop/devel/latencytop.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- latencytop.spec 4 Feb 2008 20:16:17 -0000 1.1
+++ latencytop.spec 5 Feb 2008 11:08:23 -0000 1.2
@@ -1,6 +1,6 @@
Name: latencytop
Version: 0.3
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: System latency monitor
Group: Applications/System
@@ -22,6 +22,13 @@
%setup -q
%patch -p1
+# Don't look for the translation table in the current directory,
+# it will be installed under /usr/share/latencytop.
+# First make sure the string is there:
+grep 'init_translations("latencytop.trans");' latencytop.c > /dev/null
+# OK, replace it:
+sed -i -e 's#init_translations("latencytop.trans");#init_translations("%{_datadir}/%{name}/latencytop.trans");#' latencytop.c
+
%build
export CFLAGS="${CFLAGS:-%{optflags}}"
make %{?_smp_mflags}
@@ -29,8 +36,8 @@
%install
rm -rf %{buildroot}
-mkdir -p %{buildroot}/%{_bindir}
-install -p -m 755 latencytop %{buildroot}/%{_bindir}/latencytop
+install -D -p -m 755 latencytop %{buildroot}/%{_bindir}/latencytop
+install -D -p -m 644 latencytop.trans %{buildroot}/%{_datadir}/%{name}/latencytop.trans
%clean
@@ -41,9 +48,14 @@
%defattr(-,root,root,-)
#%doc
%{_bindir}/latencytop
+%{_datadir}/%{name}/latencytop.trans
%changelog
+* Tue Feb 5 2008 Michal Schmidt <mschmidt at redhat.com> - 0.3-4
+- Package the translation table too and modify latencytop.c to look for it in
+ the correct directory.
+
* Mon Feb 4 2008 Michal Schmidt <mschmidt at redhat.com> - 0.3-3
- Dropped the whitespace-changing hunk from latencytop-standard-cflags.patch.
- Previous message (by thread): rpms/nabi/devel nabi.spec,1.6,1.7 xinput.d-nabi,1.3,1.4
- Next message (by thread): comps comps-f7.xml.in, 1.306, 1.307 comps-f8.xml.in, 1.212, 1.213 comps-f9.xml.in, 1.262, 1.263
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list