rpms/kgtk/devel kgtk-0.9.4-open_O_CREAT_parameters.patch, NONE, 1.1 .cvsignore, 1.2, 1.3 kgtk.spec, 1.3, 1.4 sources, 1.4, 1.5 kgtk-0.8-libkgtk_version.patch, 1.3, NONE kgtk-0.8-makefile_paths.patch, 1.3, NONE

Francois Aucamp (faucamp) fedora-extras-commits at redhat.com
Mon Jan 28 16:06:31 UTC 2008


Author: faucamp

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

Modified Files:
	.cvsignore kgtk.spec sources 
Added Files:
	kgtk-0.9.4-open_O_CREAT_parameters.patch 
Removed Files:
	kgtk-0.8-libkgtk_version.patch kgtk-0.8-makefile_paths.patch 
Log Message:
- Update to version 0.9.4
- Dropped obsolete autotools patches
- Added conditional builds for KDE4 (F9+) and KDE3 (F8-)
- Added cmake lib64 suffix macro (to be removed if the global RPM cmake macros are accepted)
- Added TODO to package docs
- Added %%find_lang macro to gather locale files
- Changed License field from GPL to GPLv2+
- Added %%cmake macro to spec (until the macro is accepted globally in RPM)
- Added "open_O_CREAT_parameters" patch to fix usage of open()


kgtk-0.9.4-open_O_CREAT_parameters.patch:

--- NEW FILE kgtk-0.9.4-open_O_CREAT_parameters.patch ---
diff -uNr KGtk-0.9.4/common/common.h KGtk-0.9.4-mod/common/common.h
--- KGtk-0.9.4/common/common.h	2007-10-31 22:33:19.000000000 +0200
+++ KGtk-0.9.4-mod/common/common.h	2008-01-28 17:39:09.000000000 +0200
@@ -165,7 +165,7 @@
 {
     do
     {
-        lockFd=open(getLockName(), O_WRONLY | O_CREAT | O_EXCL);
+        lockFd=open(getLockName(), O_WRONLY | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP);
         if (lockFd<0 && errno==EEXIST)
         {
             /* Hmm, lock file already exists. Is it stale? */


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/kgtk/devel/.cvsignore,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- .cvsignore	26 Jan 2007 07:03:09 -0000	1.2
+++ .cvsignore	28 Jan 2008 16:05:36 -0000	1.3
@@ -1 +1 @@
-kgtk-0.8.tar.gz
+KGtk-0.9.4.tar.bz2


Index: kgtk.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kgtk/devel/kgtk.spec,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- kgtk.spec	28 Jan 2008 15:55:57 -0000	1.3
+++ kgtk.spec	28 Jan 2008 16:05:36 -0000	1.4
@@ -1,17 +1,39 @@
+%if 0%{?fedora} >= 9
+    %define locale_name kdialogd4
+%else
+    %define locale_name kdialogd3
+%endif
+## /etc/rpm/macros.cmake: -- adapted from the CMake packaging draft macro:
+# http://fedoraproject.org/wiki/Packaging/cmake
+%define _cmake_lib_suffix64 -DLIB_SUFFIX=64
+%define __cmake %{_bindir}/cmake
+
+%define cmake \
+  CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
+  CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
+  FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \
+  %__cmake \\\
+%if "%{?_lib}" == "lib64" \
+        %{?_cmake_lib_suffix64} \\\
+%endif \
+        -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \\\
+        -DBUILD_SHARED_LIBS:BOOL=ON
+
+
 Name:           kgtk
-Version:        0.8
-Release:        2%{?dist}
+Version:        0.9.4
+Release:        1%{?dist}
 Summary:        Allows Gtk and Qt applications to use KDE's file dialogs
 
 Group:          System Environment/Libraries
-License:        GPL
+License:        GPLv2+
 URL:            http://www.kde-apps.org/content/show.php?content=36077
-Source0:        http://home.freeuk.com/cpdrummond/%{name}-%{version}.tar.gz
-Patch0:         kgtk-0.8-makefile_paths.patch
-Patch1:         kgtk-0.8-libkgtk_version.patch
+Source0:        http://home.freeuk.com/cpdrummond/KGtk-%{version}.tar.bz2
+Patch0:         kgtk-0.9.4-open_O_CREAT_parameters.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
-BuildRequires:  kdelibs-devel gtk2-devel automake
+BuildRequires:  kdelibs-devel gtk2-devel cmake gettext
+
 
 %description
 This is an LD_PRELOAD library that allows Gtk and Qt applications (such as
@@ -25,36 +47,48 @@
 
 
 %prep
-%setup -q
-%patch0 -p1 -b .makefile_paths
-%patch1 -p1 -b .libkgtk_version
+%setup -q -n KGtk-%{version}
+%patch0 -p1 -b .open_O_CREAT_parameters
 
 
 %build
-%configure
-make %{?_smp_mflags}
+%if 0%{?fedora} >= 9
+    %cmake -DKGTK_KDE4=true -DKGTK_KDE3=false .
+%else
+    %cmake -DKGTK_KDE3=true .
+%endif
+make VERBOSE=1 %{?_smp_mflags}
 
 
 %install
-rm -rf %{buildroot}
-make install DESTDIR=%{buildroot}
-# Remove libtool archives
-rm -f %{buildroot}%{_libdir}/kgtk/*.la
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+%find_lang %{locale_name}
 
 
 %clean
-rm -rf %{buildroot}
+rm -rf $RPM_BUILD_ROOT
 
 
-%files
+%files -f %{locale_name}.lang
 %defattr(-,root,root,-)
-%doc AUTHORS ChangeLog COPYING README
-%{_bindir}/kgtk-wrapper
-%{_bindir}/kqt-wrapper
+%doc AUTHORS ChangeLog COPYING README TODO
+%{_bindir}/*
 %{_libdir}/kgtk
 
 
 %changelog
+* Mon Jan 28 2008 Francois Aucamp <faucamp at csir.co.za> - 0.9.4-1
+- Update to version 0.9.4
+- Dropped obsolete autotools patches
+- Added conditional builds for KDE4 (F9+) and KDE3 (F8-)
+- Added cmake lib64 suffix macro (to be removed if the global RPM cmake macros are accepted)
+- Added TODO to package docs
+- Added %%find_lang macro to gather locale files
+- Changed License field from GPL to GPLv2+
+- Added %%cmake macro to spec (until the macro is accepted globally in RPM)
+- Added "open_O_CREAT_parameters" patch to fix usage of open()
+
 * Thu Jan 25 2007 Francois Aucamp <faucamp at csir.co.za> - 0.8-2
 - Created patch to prevent useless libkgtk.so.* symlinks during %%build
 - Added package name/version prefix to patch filenames
@@ -62,4 +96,3 @@
 * Wed Jan 24 2007 Francois Aucamp <faucamp at csir.co.za> - 0.8-1
 - Initial RPM build
 - Created patch for makefile to use correct installation paths
-


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/kgtk/devel/sources,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- sources	28 Jan 2008 15:55:57 -0000	1.4
+++ sources	28 Jan 2008 16:05:36 -0000	1.5
@@ -1 +1 @@
-2cde8a09508773cf2f9028912be4fbbe  kgtk-0.8.tar.gz
+a6fde9e4520e1f347ff6a48cda95337a  KGtk-0.9.4.tar.bz2


--- kgtk-0.8-libkgtk_version.patch DELETED ---


--- kgtk-0.8-makefile_paths.patch DELETED ---




More information about the fedora-extras-commits mailing list