From 638787504c3b4f9c0de7c128c6893e939673fc07 Mon Sep 17 00:00:00 2001 From: Christoph Wickert Date: Tue, 21 Apr 2009 21:34:18 +0000 Subject: [PATCH] Initial import of sakura. Review was at https://bugzilla.redhat.com/show_bug.cgi?id=496166 --- .cvsignore | 1 + import.log | 1 + sakura-2.3.3-cflags.patch | 11 +++++ sakura.spec | 97 +++++++++++++++++++++++++++++++++++++++ sources | 1 + 5 files changed, 111 insertions(+) create mode 100644 import.log create mode 100644 sakura-2.3.3-cflags.patch create mode 100644 sakura.spec diff --git a/.cvsignore b/.cvsignore index e69de29..92ea093 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +sakura-2.3.3.tar.bz2 diff --git a/import.log b/import.log new file mode 100644 index 0000000..4aa26a3 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +sakura-2_3_3-2_fc11:HEAD:sakura-2.3.3-2.fc11.src.rpm:1240349497 diff --git a/sakura-2.3.3-cflags.patch b/sakura-2.3.3-cflags.patch new file mode 100644 index 0000000..e7de038 --- /dev/null +++ b/sakura-2.3.3-cflags.patch @@ -0,0 +1,11 @@ +--- sakura-2.3.3.orig/CMakeLists.txt 2009-01-31 09:55:18.000000000 +0100 ++++ sakura-2.3.3/CMakeLists.txt 2009-04-19 02:47:59.000000000 +0200 +@@ -34,8 +34,6 @@ + + IF (${CMAKE_BUILD_TYPE} MATCHES "Debug") + SET (CMAKE_C_FLAGS "-Wall") +-ELSE (${CMAKE_BUILD_TYPE} NOT MATCHES "Debug") +- SET (CMAKE_C_FLAGS "-O2") + ENDIF (${CMAKE_BUILD_TYPE} MATCHES "Debug") + + INCLUDE_DIRECTORIES (. ${GTK_INCLUDE_DIRS} ${VTE_INCLUDE_DIRS}) diff --git a/sakura.spec b/sakura.spec new file mode 100644 index 0000000..08de9d6 --- /dev/null +++ b/sakura.spec @@ -0,0 +1,97 @@ +Name: sakura +Version: 2.3.3 +Release: 2%{?dist} +Summary: Terminal emulator based on GTK and VTE + +Group: User Interface/X +License: GPLv2 +URL: http://pleyades.net/david/sakura.php +Source0: http://pleyades.net/david/projects/sakura/sakura-%{version}.tar.bz2 +Patch0: sakura-2.3.3-cflags.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: gtk2-devel >= 2.14 +BuildRequires: vte-devel >= 0.16.15 +BuildRequires: cmake desktop-file-utils gettext + +%description +Sakura is a terminal emulator based on GTK and VTE. It's a terminal emulator +with few dependencies, so you don't need a full GNOME desktop installed to +have a decent terminal emulator. + + +%prep +%setup -q +# fix desktop file (icon is svg instead of png) +sed -i 's!terminal-tango.png!terminal-tango!' sakura.desktop +%patch0 -p1 -b .clags + + +%build +find . -type f -name CMakeCache.txt -exec rm -rf {} \; +%cmake CMAKE_C_FLAGS=%{optflags} . +make VERBOSE=1 %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT +desktop-file-install \ + --delete-original \ + --remove-category=Utility \ + --add-category=System \ + --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \ + ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop +%find_lang %{name} + + +#%check +#ctest . + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files -f %{name}.lang +%defattr(-,root,root,-) +%doc AUTHORS GPL INSTALL +%{_bindir}/%{name} +%{_datadir}/applications/%{name}.desktop +%{_datadir}/pixmaps/terminal-tango.svg + + +%changelog +* Sun Apr 19 2009 Christoph Wickert - 2.3.3-2 +- Add patch to honor RPM_OPT_FLAGS +- Include INSTALL in %%doc since it contains some valuable information + +* Sat Apr 11 2009 Christoph Wickert - 2.3.3-1 +- Update to 2.3.3 + +* Tue Nov 11 2008 Christoph Wickert - 2.3.2-1 +- Update to 2.3.2 + +* Sat Nov 01 2008 Christoph Wickert - 2.3.1-1 +- Update to 2.3.1 + +* Sun Sep 28 2008 Christoph Wickert - 2.3.0-1 +- Update to 2.3.0 + +* Sun Sep 21 2008 Christoph Wickert - 2.2.1-1 +- Update to 2.2.1 +- Disable %%check again + +* Fri Jun 20 2008 Christoph Wickert - 2.2.0-1 +- Update to 2.2.0 +- Enable %%check again + +* Fri Jun 06 2008 Christoph Wickert - 2.1.2-1 +- Update to 2.1.2 +- No test configuration, disable %%check temporarily + +* Mon May 12 2008 Christoph Wickert - 2.1.0-1 +- Update to 2.1.0 + +* Mon May 05 2008 Christoph Wickert - 2.0.2-1 +- Initial Fedora RPM diff --git a/sources b/sources index e69de29..f2f33cb 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +53450360b779945402bb33ef4061309d sakura-2.3.3.tar.bz2