rpms/okteta/devel okteta-0.0.1-755662-cmakelists-no-kparts.patch, NONE, 1.1 okteta-0.0.1-755662-cmakelists.patch, NONE, 1.1 okteta.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Kevin Kofler (kkofler) fedora-extras-commits at redhat.com
Wed Jan 16 22:02:29 UTC 2008


Author: kkofler

Update of /cvs/pkgs/rpms/okteta/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv22258/devel

Modified Files:
	.cvsignore sources 
Added Files:
	okteta-0.0.1-755662-cmakelists-no-kparts.patch 
	okteta-0.0.1-755662-cmakelists.patch okteta.spec 
Log Message:
New package okteta - Binary editor


okteta-0.0.1-755662-cmakelists-no-kparts.patch:

--- NEW FILE okteta-0.0.1-755662-cmakelists-no-kparts.patch ---
diff -ur okteta-0.0.1-755662-cmakelists/CMakeLists.txt okteta-0.0.1-755662-cmakelists-no-kparts/CMakeLists.txt
--- okteta-0.0.1-755662-cmakelists/CMakeLists.txt	2008-01-02 04:00:31.000000000 +0100
+++ okteta-0.0.1-755662-cmakelists-no-kparts/CMakeLists.txt	2008-01-02 04:40:23.000000000 +0100
@@ -8,5 +8,5 @@
 
 add_subdirectory( core )
 add_subdirectory( gui )
-add_subdirectory( parts )
+#add_subdirectory( parts )
 add_subdirectory( program )

okteta-0.0.1-755662-cmakelists.patch:

--- NEW FILE okteta-0.0.1-755662-cmakelists.patch ---
diff -ur okteta-0.0.1-755662/CMakeLists.txt okteta-0.0.1-755662-cmakelists/CMakeLists.txt
--- okteta-0.0.1-755662/CMakeLists.txt	2007-10-23 17:50:48.000000000 +0200
+++ okteta-0.0.1-755662-cmakelists/CMakeLists.txt	2008-01-02 04:00:31.000000000 +0100
@@ -1,5 +1,8 @@
 project( okteta )
 
+find_package(KDE4 REQUIRED)
+include (KDE4Defaults)
+
 include_directories( ${KDE4_INCLUDES} ${QT_INCLUDES} )
 # include_directories (${QDBUS_INCLUDE_DIRS} ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES})
 


--- NEW FILE okteta.spec ---
%define revision 761510

# package the oktetapart (conflicts with the version in kdeutils, but it's
# currently not built there)
%define package_kpart 1

Summary: Binary editor
Name:    okteta
Version: 0.0.1
Release: 0.2.20080115svn%{revision}%{?dist}

Group:   Applications/Editors
License: GPLv2
URL:     http://frinring.wordpress.com/category/okteta/
# checked out from svn://anonsvn.kde.org/home/kde/trunk/playground/utils/okteta
Source0: %{name}-%{version}-%{revision}.tar.bz2
# fix CMakeLists.txt so this builds as a standalone directory (without all of playground-utils)
Patch0: okteta-0.0.1-755662-cmakelists.patch
# don't build the oktetapart which conflicts with kdeutils
Patch1: okteta-0.0.1-755662-cmakelists-no-kparts.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires: cmake
BuildRequires: kdelibs4-devel
BuildRequires: desktop-file-utils

%description
Okteta allows the user to load data from any file, view and edit it in
either hex or ASCII. Okteta uses the KDE 4 libraries.

%prep
%setup -q -n %{name}-%{version}-%{revision}
%patch0 -p1
%if ! 0%{?package_kpart}
%patch1 -p1
%endif

%build
%cmake_kde4 .
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
mkdir $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
# nothing should build against libokteta*_b.so
rm -f %{buildroot}%{_kde4_libdir}/libokteta*_b.so
# "install" the installed .desktop file to validate it
# remove the Path key because it is blank (causing a warning)
desktop-file-install %{buildroot}%{_datadir}/applications/kde4/okteta.desktop --vendor "" --dir %{buildroot}%{_datadir}/applications/kde4 --remove-key=Path

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
# Hey upstream, where's COPYING?
%{_kde4_bindir}/okteta
%{_kde4_libdir}/liboktetacore_b.so.4
%{_kde4_libdir}/liboktetacore_b.so.4.0.0
%{_kde4_libdir}/liboktetagui_b.so.4
%{_kde4_libdir}/liboktetagui_b.so.4.0.0
%{_kde4_datadir}/applications/kde4/okteta.desktop
%{_kde4_datadir}/icons/hicolor/16x16/apps/okteta.png
%{_kde4_datadir}/icons/hicolor/32x32/apps/okteta.png
%{_kde4_datadir}/icons/hicolor/48x48/apps/okteta.png
%{_kde4_appsdir}/okteta/oktetaui.rc
%if 0%{?package_kpart}
%{_kde4_libdir}/kde4/libkbytearrayedit.so
%{_kde4_libdir}/kde4/liboktetapart.so
%{_kde4_appsdir}/oktetapart/oktetapartui.rc
%{_kde4_datadir}/kde4/services/kbytearrayedit.desktop
%{_kde4_datadir}/kde4/services/oktetapart.desktop
%endif

%changelog
* Tue Jan 15 2007 Kevin Kofler <Kevin at tigcc.ticalc.org> 0.0.1-0.2.20080115svn761510
- Use desktop-file-install to ensure the .desktop file is valid

* Tue Jan 15 2007 Kevin Kofler <Kevin at tigcc.ticalc.org> 0.0.1-0.1.20080115svn761510
- Update to revision 761510
- Enable package_kpart
- Add missing ldconfig scriptlets for the shared libraries

* Wed Jan 2 2007 Kevin Kofler <Kevin at tigcc.ticalc.org> 0.0.1-0.1.20080102svn755662
- First Fedora package


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/okteta/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	16 Jan 2008 17:37:24 -0000	1.1
+++ .cvsignore	16 Jan 2008 22:01:54 -0000	1.2
@@ -0,0 +1 @@
+okteta-0.0.1-761510.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/okteta/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	16 Jan 2008 17:37:24 -0000	1.1
+++ sources	16 Jan 2008 22:01:54 -0000	1.2
@@ -0,0 +1 @@
+04e41470f8ec008b7a8fd6479c081ac8  okteta-0.0.1-761510.tar.bz2




More information about the fedora-extras-commits mailing list