From 993179464089cbc5a1bd7b817fbc13278d542d5e Mon Sep 17 00:00:00 2001 From: Jose Luis Blanco Date: Feb 23 2009 16:28:28 +0000 Subject: Initial packaging for fedora. --- diff --git a/.cvsignore b/.cvsignore index e69de29..11e96c7 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +cutecom-0.20.0.tar.gz diff --git a/cutecom.spec b/cutecom.spec new file mode 100644 index 0000000..5be519d --- /dev/null +++ b/cutecom.spec @@ -0,0 +1,74 @@ +Summary: A graphical serial terminal, like minicom or Hyperterminal on Windows +Name: cutecom +Version: 0.20.0 +Release: 3%{?dist} +License: GPLv2+ +Group: Applications/Communications +URL: http://cutecom.sourceforge.net/ + +# The source for this package is released at sourceforge: +Source: http://cutecom.sourceforge.net/%{name}-%{version}.tar.gz + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: cmake +BuildRequires: qt-devel +BuildRequires: desktop-file-utils + +%description +CuteCom is a graphical serial terminal, like minicom or Hyperterminal on +Windows. It is aimed mainly at hardware developers or other people who need +a terminal to talk to their devices. + +%prep +%setup -q +# Change icon to "utilities-terminal": +sed 's/=openterm/=utilities-terminal/' cutecom.desktop > cutecom.desktop.new +mv -f cutecom.desktop.new cutecom.desktop + +%build +%cmake . +make VERBOSE=1 %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +# We don't invoke upstream's make install since the man file is installed in +# a wrong directory (/usr/man/...) +# make install DESTDIR=$RPM_BUILD_ROOT + +install -D -m 755 $(pwd)/cutecom ${RPM_BUILD_ROOT}%{_bindir}/cutecom +install -D -m 644 $(pwd)/cutecom.1 ${RPM_BUILD_ROOT}%{_mandir}/man1/cutecom.1 + + +# Upstream script does not install the .desktop file if KDE is not installed, +# so we install it manually: +desktop-file-install \ + --remove-key=Path --remove-key=Encoding \ + --remove-key=BinaryPattern --remove-key=TerminalOptions \ + --add-category=System \ + --dir ${RPM_BUILD_ROOT}%{_datadir}/applications/ \ + $(pwd)/cutecom.desktop + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc COPYING README Changelog TODO +%{_bindir}/cutecom +%{_mandir}/man1/cutecom.1* +%{_datadir}/applications/cutecom.desktop + + +%changelog +* Thu Feb 19 2009 - Jose Luis Blanco 0.20.0-3 +- Fixed .desktop file and .spec file comments. + +* Tue Feb 17 2009 - Jose Luis Blanco 0.20.0-2 +- Added documentation files. +- Fixed License field. +- .desktop file installed with desktop-file-install + +* Sun Feb 15 2009 - Jose Luis Blanco 0.20.0-1 +- Initial packaging for Fedora. + diff --git a/import.log b/import.log new file mode 100644 index 0000000..f2d90e6 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +cutecom-0_20_0-3_fc10:HEAD:cutecom-0.20.0-3.fc10.src.rpm:1235406461 diff --git a/sources b/sources index e69de29..8cbcfba 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +a42394c3a29a2dc30edab721469f5eee cutecom-0.20.0.tar.gz